Setting up Qt Creator to build for i.MX6

Document created by gusarambula Employee on Oct 12, 2015
Version 1Show Document
  • View in full screen mode

This documents describes the neceesary steps to set up Qt Creator with the Qt5 toolchain that is available as part of the 3.14.28 BSP Release.




1) Linux machine. Ubuntu 12.4 or higher is recommended.


2) Yocto Freescale BSP Release L3.14.28 or higher.

For this example we'll use the Freescale BSP Release L3.14.28 but you may use future BSP releases that include the Qt toolchain.


- Freescale BSP Release Documentation L3.14.28 (login required)


3) Qt5 Meta Toolchain (Poky 1.7 qt5 / L3.14.28 for our example but you may use the qt toolchain that corresponds to the BSP that will be used)


For information on how to extract and install the meta toolchain please follow the steps on the next document but with the following command:


$ bitbake meta-toolchain-qt5

Task #7 - Create the toolchain


Then run the script.



Installing Qt Creator


We will use the Open Source version of Qt Creator. Please make sure that your application does comply with the requirements of Open Source Software before installing.


You may download Qt Creator Open Source for Linux from the following link:


Once you downloaded the installer you will need to make sure that the file has permission to be executed. You can add this with the following command:

$ chmod +x


Then run the installer

$ ./



After the information from the repositories has been fetched you will be asked where to install Qt Creator.



Then you will be asked which components to install. We will install Qt 5.4 which is the one supported on the 3.14.28 BSP release.



You will need to accept the License Agreement and then the installer will fetch and install the necessary files.



Configuring Qt Creator


Once it’s finished downloading, launch Qt Creator. You can do this with the following command:


cd <INSTALATION_DIR>/Tools/QtCreator/bin



Under the Tools top bar menu, chose Options…



On the Options window’s left menu chose Build & Run and then the Compilers tab and select Add GCC.



On the next screen chose a name for this Compiler (i.e. i.MX Qt5) and then select the Compiler path, which may vary depending on where you have it installed but by default should be in:




It should then be detected as arm-linux on the ABI section.


Next select the Qt Versions tab and click on Add… Look for the qmake on the toolchain path, which is by default:




Finally, on the Kits tab add a new kit and select the sysroots from the toolchain, which is by default located in:




Qt Creator is now configured for building for the i.MX6.

2 people found this helpful