Skip to content

Instantly share code, notes, and snippets.

@jniemann66
Last active May 29, 2017 13:00
Show Gist options
  • Save jniemann66/be4df75543c17cb3c8fc8c051dc9f5d9 to your computer and use it in GitHub Desktop.
Save jniemann66/be4df75543c17cb3c8fc8c051dc9f5d9 to your computer and use it in GitHub Desktop.
Qt Android Dev on Linux

Android Studio

dependencies:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

download (put it in the /opt directory)

Install

Launch:

cd /opt/android-studio/bin && ./studio.sh

Android NDK

start Android Studio, and open the menu Tools/Android/SDK Manager (you need to create a dummy project at the wizard to get to the menus)

*alternatively, run ~/Android/Sdk/tools/bin/sdkmanager *

Choose the SDK TOOLS tab

select NDK

also select cmake

and apply.

Getting Started Guide

JDK

Java SE Downloads Page

via ubuntu PPA:

sudo add-apt-repository ppa:webupd8team/java
sudo apt update; sudo apt install oracle-java8-installer
javac -version
sudo apt install oracle-java8-set-default

Qt Creator

Getting Started with Qt Creator

download page

Qt 5.8 linux-android download

setting SDK locations (Qt Creator Options/Devices/Android):

JDK: /usr/lib/jvm/java-8-oracle (Qt Creator seems to find this automatically)

Android SDK: ~/Android/Sdk

Android NDK: ~/Android/Sdk/ndk-bundle

info on what you can and can't do with Qt for Android

Qt for Android

Enabling KVM for emulation

remember to ensure that Virtualisation Technology (VT) is switched-on in BIOS

test with kvm-ok command:

kvm-ok

INFO: /dev/kvm exists
KVM acceleration can be used

Intel Article

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment