Linux开发二十四_mplayer移植

来源:互联网 发布:诛仙手游道法对应数据 编辑:程序博客网 时间:2024/06/05 02:53

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 0