Ubuntu14 qt for Android Device on QT Creator Development environment Setup

Source: Internet
Author: User
Tags android sdk manager java se

To download the package in advance:

1. Java SE develpoment Kit (JDK), version 6 or above;

Http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-i586.tar.gz? Authparam=1401337546_b496ffbe22fcb206d4dca0d56b44eddc

2. Apache Ant 1.8.0 or above;

http://mirror.bit.edu.cn/apache//ant/binaries/apache-ant-1.9.4-bin.tar.bz2

3. Android SDK;

Http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz

Http://dl.google.com/android/adt/22.6.2/adt-bundle-linux-x86-20140321.zip

4. Android NDK (for QT5),

http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86.tar.bz2

or Necessitas SDK (for QT4)

http://mirrors.ircam.fr/pub/kde-applicationdata/necessitas/installer/release/ Linux-online-necessitas-alpha4.1-sdk-installer

5. Qt SDK for Android;

Http://mirrors.hustunique.com/qt/official_releases/qt/5.3/5.3.0/qt-opensource-linux-x86-android-5.3.0.run

Installation:

1. Direct decompression (1 to 4) of the compression package to the directory/home/adam/works/android;

2. During the installation of the Android SDK package, unzip the android-sdk_r22.6.2-linux.tgz and run it on the terminal:./android Update SDK, launch Android SDK Manager to download the Android SDK development tool. But because in the installation, UBUNTU14 on the hard down, or the speed is very slow, you can download the Adt-bundle-linux-x86-20140321.zip integration package, unzip the sdk/under the full copy to/home/adam/android/.

3. The/home/adam/works/android/directory after installation is: android-ndk-r9d, Android-sdk-linux, apache-ant-1.9.4, jdk1.7.0_60.

Set Environment variables:

1. $sudo Gedit/etc/profile

2. Add to File/etc/profile:

Export Path=/home/adam/works/android/jdk1.7.0_60/bin: $PATH
Export Path=/home/adam/works/android/apache-ant-1.9.4/bin: $PATH
Export Path=/home/adam/works/android/android-sdk-linux/platform-tools: $PATH
Export Path=/home/adam/works/android/android-sdk-linux/tools: $PATH
Export path=/home/adam/works/android/android-ndk-r9d: $PATH

3. $source/etc/profile

Install QT SDK for Android:

1. $./qt-opensource-linux-x86-android-5.3.0.run

2. Set the installation path to/home/adam/works/qt-5.3.0-android/

3. After successful installation, open QT Creator (the path is tools/qtcreator/bin/qtcreator in the QT installation directory);

4. To Tools->options->build & Run, check that the development packages have been successfully installed, similar to the following:

Configure the Android development environment:

1. Qt creator:tools->options->android

In this context, the development environment for the Qt for Android has been set up, and the next step is to develop 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.