[Interest] Building Qt for android on Mac OSX using the crystax NDK

Roberto Garrido Martín robertogarridomartin at gmail.com
Fri Oct 24 10:29:26 CEST 2014


Hi all,

We are porting our Qt Windows/MacOSX/iOS app to android. We have a huge
codebase using boost serialization. Boost serialization relies on wide
chars, which are not supported by then official NDK. So our plan is to
build Qt against the crystax NDK. Anyone succeeded on building Qt 5 against
the crystax NDK?

So far, we have configured Qt 5.4 beta sources to start compiling, using
the following configure options:

@
../qt-everywhere-opensource-src-5.4.0-beta/configure -xplatform android-g++
-nomake tests -nomake examples -android-ndk
/Users/ro/lib/ANDROID/adt-bundle-mac-x86_64-20140702/android-ndk-r8-crystax-1/
-android-sdk /Users/ro/lib/ANDROID/adt-bundle-mac-x86_64-20140702/sdk/
-android-ndk-host darwin-x86_64 -android-toolchain-version 4.7
-android-ndk-platform android-9 -skip qttranslations -skip qtwebkit -skip
qtserialport -skip qtwebkit-examples -no-warnings-are-errors -L
/Users/ro/lib/ANDROID/adt-bundle-mac-x86_64-20140702/android-ndk-r8-crystax-1/sources/crystax/libs/armeabi-v7a
-I
/Users/ro/lib/ANDROID/adt-bundle-mac-x86_64-20140702/android-ndk-r8-crystax-1/sources/crystax/include
-v
@

And it starts compiling, but fails trying to compile the file
qtextcodec.cpp, with the following error:
@
In file included from
/Users/ro/lib/QT/qt-everywhere-opensource-src-5.4.0-beta/qtbase/src/corelib/codecs/qtextcodec.cpp:34:
In file included from
/Users/ro/lib/QT/qt-everywhere-opensource-src-5.4.0-beta/qtbase/mkspecs/macx-clang/qplatformdefs.h:34:
In file included from
/Users/ro/lib/QT/qt-everywhere-opensource-src-5.4.0-beta/qtbase/mkspecs/macx-clang/../common/mac/qplatformdefs.h:61:
In file included from
/Applications/Xcode5.1.1/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sys/shm.h:84:
/Applications/Xcode5.1.1/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sys/_types/_pid_t.h:30:9:
error: unknown type
      name '__darwin_pid_t'
typedef __darwin_pid_t        pid_t;
@


We are using Mac OSX 10.9.5, and android-ndk-r8-crystax1.

Is this approach a dead-end?
Anyone?

Thanks,
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141024/bf828f22/attachment.html>


More information about the Interest mailing list