@crystax Hello, here I am again with a similar issue.
I'm trying to build Qt (5.6.0-RC) using the last version of your Crystax NDK (10.3.1). My configure command line looks like this:
./qt-everywhere-opensource-src-5.6.0-rc/configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk /Users/ro/lib/ANDROID/crystax-ndk-10.3.1/ -android-sdk /Users/ro/lib/ANDROID/android-sdk-macosx/ -android-ndk-host darwin-x86_64 -android-toolchain-version 4.9 -skip qttranslations -skip qtserialport -no-warnings-are-errors -prefix /Users/ro/lib/QT/Qt5.6.0-rc-android-crystax -android-ndk-platform android-19 -v
meaning that I'm using the crystax NDK 10.3.1, my Mac as the host compiling Qt, the 4.9 NDK toolchain version, and the android-19 NDK platform version. Well, after changing QTDIR/qtbase/mkspecs/android-g++/qmake.conf by modifying these lines (Line 83):
ANDROID_SOURCES_CXX_STL_LIBDIR = $$NDK_ROOT/sources/cxx-stl/gnu-libstdc++/$$NDK_TOOLCHAIN_VERSION/libs/$$ANDROID_TARGET_ARCH $$NDK_ROOT/sources/crystax/libs/armeabi-v7a
ANDROID_SOURCES_CXX_STL_INCDIR = $$NDK_ROOT/sources/cxx-stl/gnu-libstdc++/$$NDK_TOOLCHAIN_VERSION/include $$ANDROID_SOURCES_CXX_STL_LIBDIR/include $$NDK_ROOT/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include
the configure script doesn't complain, and running make, it starts compiling. But I'm getting a compile error:
qthread_unix.cpp:559:49: error: 'PTHREAD_INHERIT_SCHED' was not declared in this scope
pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED);
Having a look at the source file, that piece of code should only be compiling if QT_HAS_THREAD_PRIORITY_SCHEDULING is defined, which isn't true for ANDROID. That makes me think that probably the Crystax NDK (or toolchain, sorry, I'm a bit lost here) is not #defining ANDROID. A similar problem as described in this bug report: https://bugreports.qt.io/browse/QTBUG-41382. (So the compilation process doesn't know we are building for Android?)
Also it's worth mentioning that replacing the Crystax NDK by the current Google provided "android-ndk-r10e", the compilation is successful.
Any idea on how could I successfully compile Qt for Android using the Crystax SDK?
Thanks,
Robert.