移植 madplay 需要如下文件:
madplay-0.15.2b.tar.gz ,
libmad-0.15.1b.tar.gz ,
libid3tag-0.15.1b.tar.gz
和 zlib-1.2.3.tar.gz 。
前三个文件的下载地址在这个网站可以找到相应的链接: http://sourceforge.net/project/showfiles.php?group_id=12349
zlib 的下载地址为: http://www.gzip.org
编译方法如下:
zlib
./configure --prefix=
/home/madplay/allokhere
修改makefile
CC=arm-linux-gcc
AR=arm-linux-ar rc
RANLIB=arm-linux-ranlib
id3tag:
./configure CC=arm-linux-gcc CPPFLAGS=-I/home/madplay/allokhere/include LDFLAGS=-L/home/madplay/allokhere/lib --prefix=/home/madplay/allokhere --disable-shared --host=arm-linux
libmad
./configure CC=arm-linux-gcc --host=arm-linux --prefix=/home/madplay/allokhere --disable-shared
madplay
./configure CC=arm-linux-gcc --host=arm-linux -prefix=/home/madplay/allokhere --disable-shared --enable-static CPPFLAGS=-I/home/madplay/allokhere/include LDFLAGS=-L/home/madplay/allokhere/lib
本文介绍如何将madplay音频播放器移植到嵌入式Linux系统中,包括所需的关键文件及其下载地址,详细说明了针对arm-linux的交叉编译步骤。
2137

被折叠的 条评论
为什么被折叠?



