QT Creator Detailed installation Deployment tutorial (including three ways)

Source: Internet
Author: User
Tags chmod file permissions

Recently contacted graphical GUI programming, try to use QT Cross-platform language to write, but the IDE deployment of QT, encountered a lot of problems, online search to the general comparison of the old, so write a summary for your reference. The main installation of the system is linux,windows and Mac is not involved. Mode 1: Official online installation program

Download the online installer on Qt's official website and use the software to select in-house deployment, private uses, or student or Open source distribution under An LGPL or GPL license can be downloaded free of charge. Of course, you can also skip the question and answer, one step to reach the download page, the portal. Detailed diagram:

Select Download Now to download an online installer

This page will automatically determine your operating system type and choose a suitable version for you. In the Linux system, before installing the downloaded program, remember to modify the file permissions, enter the directory of the file in the command line, and execute the following command (for example, I downloaded the file named Qt-unified-linux-x86-online.run):

chmod +x Qt-unified-linux-x86-online.run

You can modify the file properties to an executable file, and then execute the following command:

./qt-unified-linux-x86-online.run

You can start the installer, and then go on to the next step. Mode 2: Update dependent files and install QT Creator online

Now QT's development package is getting bigger, the newest edition is already on G, sometimes we want to carry an offline installation package to use also appear to be very troublesome. At this time, we can choose to carry a relatively small QT creator installation package (100M or so), before the installation Update system library files (200M or so), so relatively direct carrying offline installation package more convenient. It should be noted here that this installation can only be installed to the QT4 version, if you need to install QT5, please do not use this method. specifically as follows: in the official download address select the required QT Creator version, I choose here is the 32-bit qt-creator-opensource-linux-x86-3.5.0

Update the Linux system's library files. The system version I use is as follows

Execute the following two instructions in the terminal command line, and note that the order of execution is not reversed:

sudo apt-get update

sudo apt-get install g++ gdb make CMake qt4-qmlviewer qt4-doc qt4-dev-tools build-essential LIBGL1 -mesa-dev

Detailed diagram:

First command

The first command completes as follows:

Second command

The second command has a confirmation prompt during execution and enters Y and returns.

The second command is displayed after the execution is complete

3. Change the permissions of the creator installation file, the terminal command line enters the directory where the file is located and executes the following two commands (my filename is qt-creator-opensource-linux-x86-3.5.0):

chmod +x qt-creator-opensource-linux-x86-3.5.0
./qt-creator-opensource-linux-x86-3.5.0

To enter the installation interface, the next step is next.

Program Interface

QT version

4. Install finished, create a project file, Test SDK

5. Finally, you will find that the installed program does not have the start icon, this how to do it. See below for concrete operation.

In the installation directory, locate the Qtcreator file and create a link

Send the created link to the desktop, and you can double-click it to open it later.

Mode 3: Installation via official offline installation package

Select the version you want at the official download site, and then download it. The official release of the compiled version, seemingly support 32-bit system version of the highest only 5.1.1.
Give the downloaded file permissions (my filename is Qt-linux-opensource-5.1.1-x86-offline.run) as follows:

chmod +x qt-linux-opensource-5.1.1-x86-offline.run
./qt-linux-opensource-5.1.1-x86-offline.run

In this way, you can start the installation.

Above three kinds of ways, illustrated, hope to help the novice.

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.