[solved]Qt5 Android Plugin on Mac OS X 10.8
-
Hi,
did anyone made was able to compile the Qt Android Plugin for a Mac OS X host? I followed the build instructions on "http://qt-project.org/wiki/Qt5ForAndroid":http://qt-project.org/wiki/Qt5ForAndroid
but I always get compiler errors.I used this line to configure the build:
@./configure -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk /Users/apple/QtSDK/necessitas_b01/android-ndk -android-sdk /Users/apple/QtSDK/necessitas_b01/android-sdk -android-ndk-host darwin-x86 -android-toolchain-version 4.6 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples@
Can anyone help ? Thank you so much
-
This is the error I get:
@/platforms/android-14/arch-arm/usr/include -o .obj/debug-shared/qlocale_tools.o tools/qlocale_tools.cpp
tools/qlocale_tools.cpp: In function 'char* qdtoa(double, int, int, int*, int*, char**, char**)':
tools/qlocale_tools.cpp:2246:5: error: 'fenv_t' was not declared in this scope
tools/qlocale_tools.cpp:2246:12: error: expected ';' before 'envp'
tools/qlocale_tools.cpp:2247:19: error: 'envp' was not declared in this scope
tools/qlocale_tools.cpp:2247:23: error: 'feholdexcept' was not declared in this scope
tools/qlocale_tools.cpp:2271:19: error: 'fesetenv' was not declared in this scope
@ -
Ok I got it. I updated my NDK and SDK and compliled it with the following options @./configure -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk /Users/apple/QtSDK/necessitas_b01/android-ndk -android-sdk /Users/apple/QtSDK/necessitas_b01/android-sdk -android-ndk-host darwin-x86_64 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -android-ndk-platform android-18@
I got another error during compiling that android-11 API was not found (needed for the QtMultimedia plugin) I downloaded it and and everything compiled well.
So now I have to test it if everything is working ;)
-
Yes worked, and compile and run Android Apps written with Qt! It is still far from being usable (Missing WebKit or any Web-Engine, Deployment could be optimized ,debugging process crashes ... ). I would not use it (yet) for creating Android Apps, but it's super for targeting multiple platforms. Lets see what Qt 5.2 !