问题描述
- 移植libmad库到arm的linux平台出现不支持thumb指令
-
移植libmad,交叉工具链是arm-linux-gnueabihf-gcc。Linux内核是3.12比较新配置是./configure --host=arm-linux-gnueabihf --prefix=/usr/local/libmad_arm --enable-shared --enable-static --enable-fpm=arm --with-gnu-ld=arm-linux-gnueabihf-ld --build=armv7然后编译的时候出现以下错误synth.c -fPIC -DPIC -o .libs/synth.o/tmp/ccpwOzYf.s: Assembler messages:/tmp/ccpwOzYf.s:2691: Error: selected processor does not support Thumb modersc r5,r5,#0'/tmp/ccpwOzYf.s:2902: Error: selected processor does not support Thumb mode
rsc r8,r8,#0'/tmp/ccpwOzYf.s:3560: Error: selected processor does not support Thumb modersc r5,r5,#0'/tmp/ccpwOzYf.s:3782: Error: selected processor does not support Thumb mode
rsc lr,lr,#0'make[2]: *** [synth.lo] Error 1求大神们指教,应该怎么样去解决。再次感谢
解决方案
./configure --host=arm-linux --prefix=/opt/libmad-arm --enable-fpm=arm --enable-shared --enable-static
编译通过~~~~
解决方案二:
./configure --host=arm-linux --prefix=/opt/libmad-arm --enable-fpm=arm --enable-shared --enable-static
编译通过~~~~
时间: 2024-10-31 08:34:06