Skip to main content
JPabl.1
Associate III
October 3, 2024
Solved

how to start GUI for STM32MP135F-DK using QT

  • October 3, 2024
  • 4 replies
  • 1938 views

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!

Best answer by PPAGE.13

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.

 

 

4 replies

PPAGE.13
PPAGE.13Best answer
ST Employee
October 8, 2024

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.
JPabl.1
JPabl.1Author
Associate III
November 10, 2024

We changed the target to the STM32MP157F-dk2, and we have the Qt commercial license.

I tried creating my embedded Linux image using the b2qt manifest 6.7.3 because I used qt 6.73 to create the app. It didn't work out and I feel I'm getting nowhere following that path. 

Now, I'm trying the stm path and so far I installed the starter package and I'm building the distribution package with machine=stm32mp15-disco and st-image-weston, which I hope will be the ground base to add my qt app when it builds. 

The github page says x-linux-qt has support for this board, so I suppose I can just add that layer and build "st-image-qt", and then add my custom recipe with the qt app on it?

I already bitbake the custom recipe with the qt app and it worked with meta-qt6, but the full image wasn't able to built. 

Should I use meta-qt5 or meta-qt6 with openstlinux? or thats already implemented in x-linux-qt?

 

You mentioned qt creator setup, but I don't think I need it because I only want to build the image to be used in the microsd card

 

JPabl.1
JPabl.1Author
Associate III
November 12, 2024

I was able to build the st-image-qt for the stm32mp157f-dk2 using the distribution package and x-linux-qt. I wasn't able to flash the board using stcubeprogrammer but the dd command for the microsd card on linux worked. 

 

I'm having problems finding my custom recipe in the full image but I will post it on another topic

Senior II
November 21, 2024

@JPabl.1and @PPAGE.13  i am able to use qt creator for my stm32mp157d-dk1 and i want to know

How To build Qt applications using STM32CubeIDE