移植madplay到arm linux 收藏
移植 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 。
前三个文件的下载地址在这个网站可以找到相应的链接:
zlib 的下载地址为:
编译方法如下:
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
阅读(1679) | 评论(0) | 转发(0) |