Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cannot open QT project on android environment for apk compilatation
Qt 6.11 is out! See what's new in the release blog

Cannot open QT project on android environment for apk compilatation

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 710 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jvincent
    wrote on last edited by
    #1

    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 ndk21

    After 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 ??

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Logu
      wrote on last edited by
      #2

      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.x
      

      Originally, 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

      Pradeep P NP 1 Reply Last reply
      0
      • L 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.x
        

        Originally, 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

        Pradeep P NP Offline
        Pradeep P NP Offline
        Pradeep P N
        wrote on last edited by
        #3

        Hi @Logu

        When creating a new project what was the Minimal Required Qt version was added ?

        42cceff5-c97a-4a7c-b1d7-915cafbc4c4e-image.png

        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.

        Pradeep Nimbalkar.
        Upvote the answer(s) that helped you to solve the issue...
        Keep code clean.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved