Linux开发二十四_mplayer移植

Linux开发二十四

mplayer移植

象棋小子    1048272975

mplayer是一款开源多媒体播放器,以gnu通用公共许可证发布。它资源占用率低,无论是音频还是视频方面,支持的格式相当全面,支持的输出设备也很多,可以在各种主流操作系统中使用。

1. mplayer编译

从mplayer官网下载最新的mplayer1.3.0源码,可以在源码包中查看README文件等,确定编译、安装的步骤。

mplayer需要zlib的支持,先下载zlib,并编译。

CC=arm-linux-gcc  ./configure  --prefix=./build  --static

make

make install

在mplayer源码目录可以通过./configure –h来查看配置选项,configure中加入zlib的头文件、库路径。

./configure --cc=arm-linux-gcc --host-cc=gcc --target=arm-linux--prefix=./build --extra-cflags=-I/usr/zlib-1.2.11/build/include/--extra-ldflags="-L /usr/zlib-1.2.11/build/lib/ -lz"

make

make install

make install会提示以下错误:

strip: Unable to recognise the format of the input file“./build/bin/mencoder”

修改Makefile如下:

#   $(INSTALL) -m 755$(INSTALLSTRIP) $< $(BINDIR)

     arm-linux-strip  $<

     $(INSTALL)  -m  755  $<  $(BINDIR)

2. 测试

编译成功后,会在./build/bin目录中生成mplayer可执行文件,把mplayer、test.mp4测试视频拷贝到根目录,板端启动系统,输入播放视频命令确认移植成功。

./mplayer /test.mp4

3. 附录

https://pan.baidu.com/s/1slczwhJ

bootloader源码以及使用说明

https://pan.baidu.com/s/1eRDJtNs

Qt5.8官网源码

https://pan.baidu.com/s/1nuGmSqt

本系列例程的根文件系统

https://pan.baidu.com/s/1i5btLGT

opev3.2.0官网源码

https://pan.baidu.com/s/1pLpuHw3

yaffs官网源码 

https://pan.baidu.com/s/1bpkZynt

busybox-1.26.2官网源码

https://pan.baidu.com/s/1i4EtjfR

tslib官网源码

https://pan.baidu.com/s/1i5MGRhb

mplayer-1.3.0官网源码

https://pan.baidu.com/s/1sl0fXlr

基于S3C2416修改的linux-4.10.10源码

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值