Android NDK clang assembler command failed with exit code 1
2017-10-17 17:43
1941 查看
我们在使用NDK编译项目的时候会报 ‘assembler command failed with exit code 1 (use -v to see invocation)’这样的错误。原因是高版本的NDK已经使用clang取代了gcc,但老的项目使用clang又编译不过。只能我们手动指定编译器了。
这个4.9是从何而来的呢?
根据你的NDK目录而来,我的目录是这样的
看到了吗?我的是“4.9”所以我这样指定。
export NDK_TOOLCHAIN_VERSION=4.9
这个4.9是从何而来的呢?
根据你的NDK目录而来,我的目录是这样的
~/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/
看到了吗?我的是“4.9”所以我这样指定。
相关文章推荐
- androidstudio2.3.1 ndk 编译错误error: clang frontend command failed with exit code 70 (use -v to
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- ld: library not found for -lAFNetworking clang: error: linker command failed with exit code 1 (use -
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- swifty引用AFNetworking出现clang: error: linker command failed with exit code 1 (use -v to see invocation
- 问题处理记录: clang: error: linker command failed with exit code 1 (use -v to see invocation)
- IOS如何解决烦人的“clang: error: linker command failed with exit code 1 (use -v to see invocation)”问题
- 使用SVN clang: error: linker command failed with exit code 1 (use -v to see invocation)
- ld: 7 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- clang: error: linker command failed with exit code 1 (use -v to see invocation) 无法定位的问题
- 地址参考clang: error: linker command failed with exit code 1 (use -v to see invocation)
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Cordova工程执行命令报错:platforms/android/gradlew: Command failed with exit code 1 Error output:
- clang: error: linker command failed with exit code 1 (use -v to see invocation)解决方法
- 模拟器运行正常,真机报错:clang: error: linker command failed with exit code 1 (use -v to see invocation)
- 错ld: 4 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1
- 使用SVN clang: error: linker command failed with exit code 1 (use -v to see invocation)
- iOS clang: error: linker command failed with exit code 1 (use -v to see invocation)
- 使用SVN clang: error: linker command failed with exit code 1 (use -v to see invocation)