编译libmad

编程入门 行业动态 更新时间:2024-10-10 16:24:20

编译<a href=https://www.elefans.com/category/jswz/34/1740070.html style=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

本文发布于:2024-03-23 15:59:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1740069.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:libmad

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!