一、编译环境及库文件
linux环境:ubuntu-10.10
交叉编译:4.3.3
arm板子:tq2440
zlib-1.2.7.tar.gz
libid3tag-0.15.1b.tar.gz
libmad-0.15.1b.tar.gz
madplay-0.15.2b.tar.gz
二、madplayer移植
1、交叉编译zlib
# CC=arm-linux-gcc ./configure --prefix=/opt/EmbedSky/4.3.3/arm-none-linux-gnueabi --shared
# make
# make install
2、交叉编译libid3tag
# ./configure CC=arm-linux-gcc --host=arm-linux --disable-shared --enable-static --prefix=/opt/EmbedSky/4.3.3/arm-none-linux-gnueabi
# make
# make install
3、交叉编译libmad
#./configure CC=arm-linux-gcc --host=arm-linux --disable-shared --enable-static --prefix=/opt/EmbedSky/4.3.3/arm-none-linux-gnueabi
# make
出现错误:
cc1: error: unrecognized command line option "-fforce-mem"
make[2]: *** [version.lo] Error 1
解决方法:将Makefile中的"-fforce-mem"选项去掉
# make
# make install
4、编译madplay-0.15.2b.tar.gz
# ./configure CC=arm-linux-gcc --host=arm-linux --disable-shared --enable-static --prefix=/opt/EmbedSky/4.3.3/arm-none-linux-gnueabi
#make
阅读(251) | 评论(0) | 转发(0) |