Unable to auto-config arch from toolchain

☆樱花仙子☆ 提交于 2019-12-24 13:42:01

问题


I'm trying to configuration toolchain in Cygwin for Android NDK. I use of this tutorial. when I run the following command:

./make-standalone-toolchain.sh --platform=android-9 --install-dir=c:/android-toolchain --ndk-dir=c:/android-ndk-r10d/

It shows "Unable to auto-config arch from toolchain"

How can I fix problem?


回答1:


You have to specify which toolchain you want, add a toolchain flag, for instance for arm-linux-androidabi-4.6 toolchain:

./make-standalone-toolchain.sh --toolchain=arm-linux-androideabi-4.6 --platform=android-9 --install-dir=c:/android-toolchain --ndk-dir=c:/android-ndk-r10d/

You can find the list of available toolchains in your c:/android-ndk-r10d/toolchains directory.



来源:https://stackoverflow.com/questions/29444079/unable-to-auto-config-arch-from-toolchain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!