简体   繁体   中英

Can not detect Android NDK toolchain

I want to build Qt 5.1.2 for Android with toolchain version 4.4.3(for working armeabi libs)
I downloaded latest Android SDK,NDK and other required tools
I also downloaded ndk-legacy-toolschains and copied the contents under "path_to_ndk/toolchains"
I tried to configure qt5 with below script

./configure -android-arch armeabi -android-toolchain-version 4.3.3 -android-ndk-host linux-x86 -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/onurozcelik/Android/android-ndk-r9/ -android-sdk /home/onurozcelik/Android/android-sdk-linux/ -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples

But it fails with: Can not detect Android NDK toolchain. Please use -android-toolchain-version to specify

What is the problem? How can I fix it?

For me it worked to specify: -android-toolchain-version 4.8

(In the configure script, it seems to look for "$CFG_DEFAULT_ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-$CFG_DEFAULT_ANDROID_NDK_TOOLCHAIN_VERSION/prebuilt", so the given version is inserted after "arm-linux-androideabi-" and this seems to be the compiler version, not the Android version.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM