cancel
Showing results for 
Search instead for 
Did you mean: 

how to start GUI for STM32MP135F-DK using QT

JPabl.1
Associate III

Hi there TouchGFX team!

I've a STM32MP135F-DK and I would like to run it using QT, where do I start?

QT seems to have several examples but there's a lot of apps that I don't even know where to start. 

 

Thanks a lot in advance!

1 REPLY 1
PPAGE.13
ST Employee

Hello @JPabl.1 

for Qt support on MP135, you will have two options:

- X-LINUX-QT expansion package that comes with OpenSTLinux Distribution

https://wiki.st.com/stm32mpu/wiki/X-LINUX-QT_Expansion_Package

- or a "QBSP" if you have a Qt commercial license.

 

Today there is not yet an official MP135 X-LINUX-QT or QBSP. But there will be released in the coming weeks.

 

For experience users, the current X-LINUX-QT package can be used for a "stm32mp135-disco" MACHINE.

It will requires skills to setup the environment and make appropriate modifications.

I listed these modifications below in case you or anybody are interested in.

1- First look at the Distribution package installation:

https://wiki.st.com/stm32mpu/wiki/X-LINUX-QT_Expansion_Package#How_to_install_Distribution_Package

But setup for "stm32mp13-disco" machine:

DISTRO=openstlinux-weston MACHINE=stm32mp13-disco BSP_DEPENDENCY="layers/meta-qt5 layers/meta-st/meta-st-x-linux-qt" source layers/meta-st/scripts/envsetup.sh

 

2- In layers/meta-st/meta-st-x-linux-qt/recipes-qt/qt5/qtbase_git.bbappend, add:
PACKAGECONFIG += " \
linuxfb \
"

3- Build and flash your image
bitbake st-image-qt

 

4- On target:
killall stlauncher
systemctl stop weston-graphical-session.service
export QT_QPA_PLATFORM=linuxfb
export QT_QPA_FB_DRM=1

Run your application.

Note: the way to compile a Qt application (Yocto receipe or Qt creator setup with a generated SDK) is not described here.

For Qt creator setup, you can have a look at:

https://community.st.com/t5/stm32-mpus-embedded-software-and/qt-creater-setup-for-stm32mp1/m-p/706440

 

Hope it will help,

Philippe.

 

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.