...
First, you have to build a 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 before you have to add the sftp feature.
Create project:
...
The detailed deploy process you can find here: deploy_image After first boot you have to change the /etc/ssh/sshd_config. Please modify the following line and restart service or device:
...
Also you can find a prebuilt SDK: Software-Development-Kit
Install QTCreator
On Ubuntu or similar you can install the QTCreator with the packet manager (This application note is based on 18.04.1-Ubuntu) :
Code Block |
---|
sudo apt-get install qtcreator |
Configure QTCreator
Setup a device for ssh connection and sftp download
You can use the wizard and the the device.
...
Add the cross-compiler
Add cross-compiler:
Code Block |
---|
C++ 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 C 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 |
...
Add GDP debugger:
Code Block |
---|
path: /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gdb |
...
Add QMake:
Code Block |
---|
location: /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake |
...
Add Kit:
Code Block |
---|
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 Compiler: 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
create a new project using the „Qt Widgets Application“ template
use the just created „Yocto Cross-compile x86 64bit“ Kit
add the deploy settings to *.pro file
Code Block |
---|
target.path=/home/root INSTALLS += target |
...
To use the configuration for Debian 10 (buster) DEBIAN 10 (buster) you have also follow the next steps:
Install Debian 10
Follow the steps to install Debian DEBIAN 10 (buster).
Install QT5
Add qt5 to Debian
Code Block |
---|
sudo apt install qt5-default gdbserver |
Modify Project
Modify the configuration of QTCreator. Projects→Run→Run Environment
...