September 10, 2020

Instruction for build the application on qt

QGroundControl use only qt 5.12.6. Use Qt Maintence tool.

Click add or remove components.

In select package Categories:

Archive and Lts version

Install Qt 5.12.6 modules:

Desktop gcc

All android modules

Qt charts

Install it


Android Studio and NDK installation

Download and unzip Android Studio in /home folder

You can find Android Sdk here: https://developer.android.com/studio

QGroundControl use only android-ndk-r15c version, if ur package depend on it you must download it

You can find unsupported version here: https://developer.android.com/ndk/downloads/older_releases

Download it and unzip in /home folder

When Android studio installed run it:

cd ~/android-studio/bin

chmod x studio.sh // Make script runnable

./studio.sh

Pass installation

Create new empty project

In the upper right corner find Sdk manager

Install sdk platform(any)

Go to sdk tools

make like this

Also Android Sdk build Tools

Install it

Install open-jdk-8

Use: ~$ sudo apt install openjdk-8-jdk (On Ubuntu)

For not ubuntu - https://openjdk.java.net/install/

Open QtCreator

Toolbar->Tools->Option->Devices->Android

Sign path for jdk-location:

often this is:

/usr/lib/jvm/java-8-openjdk-amd64/

Android Sdk location:

/home/modeck/Android/Sdk

Android Ndk location:

~/Android/Sdk/ndk-bundle

~/Android/Sdk/ndk/21.1.6352462/

Will be by default

Add manually path to android-ndk-r15c version

~/android-ndk-r15c/

OpenSSL must be by default

Choose SDK Manager, and click update Installed

Go to Kits

It must look like this:

I don't know why, but my debuggers have problems, may be u will have the same situation, but it;s ok

So you ready to go

For qgroundcontrol

Need extra packages

sudo apt-get install speech-dispatcher libudev-dev libsdl2-dev libstdc++6


Download qgroundcontrol

git clone https://github.com/mavlink/qgroundcontrol.git --recursive

git submodule update

Open qgroundcontrol.pro in QtCreator

If u get error something with openssl

Project->build&run-><Ur version>->Build Android Apk -> Iclude prebuilt OpenSSL lib

If u don't have libssl_1_1.so

cd ./qgroundcontrol/libs/OpenSSL/android_openssl/<Version of build system>

u can see something like that

just copy and rename

to get this

u ready to build