【原】移植madplay到arm linux

时间:2021-10-27 16:36:20

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