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!
Solved! Go to Solution.
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.
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.
2024-11-09 04:08 PM
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
2024-11-12 03:16 PM
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
2024-11-20 09:43 PM