mplayer在s 3c 2410+linux的移植
--Figo 2008.12.9
madplay只能播放音频文件,如果同时需要播放视频文件那么需要使用mplayer。
交叉编译器版本:arm-linux 3.4.1
硬件平台:s 3c 2410
软件平台:linux- 2.6.27
1、 编译libmad库。
下载libmad源码包:http://download.chinaunix.net/download.php?id=11891&ResourceID=5910。解压后进入源码包目录下,配置、编译过程如下:
./configure
CC=/usr/local/arm/ 3.4.1 /bin/arm-linux-gcc --prefix=/usr/local/arm/3.4.1/arm-linux
--host=arm-linux --disable-debugging --disable-shared --enable-static
CPPFLAGS=-I/usr/local/arm/ 3.4.1 /arm-linux/include LDFLAGS=-L/usr/local9/arm/3.4.1/arm-linux/lib
make
make install
2、 编译mplayer。
下载mplayer源码包:http://www.mplayerhq.hu/design7/dload.html。
解压后进入源码包目录下,配置、编译过程如下:
./configure --host-cc=gcc --cc=arm-linux-gcc --target=arm-armv 4l -linux --enable-static --prefix=/tmp/mplayer --disable-dvdread --enable-fbdev --disable-mencoder --disable-live
make
make install
期间会提示以下错误:
ioctl.c:273:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:446:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:610:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:734:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:868:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:1001:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:1130:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:1241:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:1378:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:1515:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:1670:5: #error "DVD ioctls are unavailable on this system"
ioctl.c:1797:5: #error "DVD ioctls are unavailable on this system"
到ioctl.c中注释这些语句即可编译通过。