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.

QGC Android build failing.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 871 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 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

    jsulmJ JoeCFDJ 2 Replies Last reply
    0
    • D deathStroke69

      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

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on 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
      0
      • jsulmJ jsulm

        @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 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

        jsulmJ 1 Reply Last reply
        0
        • D deathStroke69

          @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

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on 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

            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

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on 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 last edited by deathStroke69
              #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

              • Login

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