Access to information is restricted depending on your login. Request login-information through our contact form.


How to Build Applications with QTCreator and Yocto SDK

This application note will guide you through the steps needed, to integrate an Yocto SDK to QTDesigner.
The QTDesigner can be used to crosscompile QTApplications, deploy and debug direct on the taget platform.
The used platform is the NXP i.MX8M Mini based Trizeps VIII Mini or Myon II.

Build Yocto Image an SDK

First you have to build an Yocto Image with QT and sftp-server (needed by QTDesigner to deploy applications).
The process to install yocto and create an image you can find here (Yocto, Trizeps VIII, Trizeps VIII Mini).
You need to build the project fsl-image-qt5-validation-imx, but bevor you have to add the sftp feature.
Create project:

DISTRO=fsl-imx-wayland MACHINE=imx8mm_trizeps8mini source -b build-wayland

After create the project folder please edit the conf/local.conf:

EXTRA_IMAGE_FEATURES ?= "debug-tweaks openssh-sftp-server"

Now you can start the Image compilation with bitbake:

bitbake fsl-image-qt5-validation-imx

The first build process depending on the build machine takes a long time.

When the process finish you can also build the SDK you will need:

bitbake -c populate_sdk fsl-image-qt5-validation-imx

You will find the image at <build-dir>/tmp/deploy/images and the
SDK at <build-dir>/tmp/deploy/sdk/<image-name>-<host-arch>-<distro-version>

Deploy Image

The detailed deploy process you can find here: deploy_image After first boot you have to change the /etc/ssh/sshd_config. Please modifiy the following line an restart service or device:

#Subsystem sftp /usr/libexec/sftp-server
Subsystem sftp internal-sftp

Install SDK

You can easily install the SDK with root permissons:


Also you can find a prebuilt SDK: Software-Development-Kit

Install QTCreator

On Ubuntu or similar you can install the QTCreator with the packetmanager (This application note based on 18.04.1-Ubuntu) :

sudo apt-get install qtcreator

Configure QTCreator

1. Setup an device for ssh connection and sftp download
You can use the wizzard and the the device.

2. Add the cross-compiler
Add cross-compiler:

path: /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++
ABI: arm-Linux-gernic-elf-64bit
path: /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc
ABI: arm-Linux-gernic-elf-64bit

3. Add GDP debugger:

path: /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gdb

4. Add QMake:

location: /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake

5. Add Kit:

Device type: Generic Linux Device
Device: The created device from step 1
Sysroot:  /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux
C: Compiler from step 2 
C++: Compiler from step 2
Debugger: Debugger from step 3
QT Version: QT 5.10.1 (qt5)

Create Sample Project

  1. create a new project using the „Qt Widgets Application“ template
  2. use the just created „Yocto Cross-compile x86 64bit“ Kit
  3. add the deploy settings to *.pro file
INSTALLS += target

How to Build Applikations with QTCreator and Yocto SDK for Debian 10

To use the configuration for Debian 10 (buster) DEBIAN 10 (buster) you have also follow the next steps:

6. Install Debian 10 Follow the steps to install Debian DEBIAN 10 (buster).

7. Install QT5 Add qt5 to Debian

sudo apt install qt5-default gdbserver

8. Modify Project Modify the configuration of QTCreator. Projects→Run→Run Environment

Use System Environment and
Set DISPLAY to :0

To Run and Build you have to change the settings in *.pro

Cookies helfen bei der Bereitstellung von Inhalten. Durch die Nutzung dieser Seiten erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Rechner gespeichert werden. Weitere Information
service/linux/aappnote/qtcreator.txt · Zuletzt geändert: 2020/06/22 09:55 von