How to Install Qt 5 Development Tools in Linux

When starting Qt 5 application development in Linux it is necessary to first install Qt 5 development tools. Qt Creator is the IDE used to develop Qt applications. In order for Qt Creator to be able to build Qt applications, library files, header files and a C++ compiler must be installed.

This article shows how to install the necessary packages for Qt 5 application development. It was tested on a Linux Mint 18 Mate 64-bit computer, but should work on other Debian based Linux distributions such as Ubuntu and other Linux Mint versions.

[adinserter block="1"]

Install Qt Creator

Qt Creator is an IDE for Qt GUI and C++ code development. It is used to graphically lay out windows and widgets for GUI applications and to edit C++ code.

Qt Creator
Qt Creator

Install Qt Creator using the following command in a terminal window.

sudo apt-get install qtcreator

Install Qt 5 Libraries, Header Files and Tools

Qt Creator needs Qt 5 libraries, header files and software utility tools to be installed. Without these packages Qt applications would not be able to be compiled. All the necessary packages can be installed by running the following command in a terminal window.

sudo apt-get install qtdeclarative5-dev

Install a C++ Compiler

Finally a C++ compiler must be installed on the system. Qt development is done in C++ in Qt Creator. Applications will not be able to be compiled without a C++ compiler installed. Run the following command to install the g++ C++ compiler

sudo apt-get install g++

With the above packages installed, you are ready to begin developing Qt 5 applications using Qt Creator. You may like to try the Qt 5 Hello World tutorial to start learning how to use Qt Creator to make a simple GUI application.

Vous aimerez aussi...

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *