Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGC Android build failing.
QtWS25 Last Chance

QGC Android build failing.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 870 Views
  • 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.
  • D Offline
    D Offline
    deathStroke69
    wrote on 6 Nov 2023, 12:07 last edited by
    #1

    Hi I am new to QT and fairly new to programming as well. So sorry if I am not understanding the jargon. Now coming to the issue.
    I am trying to compile the QgroundControl code for android.

    Things I have done:
    I have set up VDM in android studio
    I have set up the android environment
    When compiling qmake and make steps seems to get excecuted properly without errors.
    Problem is the Build Android APK
    I have mostly followed all instructions in https://dev.qgroundcontrol.com/master/en/index.html and the desktop version compiles no problem
    error.PNG Capture.PNG

    J J 2 Replies Last reply 6 Nov 2023, 12:22
    0
    • D deathStroke69
      6 Nov 2023, 12:07

      Hi I am new to QT and fairly new to programming as well. So sorry if I am not understanding the jargon. Now coming to the issue.
      I am trying to compile the QgroundControl code for android.

      Things I have done:
      I have set up VDM in android studio
      I have set up the android environment
      When compiling qmake and make steps seems to get excecuted properly without errors.
      Problem is the Build Android APK
      I have mostly followed all instructions in https://dev.qgroundcontrol.com/master/en/index.html and the desktop version compiles no problem
      error.PNG Capture.PNG

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 6 Nov 2023, 12:22 last edited by
      #2

      @deathStroke69 Please post errors as text, not pictures.
      The error message says that QtSerialPort is not available. How did you install Qt for Android?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply 6 Nov 2023, 12:40
      0
      • J jsulm
        6 Nov 2023, 12:22

        @deathStroke69 Please post errors as text, not pictures.
        The error message says that QtSerialPort is not available. How did you install Qt for Android?

        D Offline
        D Offline
        deathStroke69
        wrote on 6 Nov 2023, 12:40 last edited by
        #3

        @jsulm Hi thank you for your reply. I installed QT using https://www.qt.io/download-open-source and I checked Android in the installing components page. 42d8fddc-4097-4787-b1a7-15c6fcafd566-image.png

        Generating Android Package
        Input file: C:/Julian/build-qgroundcontrol-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/android-QGroundControl-deployment-settings.json
        Output directory: C:/Julian/build-qgroundcontrol-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/android-build/
        Application binary: QGroundControl
        Android build platform: android-31
        Install to device: No
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.Palette
        Warning: QML import could not be resolved in any of the import paths: Custom.Widgets
        Warning: QML import could not be resolved in any of the import paths: org.freedesktop.gstreamer.GLVideoItem
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.Controllers
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.SettingsManager
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.ArduPilot
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCPositionManager
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.MultiVehicleManager
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.ShapeFileHelper
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.Templates
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.ScreenToolsController
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCMapEngineManager
        Warning: QML import could not be resolved in any of the import paths: MAVLink
        Warning: QML import could not be resolved in any of the import paths: QGroundControl.AutoPilotPlugin
        Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
        Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
        -- Skipping C:/Qt/5.15.2/android/plugins/position/libplugins_position_qtposition_serialnmea_x86.so. It has unmet dependencies: lib/libQt5SerialPort_x86.so.
        Cannot find android sources in C:/Julian/build-qgroundcontrol-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/ANDROID_PACKAGE_SOURCE_DIR18:08:58: The process "C:\Qt\5.15.2\android\bin\androiddeployqt.exe" exited with code 11.
        Error while building/deploying project qgroundcontrol (kit: Android Qt 5.15.2 Clang Multi-Abi)
        When executing step "Build Android APK"
        18:08:58: Elapsed time: 11:31.

        If you need more information please let me know

        J 1 Reply Last reply 6 Nov 2023, 12:47
        0
        • D deathStroke69
          6 Nov 2023, 12:40

          @jsulm Hi thank you for your reply. I installed QT using https://www.qt.io/download-open-source and I checked Android in the installing components page. 42d8fddc-4097-4787-b1a7-15c6fcafd566-image.png

          Generating Android Package
          Input file: C:/Julian/build-qgroundcontrol-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/android-QGroundControl-deployment-settings.json
          Output directory: C:/Julian/build-qgroundcontrol-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/android-build/
          Application binary: QGroundControl
          Android build platform: android-31
          Install to device: No
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.Palette
          Warning: QML import could not be resolved in any of the import paths: Custom.Widgets
          Warning: QML import could not be resolved in any of the import paths: org.freedesktop.gstreamer.GLVideoItem
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.Controllers
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.SettingsManager
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.ArduPilot
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCPositionManager
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.MultiVehicleManager
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.ShapeFileHelper
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.Templates
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.ScreenToolsController
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCMapEngineManager
          Warning: QML import could not be resolved in any of the import paths: MAVLink
          Warning: QML import could not be resolved in any of the import paths: QGroundControl.AutoPilotPlugin
          Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
          Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
          -- Skipping C:/Qt/5.15.2/android/plugins/position/libplugins_position_qtposition_serialnmea_x86.so. It has unmet dependencies: lib/libQt5SerialPort_x86.so.
          Cannot find android sources in C:/Julian/build-qgroundcontrol-Android_Qt_5_15_2_Clang_Multi_Abi-Debug/ANDROID_PACKAGE_SOURCE_DIR18:08:58: The process "C:\Qt\5.15.2\android\bin\androiddeployqt.exe" exited with code 11.
          Error while building/deploying project qgroundcontrol (kit: Android Qt 5.15.2 Clang Multi-Abi)
          When executing step "Build Android APK"
          18:08:58: Elapsed time: 11:31.

          If you need more information please let me know

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 6 Nov 2023, 12:47 last edited by
          #4

          @deathStroke69 said in QGC Android build failing.:

          libQt5SerialPort_x86.so

          Does your Android Qt installation have such a file?
          I'm not sure whether QtSerialPort module is part of Qt Android official builds.
          Could be that you have to build it by yourself.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D deathStroke69
            6 Nov 2023, 12:07

            Hi I am new to QT and fairly new to programming as well. So sorry if I am not understanding the jargon. Now coming to the issue.
            I am trying to compile the QgroundControl code for android.

            Things I have done:
            I have set up VDM in android studio
            I have set up the android environment
            When compiling qmake and make steps seems to get excecuted properly without errors.
            Problem is the Build Android APK
            I have mostly followed all instructions in https://dev.qgroundcontrol.com/master/en/index.html and the desktop version compiles no problem
            error.PNG Capture.PNG

            J Offline
            J Offline
            JoeCFD
            wrote on 6 Nov 2023, 21:22 last edited by
            #5

            @deathStroke69 from the error message, your ABIs selection is x86. Are you sure it is the right one? I guess most people select arm64-v8a(my selection) or armeabi-v7a.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              deathStroke69
              wrote on 7 Nov 2023, 04:23 last edited by deathStroke69 11 Jul 2023, 04:34
              #6

              @jsulm Hmm okay I am not sure of how to do this. I just checked the lib folder and it has the file libQt5SerialPort_x86.so

              @JoeCFD Hi, I tried in both it gives the same error

              Sorry for the late reply

              1 Reply Last reply
              0

              4/6

              6 Nov 2023, 12:47

              • Login

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