QGC Android build failing.
-
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
-
@deathStroke69 Please post errors as text, not pictures.
The error message says that QtSerialPort is not available. How did you install Qt for Android? -
@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.
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
-
@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. -
@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.