Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Building Qt for android on Mac OSX using the crystax NDK

$
0
0
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. Anyone? Thanks, Robert.

Viewing all articles
Browse latest Browse all 2113

Trending Articles