libmad"/>
编译libmad
编译libmad
./configure CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ AR=arm-linux-gnueabihf-ar --host=arm-linux-gnueabihf --enable-speed --prefix=/home/KK/LibMad/
出现错误:
cc1: error: unrecognized command line option “-fforce-mem”
原因是高版本的gcc,已经将-fforce-mem去除了,解决方法:
sed -i '/-fforce-mem/d' configure
出现:
/tmp/ccgv3WcG.s:2579: Error: selected processor does not support `rsc ip,ip,#0' in Thumb mode
/tmp/ccgv3WcG.s:2787: Error: selected processor does not support `rsc r9,r9,#0' in Thumb mode
/tmp/ccgv3WcG.s:3404: Error: selected processor does not support `rsc r8,r8,#0' in Thumb mode
/tmp/ccgv3WcG.s:3963: Error: selected processor does not support `rsc ip,ip,#0' in Thumb mode
在配置加上:enable-speed就解决
最后:
make
make install
更多推荐
编译libmad
发布评论