mplayer在s3c2410+linux的移植

mplayers 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中注释这些语句即可编译通过。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值