Cannot open QT project on android environment for apk compilatation
-
Dear all,
I've been trying for a while now to open a qt.pro in order to compile to make an apk.
Having followed step by step many tutorials, I'm now using Qt 5.11.0.
It's works well on desktop version, but not for android, even using android sdk with all dependencies, java-8-openjdk-amd64 and android ndk21After resolving many errors, I currently got this one when using the armeabi-v7a (Clang Qt 5.11.0 for android armv7) :
/bin/sh: 1: /home/jvincent/Android/Sdk/ndk/21.1.6352462/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++: not found
/bin/sh: 1: /home/jvincent/Android/Sdk/ndk/21.1.6352462/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-g++: not found
Error while parsing file /home/jvincent/Documents/appJerem/PlanDeVol/qgroundcontrol.pro. Giving up.
/bin/sh: 1: /home/jvincent/Android/Sdk/ndk/21.1.6352462/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++: not found
Project ERROR: Cannot run target compiler '/home/jvincent/Android/Sdk/ndk/21.1.6352462/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++'. Output:/bin/sh: 1: /home/jvincent/Android/Sdk/ndk/21.1.6352462/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++: not found
Maybe you forgot to setup the environment?
But my environment is already set...
When using Qt 5.14.0 for android, I got :
The API level set for the APK is less than the minimum required by the kit.
The minimum API level required by the kit is 21.
Erreur lors de la compilation/déploiement du projet qgroundcontrol (kit : Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.0 for Android))
When executing step "Build Android APK"I get this error regardless of the API level I use (21, less or more)
What should I change to compile my project to apk ??
-
Hi,
I had same issue, cause for that issue was,
I have Installed 2 versions of Qt for testing purpose
1. Qt 5.9.9 2. Qt 5.14.xOriginally, project was created using Qt 5.14.x and but I was trying to open the project using Qt 5.9.x, so I got the same error .
Once I opened using Qt 5.14.x, it's working fine.Thanks & Regards
Logu -
Hi,
I had same issue, cause for that issue was,
I have Installed 2 versions of Qt for testing purpose
1. Qt 5.9.9 2. Qt 5.14.xOriginally, project was created using Qt 5.14.x and but I was trying to open the project using Qt 5.9.x, so I got the same error .
Once I opened using Qt 5.14.x, it's working fine.Thanks & Regards
LoguHi @Logu
When creating a new project what was the Minimal Required Qt version was added ?

And can you provide us the errors you got ?
There will be some dependencies with different Qt Versions some times & resolving them would help.All the best.