How to build and use an SDK for QT

Revision as of 11:53, 17 September 2020 by Registered User (Created page with "{{UnderConstruction}} STMicroelectronics does not distribute an SDK for QT, but it can be built following the information in this article. ==Prerequisites== Being able to r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Under construction.png Coming soon

STMicroelectronics does not distribute an SDK for QT, but it can be built following the information in this article.

1. Prerequisites[edit source]

Being able to rebuild an OpenSTLinux image

2. Build image QT with EGLFS[edit source]

after (refrase this or link to another page)

 repo init ...
 repo sync

select the proper machine and distribution

 DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh

and read and accept EULA.

Then build the QT image and the QT SDK

 bitbake st-example-image-qt
 bitbake meta-toolchain-qt5

The image can be flashed as usual (add link). Install the SDK in a folder (check if we suggest a folder):

 ./tmp-glibc/deploy/sdk/meta-toolchain-qt5-openstlinux-eglfs-stm32mp1-x86_64-toolchain-3.1-snapshot.sh -y -d <install_path_sdk>

3. Build a QT application[edit source]

Enter in the folder that contains the application, enable the QT SDK and compile the application

 cd <path_of_app>
 . <install_path_sdk>/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
 qmake && make

4. Text taken from QT framework[edit source]

Qt[1][2][3] is a cross-platform application framework that is used to develop graphical user interfaces (GUIs) and multiplatform applications.

meta-qt5[4] is a Yocto compatible meta layer that provides recipes for Qt modules.

The OpenSTLinux distribution is ready to link with this meta layer.

The OpenSTLinux distribution offers the possibility to use an example of an image based on the QT framework (st-example-image-qt) as a demonstrator, not for developing products. For Qt-based products, the list of STMicroelectronics partners can be found on STMicroelectronics web site.

5. Reference list[edit source]

  1. https://www.qt.io/ Qt home page
  2. https://www.qt.io/qt-for-device-creation/ Qt for Embedded Devices
  3. https://www.qt.io/qt-for-application-development/ Qt for Application Development
  4. https://github.com/meta-qt5/meta-qt5/ Qt5 OpenEmbedded/Yocto Project layer