Configure wants -android-ndk-host, even when I already provided it
-
Hey,
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?
Thanks!
-
No, the last option is
@-android-ndk-host linux-x86_64@ -
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.
http://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64-legacy-toolchains.tar.bz2
-
Mmh, ok. Is there any reason why I should?
Thanks by the way!