原因参考
https://github.com/termux/termux-packages/issues/3
使用Clang在X86的linux服务器上进行ARM的交叉编译
可以用
sudo apt-get install gcc-arm-linux-gnueabi
安装arm-linux-gcc
经测试,编译应用
arm-linux-gnueabi-gcc -o helloworld helloworld.c
和编译so库
arm-linux-gnueabi-gcc -fPIC -shared test.c -o libTest.so
都可以使用
Linux编译动态库时出现unrecognised emulation mode的错误
最新推荐文章于 2021-11-02 14:49:24 发布