2024-10-03 12:23 PM
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!
2024-10-08 02:13 AM
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:
Hope it will help,
Philippe.