Can't build Qt 5.1 (cross-compiling Android) for Mac
-
Hello!
I can't build latest Qt from Git for Mac with this configure:
@
configure -prefix /usr/local/Digia/Qt5.1-rc1-android -release -shared -opensource -c++11 -nomake examples -nomake tests -nomake tools -confirm-license -developer-build -xplatform android-g++ -android-ndk /usr/local/Android/ndk -android-sdk /usr/local/Android/sdk -android-ndk-host darwin-x86_64 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples
@Instead of it I get this error in my error log:
@
Creating qmake...
Running configuration tests...
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.Could not determine the host architecture!
Turn on verbose messaging (-v) to see the final report.
STL functionality check failed! Cannot build Qt with this STL library.
@And, of course I use latest g++ and gcc in PATH.
-
Hi,
May I suggest that you modify your thread's title ? This one doesn't imply that your are trying to cross compile for Android thus you'll might miss some help.
-
adding -android-ndk-platform android-19 (android-19 being an installed platforms in you android-ndk/platforms folder) solved this issue for me.
it seems the default ndk-platform used is no longer supplied with current editions of the android ndk for mac os x