【原】移植madplay到arm linux

来源:互联网 发布:四十知天命 五十 编辑:程序博客网 时间:2024/05/17 04:55

移植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