The build environment is the name for the shell in that the application is build.
Install the following software packages on your host system from your package manager (if not yet installed):. Optional components (there might be KDE software using it):.Qt Creator 3.4.2 (cannot be disabled, some of its tools are used from other parts).
install the following components to /opt/android/Qt5.5.0:. Variant 2: Online installer ("Skip" can be used without problem when asked to register an account). Variant 1: Offline Installers ("Skip" can be used without problem when asked to register an account). Download the Qt 5.5.0 for Android: (32-bit or 64-bit as it fits your host system usually 64-bit). result: now the NDK should be installed in /opt/android/android-ndk-r10e. unpack the package (see the instructions on the download page). result: now the SDK should be installed in /opt/android/android-sdk-linux. sys-img-armeabi-v7a-android-22 (required for emulator and unit tests). Android 5.1.1 (API 22): SDK Platform (only "SDK Platform" needed, i.e. Unpack, run "tools/android update sdk" and select the following packages:. you can also use a smaller version >= 1.7.0 if applying this change directly to your cmake files. we require at least version >= 5.15 due to. Some 32 bit system libraries are required for the host system (because some tools are 32 bit):. Prerequisites / Setup of Cross-Compiling Build SystemĪt first we prepare your system with all necessary packages to build your application for Android.įor this tutorial we assume that everything is done in the folder /opt/android/ (you can adapt the tutorial accordingly when using another folder). In the following, we explain how to setup a build environment on a Linux system to be able to compile Qt and in particular KF5-based application for Android. Setup Environment for KDE on Android Development