Example Qt5 GUI Application using Yocto meta-toolchain-qt5 kit

General Note: Example is based on meta-toolchain-qt5 for STM32MP1

  1. Open QTCreator using special script which sets PATH, EXPORTS etc.

2. Go to Examples in QTCreator and choose “Qt Quick Controls 2 – Wearable Demo”

3. Next just click “Copy Project and Open”

4. Configure project for specific Kit

5. Next click on “werable.pro” file and add the following lines

LIBS += -L"/opt/st/stm32mp1/2.6-snapshot/sysroots/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/vendor/lib" -lGAL -lVSC

and modify “target.path” from

target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/wearable


target.path =/home/root

Store changes

6. Click right mouse button on project name “wearable” and click “Run qmake” and next “Rebuild”

7. When compilation finished just run application on remote Development Board

NOTE: Be sure if You have a right Device choosed and access to it.

Michał Wołowik

Software, hardware embedded engineer. Current duties: Linux(YOCTO) and Android(AOSP) images preparation. Main duties are to develop c/c++ application.

This Post Has 2 Comments

  1. philip

    I have a question about that “How Can I displaying this Example LANDSCAPE MODE”. I use STM32MP157C-EV1 board. Example “Qt Quick Controls 2 – Wearable Demo” excute succese. But… The Qtquick Example was displayed by LCD only Portrait mode.. I want to excute example LANDSCAPE MODE.. Please help me and reply How can LANDSCAPE MODE.

  2. ashish

    Great work ! Very useful during project setup

Leave a Reply