linux移植Mplayer基本配置与错误总结

1.错误总结

1.注意如果出现error:unrecognized command line option “-fforce-mem”错误,需要修改makefile,去掉–fforce-mem标志(因为arm-eabi编译器都不支持这个选项)
2.将config.mak中 INSTALLSTRIP=-s,-s去掉即可,重新make,make install

2.基本配置

./configure –enable-fpm=arm –host=arm-linux –disable-shared –disable-debugging –prefix=/opt/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/lib CC=arm-linux-gcc
./configure –prefix=/opt/ARMMPlayer –cc=arm-linux-gcc –host-cc=gcc –target=arm-linux –enable-static –disable-win32dll –disable-dvdread –enable-fbdev –disable-liba52 –disable-libmpeg2 –disable-mencoder –disable-live –disable-ivtv –disable-mp3lib
–enable-libavcodec_a –language=zh_CN –disable-armv5te –disable-armv6 –with-extraincdir=/opt/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/lib/include –with-extralibdir=/opt/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/lib/lib

经过不懈的努力终于成功了,板子是ARM9的,希望能够帮助大家。

你可能感兴趣的:(Linux)