Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.11.0 compile issue for Android
Servers for Qt installer are currently down

Qt 5.11.0 compile issue for Android

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 3 Posters 2.0k 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.
  • P Offline
    P Offline
    Pouria
    wrote on 8 Jun 2019, 08:35 last edited by
    #1

    Hi,
    I’m trying to open a project from github on windows 10 using Qt 5.11 with NDK 17. When i open the project.pro file, i get a warning saying:

    C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r17c\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gcc” is used by qmake, but “C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r17c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe” is configured in the kit.
    Please update your kit (Android for armeabi-v7a (Clang Qt 5.11.0 for Android armv7)) or choose a mkspec for qmake that matches your target environment better
    

    And when i try to build the project, i get this error:

    linking debug\libQGroundControl.so
    arm-linux-androideabi-g++: error: oj\moc_CoordinateVector.obj: No such file or directory
    make: *** [debug\libQGroundControl.so] Error 1
    00:29:32: The process “C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r17c\prebuilt\windows-x86_64\bin\make.exe” exited with code 2.
    Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (Clang Qt 5.11.0 for Android armv7))
    When executing step “Make
    

    Any suggestion how to solve the issue ?
    2_1559982930155_kit.jpg 1_1559982930155_devices.jpg 0_1559982930154_compilers.jpg

    K 1 Reply Last reply 8 Jun 2019, 10:08
    0
    • P Pouria
      8 Jun 2019, 08:35

      Hi,
      I’m trying to open a project from github on windows 10 using Qt 5.11 with NDK 17. When i open the project.pro file, i get a warning saying:

      C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r17c\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gcc” is used by qmake, but “C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r17c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe” is configured in the kit.
      Please update your kit (Android for armeabi-v7a (Clang Qt 5.11.0 for Android armv7)) or choose a mkspec for qmake that matches your target environment better
      

      And when i try to build the project, i get this error:

      linking debug\libQGroundControl.so
      arm-linux-androideabi-g++: error: oj\moc_CoordinateVector.obj: No such file or directory
      make: *** [debug\libQGroundControl.so] Error 1
      00:29:32: The process “C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r17c\prebuilt\windows-x86_64\bin\make.exe” exited with code 2.
      Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (Clang Qt 5.11.0 for Android armv7))
      When executing step “Make
      

      Any suggestion how to solve the issue ?
      2_1559982930155_kit.jpg 1_1559982930155_devices.jpg 0_1559982930154_compilers.jpg

      K Offline
      K Offline
      koahnig
      wrote on 8 Jun 2019, 10:08 last edited by
      #2

      @Pouria

      Hi and welcome to devnet forum

      See on https://doc.qt.io/qt-5/android-getting-started.html there you will found following section

      0_1559988365784_821f49eb-1de9-41fd-a26f-6a54fee0a683-image.png

      Your current NDK version is r17c. Either you install at least an older NDK version or you need to switch to Qt 5.12. I recommend to upgrade to Qt5.12.

      Vote the answer(s) that helped you to solve your issue(s)

      P 1 Reply Last reply 8 Jun 2019, 18:25
      0
      • K koahnig
        8 Jun 2019, 10:08

        @Pouria

        Hi and welcome to devnet forum

        See on https://doc.qt.io/qt-5/android-getting-started.html there you will found following section

        0_1559988365784_821f49eb-1de9-41fd-a26f-6a54fee0a683-image.png

        Your current NDK version is r17c. Either you install at least an older NDK version or you need to switch to Qt 5.12. I recommend to upgrade to Qt5.12.

        P Offline
        P Offline
        Pouria
        wrote on 8 Jun 2019, 18:25 last edited by
        #3

        @koahnig , thank you for your response, i really appreciate it. i did as you said, the previous error is gone, but i get a new error :

        clang++.exe: error: no such file or directory: 'obj\moc_QGCAppliction.obj'
        make: *** [debug\libQGroundControl.so] Error 1
        22:41:39: The process "C:\Users\poury\AppData\Local\Android\Sdk\ndk\19.2.5345600\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
        Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7))
        When executing step "Make"
        

        how should i resolve this one?

        K 1 Reply Last reply 8 Jun 2019, 21:05
        0
        • P Pouria
          8 Jun 2019, 18:25

          @koahnig , thank you for your response, i really appreciate it. i did as you said, the previous error is gone, but i get a new error :

          clang++.exe: error: no such file or directory: 'obj\moc_QGCAppliction.obj'
          make: *** [debug\libQGroundControl.so] Error 1
          22:41:39: The process "C:\Users\poury\AppData\Local\Android\Sdk\ndk\19.2.5345600\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
          Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7))
          When executing step "Make"
          

          how should i resolve this one?

          K Offline
          K Offline
          koahnig
          wrote on 8 Jun 2019, 21:05 last edited by
          #4

          @Pouria

          Right click on project and on "Run qmake" afterwards a "Rebuild all". Check if this is helping to resolve the problem.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          1
          • P Offline
            P Offline
            Pouria
            wrote on 8 Jun 2019, 21:54 last edited by Pouria 6 Aug 2019, 21:55
            #5

            @koahnig
            it shows a new error :

            error: unable to open output file 'obj\QGeoTiledMappingManagerEngineQGC.obj': 'Permission denied'
            1 error generated.
            compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\libs\shapelib\safileio.c 
            compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\api\QGCCorePlugin.cc 
            compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\api\QGCOptions.cc 
            compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\api\QGCSettings.cc 
            compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\api\QmlComponentInfo.cc 
            compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\comm\MavlinkMessagesTimer.cc 
            make: *** [obj\QGeoTiledMappingManagerEngineQGC.obj] Error 1
            make: *** Waiting for unfinished jobs....
            02:19:56: The process "C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r20-windows-x86_64\android-ndk-r20\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
            Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7))
            When executing step "Make"
            
            K 1 Reply Last reply 9 Jun 2019, 12:16
            0
            • P Pouria
              8 Jun 2019, 21:54

              @koahnig
              it shows a new error :

              error: unable to open output file 'obj\QGeoTiledMappingManagerEngineQGC.obj': 'Permission denied'
              1 error generated.
              compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\libs\shapelib\safileio.c 
              compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\api\QGCCorePlugin.cc 
              compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\api\QGCOptions.cc 
              compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\api\QGCSettings.cc 
              compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\api\QmlComponentInfo.cc 
              compiling C:\Users\poury\Documents\GitHub\qgroundcontrol\src\comm\MavlinkMessagesTimer.cc 
              make: *** [obj\QGeoTiledMappingManagerEngineQGC.obj] Error 1
              make: *** Waiting for unfinished jobs....
              02:19:56: The process "C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r20-windows-x86_64\android-ndk-r20\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
              Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7))
              When executing step "Make"
              
              K Offline
              K Offline
              koahnig
              wrote on 9 Jun 2019, 12:16 last edited by
              #6

              @Pouria

              Could be an interference from anti-virus app. You need to check if the AV-app denies access there.

              Vote the answer(s) that helped you to solve your issue(s)

              P 1 Reply Last reply 9 Jun 2019, 13:55
              0
              • K koahnig
                9 Jun 2019, 12:16

                @Pouria

                Could be an interference from anti-virus app. You need to check if the AV-app denies access there.

                P Offline
                P Offline
                Pouria
                wrote on 9 Jun 2019, 13:55 last edited by
                #7

                @koahnig
                there was no access deny, but anyway i turned off the AV and i still get an error, it's driving me crazy!
                what about using qt 5.11 with NDK 10, do you think if i downgrade would it help ?

                clang  : error: no such file or directory: 'obj\moc_PositionManagerobj'
                make: *** [debug\libQGroundControl.so] Error 1
                17:36:35: The process "C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r20-windows-x86_64\android-ndk-r20\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
                Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7))
                When executing step "Make
                
                K 1 Reply Last reply 9 Jun 2019, 16:49
                0
                • P Pouria
                  9 Jun 2019, 13:55

                  @koahnig
                  there was no access deny, but anyway i turned off the AV and i still get an error, it's driving me crazy!
                  what about using qt 5.11 with NDK 10, do you think if i downgrade would it help ?

                  clang  : error: no such file or directory: 'obj\moc_PositionManagerobj'
                  make: *** [debug\libQGroundControl.so] Error 1
                  17:36:35: The process "C:\Users\poury\AppData\Local\Android\Sdk\ndk\android-ndk-r20-windows-x86_64\android-ndk-r20\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
                  Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7))
                  When executing step "Make
                  
                  K Offline
                  K Offline
                  koahnig
                  wrote on 9 Jun 2019, 16:49 last edited by
                  #8

                  @Pouria

                  You can try to downgrade. I have done some tests with Qt5.11.3 and changed to Qt5.12.0. BAsically you could switch forth and back. The only nuisance was the required change of ndk version.

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    HashimK
                    wrote on 6 Jun 2021, 14:25 last edited by
                    #9

                    @Pouria ,
                    Any success? I'm trying exactly the same!
                    Would like to know how you overcame it, it's driving me crazy too!
                    Your time is appreciated. Many Thanks!

                    1 Reply Last reply
                    0

                    • Login

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