Windows Qt5.1.0 Configure Android Environment build good

Source: Internet
Author: User

1. First download the software that needs to be configured:

1 "Qt 5.1.0 for Android (Windows 32-bit, 716 MB) (Info): Http://qt-project.org/downloads

2 "Android SDK tools (only tools can be downloaded): http://developer.android.com/sdk/index.html

Android SDK offline install package (already the latest SDK 2013/7/26): http://www.wuleba.com/18892.html

3 "Android NDK (android-ndk-r9-windows-x86.zip): http://developer.android.com/tools/sdk/ndk/index.html

4 "Apache Ant v1.8 or later (apache-ant-1.9.2-bin.zip): http://ant.apache.org/bindownload.cgi

5 "JAVA JDK (jdk-6u20-windows-i586.exe): http://www.oracle.com/technetwork/java/javase/downloads/index.html

The above is the configuration required software and compression package

2. Installation and configuration: < Install the configuration directory, according to their own local situation configuration, here is only the reference >

"Qt5.1.0 configuration Environment" First installed Qt5.1.0, there is no special way to default.

Environment variable configuration: Add to path:< note semicolon-delimited >
C:\Qt\Qt5.1.0\5.1.0\android_armv7\bin
C:\Qt\Qt5.1.0\5.1.0\android_x86\bin
C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin
C:\Qt\Qt5.1.0\Tools\mingw48_32\bin
C:\Qt\Qt5.1.0\Tools\QtCreator\bin


"Install Java_jdk:jdk-6u20-windows-i586.exe" There is nothing to say here, notice the installation of the JRE during the JDK installation, and some information that the JDK and JRE cannot be in the same directory. I installed it in the same directory, there is no problem.

Environment variable Configuration:< note separated by semicolons >
System Variables-NEW:

Variable: Java_home value: C:\Program files\java\jdk1.6.0_20
Path:%java_home%\bin

"Android-ndk-r9.zip extract directly to the following directory"
D:\QtAndroid\android-ndk-r9

"Android-sdk.7z compressed package to the following directory"
D:\QtAndroid\android-sdk
"Installer_r22.0.5-windows.exe installation directory"
D:\QtAndroid\android-sdk
To configure environment variables:
Path:d:\qtandroid\android-sdk\tools

"Apache-ant-1.9.2-bin.zip Installation"
D:\QtAndroid\apache-ant-1.9.2

Well, the above environment variables and configuration have been completed.

3. Configure the QT Creator directory in QT 5.1.0:

The following reference Big Newaramu blog configuration: http://www.cnblogs.com/rophie/p/3226543.html here no longer repeat!!!

4. About running your QT for Android program:

1. First input via command line: cmd; start the AVD virtual machine created by Windows terminal;

Command: EMULATOR-AVD xxx (XXX for you to create the virtual machine name);

2. Build the execution Qmake deployment sequentially (wait for the virtual machine to start up). The output information for the deployment package can be seen in the Qt Creator Compile Output window.

3. After the package has been deployed successfully, you can find the installed program directly in the virtual machine's application. Click on it to run!!

The above is my summary of the installation of the whole process, to this end!!! If you do not succeed, please leave a message!!!

Http://www.cnblogs.com/A-Number--1/p/windows%E4%B8%8BQt510%E9%85%8D%E7%BD%AEandroid%E7%8E%AF%E5%A2%83%E5%8F%98 %e9%87%8f.html

Windows Qt5.1.0 Configure Android Environment build good

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.