Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Configure wants -android-ndk-host, even when I already provided it
I am trying to build Qt for android following the instructions here: http://qt-project.org/wiki/Qt5ForAndroidBuilding
This is what I do for configure:
./configure -developer-build -platform linux-g++-64 -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/ls/src/android-ndk -android-sdk /home/ls/src/android-sdk -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -android-ndk-host linux-x86_64
The error I get is:
Can not detect the android host. Please use -android-ndk-host option to specify one
I am confused, I povided that option. Why is it ignoring it?
You have a typo there. Its -android-ndk-host, not android-ndk
No, the last option is
Oh yeah sry, my bad. Can I know what system you are on?
Also, make sure you really use the correct ndk. There is a x86 and x64 variant.
Well, that was the problem. I had the x86 version installed, but I am on a 64bit system. So i downloaded the newest x86_64 version, and it worked.
I hade to add the option: @-android-toolchain-version 4.8@ becuase version 4.7 is not present anymore.
You can still use 4.7, but you need to download the ndk legacy zip.
Mmh, ok. Is there any reason why I should?
Thanks by the way!
Actually no. Since google seems to trust it, you can do that, too.
I only disliked the warnings that it gave me due to the new c++11 standard :D