Issues to build apk with qt creator
-
I can not create an APK with Qt creator, I can launch the application in the emulator but cannot build APK
I followed this tutorial to install qt and install qt creator with the offline package : https://wiki.qt.io/Android https://doc.qt.io/qt-5/deployment-android.html
I intall Clang-8 and GCC-8 and others dependencies for qt (like mesa-common-dev, libglu1-mesa-dev...)
I tried to build these applications i have sames issues - https://github.com/ekke/c2gQtCon_x - https://github.com/ekke/c2gQtWS_x (with : https://github.com/ekke/statusbar) - Somes Exemples (like Qt SCXML Calculator)
Qt output these errors: - :-1: error : error: cannot find -lc++ - :-1: error : linker command failed with exit code 1 (use -v to see invocation) You can see Qt Creator output (image) : https://drive.google.com/file/d/1lRe1Xs65EDs8aXZqFEbAxh8htjziQRRW/view?usp=sharing
My config : drive.google.com/open?id=1nFpajqDdH6Jogq89h8aGYFu275nxt7mx
Edit : i change API level 18 to 21 in these applications and i work with Qt5.13 and android NDK 20 on kubuntu 19.04
-
Here is the complete output of the compilation
/home/bensuperpc/android-ndk-r20/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld: error: cannot find -lc++ clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [libbt_le_x.so] Error 1 15:22:48: Le processus "/home/bensuperpc/android-ndk-r20/prebuilt/linux-x86_64/bin/make" s'est terminé avec le code 2. Erreur lors de la compilation/déploiement du projet bt_le_x (kit : Android for x86_64 (Clang Qt 5.13.0 for Android x86_64)) When executing step "Make"