Configure the QT-Android development environment in Windows 7!

Source: Internet
Author: User
Tags windows x86

Configure QT5.2.0-Android:

Develop software in Windows 7 ~ You don't need to use eclipse to develop android software. After configuration, you can write C ++ code and run the APP on your Android phone!

Software Configuration: ensure that you only have one Qt on your computer. If you have installed other versions of Qt on your computer, uninstall the tape, it is important to uninstall all components, and to know some added items in your system environment variables. Because the Qt-for-android-5.2.0 can not only Android development, but also some local PC development! We don't have to worry! Well, let's not talk much about it. We started to build the environment!

Software preparation and installation steps:

Qt-opensource-windows-x86-android-5.2.1.exe



After installation, you need to add some paths to the system path:


Click Advanced System settings to edit the environment variable:

You also need to download Java Platform (JDK)

Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Click windows x86 to install

By default, you need to add the Java path to the system path after the conversion:

Create a system path item:

ClassPath C: \ Program Files (x86) \ Java \ jdk1.7.0 _ 51 \ bin

JAVA_HOME C: \ Program Files (x86) \ Java \ jdk1.7.0 _ 51

Download later

Adt-bundle-windows-x86-20131030.zip ------ Android Development SDK

Http://developer.android.com/sdk/index.html

After the download is complete, decompress the package in the specified directory and then perform the upgrade:



Open SDK Manager.exe for upgrade. You can select the version of the developed interface, and then perform online upgrade and installation.


Add the tools Path in the SDK to the system Path.

Then install NDK:

Android-ndk-r9c-windows-x86.zip

Http://developer.android.com/tools/sdk/ndk/index.html


Download the Windows 32-bit version.

Decompress the package to the top-level directory of android SDK.


Then add path D: \ AndroidEnv \ android-ndk-r9c to androidNDKHOST under system path.

Then you need to download the apache-ant-1.9.3-bin.zip

Http://ant.apache.org/bindownload.cgi


Download the latest ant version and decompress it to the same directory as the SDK and NDK.


Finally, you need to configure the Qt-Android development environment:

Open QtCreator and perform the following operations:



Click tool options:


Click "options" and then select Android options


Restart QtCreator and select different development kits and different development modes.

Good luck! If the installation is not successful, leave a message. I will do my best to help you set up the most basic development environment! Hope you can give me more advice!


Related Article

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.