Skip to main content
asadullah4571
Associate III
August 7, 2024
Solved

qt creater setup for STM32Mp1

  • August 7, 2024
  • 3 replies
  • 5921 views

how to setup qt creater application for STM32MP157f-Dk2 board , and where is the location of the toolchain location and how to setup qt version .

 

 

Best answer by PPAGE.13

Hello,

 

very good, your environment looks ready to develop your application.

I suggest anyway you run an existing "hello world" example before doing your own one.

Please look at Qt documentation, like this one: https://doc.qt.io/qt-5/qml-tutorial1.html

And let me know if compilation and execution is fine.

 

BR, 

Philippe.

3 replies

Erwan SZYMANSKI
Technical Moderator
August 7, 2024

Hello @asadullah4571 ,
Can you tell me on which OpenSTLinux version you are please ? 

As information, on OpenSTLinux v5.1, the support of Qt is made through X-LINUX-QT Expansion Package (https://wiki.st.com/stm32mpu/wiki/X-LINUX-QT_Expansion_Package). In  this article indeed, you have explanations to configure QtCreator IDE. 

However, this package is made for STM32MP2x series right now. The support for MP1x series will come in Q4 2024.

If you absolutely need Qt on STM32MP15 before, you can stay on OpenSTLinux v 5.0, and look at the Wiki article here that are still usable (https://wiki.st.com/stm32mpu-ecosystem-v4/wiki/How_to_build_and_use_an_SDK_for_QT)

Kind regards,
Erwan.

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.
asadullah4571
Associate III
August 7, 2024

you can see qt cubeyou can see qt cubeopenstlinux distribution with qt layer , you can see my qt versionopenstlinux distribution with qt layer , you can see my qt versionplease check the settings, gcc , g++ ,and qmake i added from build directoryplease check the settings, gcc , g++ ,and qmake i added from build directoryin this i select the STm32, but the next option not availablein this i select the STm32, but the next option not available

 

 

i only want to print hello word on my screen using qt, how i can do to that ,please explain me step by step 

please 

PPAGE.13
ST Employee
August 8, 2024

Hello @asadullah4571

In your kit window, I see "Qt version" item as "invalid".

Could you please go to the Kits -> "Qt Versions" panel and check the "qmake Path" set in the tool is correct.

It should point to qmake SDK tool. Something like:

<Your PC Install path >/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/qmake

BR,

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.
Senior II
October 7, 2024

hi i am using stm32mp157d-dk1  how to setup qt creater application

PPAGE.13
ST Employee
October 7, 2024

Hello @Sharan ,

all info should be above.

When setting a Qt creator kit, you need a MP1 SDK.

If the SDK has been generated by yourself with the Distribution Package, please use "asadullah4571" screenshots to configure your own MP1 kit.

If you get the SDK with Developper Package and X-LINUX-Qt SDK add-on, the installation automatically configures Qt creator with the MP1 kit.

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.
Visitor II
August 13, 2025

I was struggling with properly configuring QtCreator for the STM32MP1 SDK generated from the Distribution Package. Turns out Qt provides a script to configure a kit automatically: https://code.qt.io/cgit/yocto/meta-boot2qt.git/tree/meta-boot2qt/files/configure-qtcreator.sh

$ configure-qtcreator.sh --config /opt/st/stm32mp1/5.0.8-snapshot/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi --sdktool ~/Qt/Tools/sdktool/libexec/qtcreator/sdktool --name STM32MP1

 

PPAGE.13
ST Employee
August 14, 2025

Hi,

ST  cannot provide support on Qt property script.

If you want an MP1 Kit already configured in Qt Creator, please use X-LINUX-QT developer package that will install it automatically. Then you can use this kit as a reference and clone your own one targeting your compiled SDK.

Please refer to :

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

 

Consistent releases to be used:

OpenSTLinux 6.0.0

https://www.st.com/en/embedded-software/stm32mp1dev.html

https://www.st.com/en/embedded-software/stm32mp2dev.html

 

X-LINUX-QT 2.1.0

https://www.st.com/en/embedded-software/x-linux-qt.html#overview

 

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.