Qt For Android 配置(Qt5.11 Ubuntu16.04)

Qt For Android 配置(Qt5.11 Ubuntu16.04)

First, download

http://download.qt.io/archive/qt/5.11/5.11.1/

Select the following

tools_r25.2.3-linux.zip(SDK tools)

android-ndk-r13b-linux-x86_64.zip (NDK)

Second, the installation

1, extract the zip

Extract the two zip files to the / opt directory:

sudo unzip tools_r25.2.3-linux.zip -d/opt

sudo unzip android-ndk-r13b-linux-x86_64.zip -d/opt

2, install Ant

Use the command:

sudo apt-get install ant

3, install OpenJDK

Use the command:

sudo apt-get install openjdk-8-jdk

4, install Qt

cd ~/Downloads

sudo chmod +x qt-opensource-linux-x64-5.11.1.run

sudo ./qt-opensource-linux-x64-5.11.1.run

Been the next step, until the next drawing, put the hook on the entire election.

 

5, the installation Android SDK

Create a folder:

cd / opt

sudo mkdir android-sdk

The extract from the tools into the android-sdk folder

sudo mv tools android-sdk

Installation sdk:

cd /opt/android-sdk/tools

sudo ./android update sdk --no-ui

Then continue to select yes, you begin to download and install.

 

Note: This process is very slow long, android-sdk folder will be after the completion of these things: 

Installation-related libraries:

sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

6, the configuration Qt

 

 

Open the qt, click tools

Select options

Select devices

Click on browse, choose the following path

 

If there appears no hook, put it on the hook

 

Released six original articles · won praise 1 · views 9182

Guess you like

Origin blog.csdn.net/qq_39715243/article/details/104987475