Build a Windows development environment based on QT 5.7.0 for Android

Source: Internet
Author: User

Build a Windows development environment based on QT 5.7.0 for Android

This article belongs to reprint original address https://my.oschina.net/armsky/blog/740645

First, download the software
1.jdk:jdk-8u102-windows-i586.exe
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-windows-i586.exe

2.sdk:android-studio-bundle-143.2915827-windows.exe
Https://developer.android.com/studio/index.html
Https://dl.google.com/dl/android/studio/install/2.1.2.0/android-studio-bundle-143.2915827-windows.exe

3.ndk:android-ndk-r12b-windows-x86.zip
Https://developer.android.com/ndk/downloads/index.html
Http://dl.google.com/android/repository/android-ndk-r12b-windows-x86.zip


4.ant:apache-ant-1.9.7-bin.zip
http://ant.apache.org/bindownload.cgi
Http://apache.fayea.com//ant/binaries/apache-ant-1.9.7-bin.zip

Http://mirrors.cnnic.cn/apache//ant/binaries/apache-ant-1.9.7-bin.zip


5.qte:qt-opensource-windows-x86-android-5.7.0.exe
https://www.qt.io/download-open-source/
Http://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-windows-x86-android-5.7.0.exe


Second, install the software

1, install the Jdk-8u102-windows-i586.exe under the C:\Qt\Java\jdk1.8.0_102\ and C:\Qt\Java\jre1.8.0_102;

2, install the Android-studio-bundle-143.2915827-windows.exe under C:\Qt\Android\Android Studio and C:\QT\ANDROID\SDK;

3, the Android-ndk-r12b-windows-x86.zip decompression to C:\Qt\android-ndk-r12b below;

4, the Apache-ant-1.9.7-bin.zip decompression to C:\Qt\apache-ant-1.9.7-bin below;

5, install the Qt-opensource-windows-x86-android-5.7.0.exe under the C:\Qt\Qt5.7.0;

Iii. development projects

1, configuring the Environment
Open the Qtcreator.exe below C:\Qt\Qt5.7.0\Tools\QtCreator\bin, and select "Andorid" in "Tools", "Options" to fill in the software above
Paths to JDK, SDK, NDK, Ant: C:\Qt\Java\jdk1.8.0_102 and C:\Qt\Android\sdk and C:\Qt\android-ndk-r12b
and C:\Qt\apache-ant-1.9.7-bin\apache-ant-1.9.7\bin\ant.bat

2, set up the project
A, open Qtcreator.exe, and in file, new file or project Select all templates->APPLICATION->QT Widgets application
Then click "Choose ...", select the project path "D:\works\TEST\qttest" and the project name "TEST", tick "Android for armeabi-v7a (GCC 4.9, Qt 5.7.0)"
and "Desktop Qt 5.7.0 MinGW 32bit" two templates;
B, go straight down the road and build a test project, select the build under "Android for armeabi-v7a (GCC 4.9, Qt 5.7.0)" In the project, and select it under the "Build" menu
"Select Rebuild project ' TEST ' to compile and
"D:\works\TEST\qttest\build-test-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Release\android-build\bin" is generated under " qtapp-debug.apk "
and "qtapp-debug-unaligned.apk" files;
C, download the generated APK file through the data cable to the Android phone to install the test use.

 

Build a Windows development environment based on QT 5.7.0 for Android

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.