Skip to main content
Senior II
October 7, 2024
Solved

qt programing and stm32mp157d-dk1

  • October 7, 2024
  • 15 replies
  • 6043 views

hi

i am using stm32mp157d-dk1 and i have downloaded qt creator and i have created a simple hello world window now how to display it in the stm32mp157d-dk1?

 

how to set up cross compilation in order to deploy Qt projects directly from a host Linux machine to the embedded target using qtcreator.

Best answer by Sharan

i hope i have got the steps right and for any of the steps bellow does it require internet                                                 1.cd <working directory path>/Distribution-Package

2.repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mpu-v24.06.26

3.repo sync

4. DISTRO=openstlinux-weston MACHINE=stm32mp15-disco source layers/meta-st/scripts/envsetup.sh

5.bitbake st-image-weston

6.bitbake st-image-weston -c populate_sdk

7. cd <Distribution Package installation directory>
8.git clone -b v1.0.0 https://github.com/STMicroelectronics/meta-st-x-linux-qt.git layers/meta-st/meta-st-x-linux-qt

9. git clone -b scarthgap https://github.com/meta-qt5/meta-qt5.git layers/meta-qt5

10. source layers/meta-st/scripts/envsetup.sh

11.bitbake-layers add-layer ../layers/meta-qt5 ../layers/meta-st/meta-st-x-linux-qt

12.bitbake st-image-qt

13.bitbake st-image-qt -c populate_sdk

14.execute "xxx.sh" script available in: build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/sdk

15.setup qt

15 replies

SharanAuthor
Senior II
October 16, 2024

1)first question

after the 5th (that is bitbake st-image-weston) step do u have to execute this commad bitbake st-image-weston -c populate_sdk

2)second question

after the 11th step do we have to execute the bellow one ?

Then install the SDK: execute "xxx.sh" script available in: build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/sdk

3)third question 

how many gb should i need to allocate for the above commands in virtual box and what version of qt creator should i need to install 

4)does the above commands require internet?

PPAGE.13
ST Employee
October 16, 2024

"bitbake st-image-weston -c populate_sdk" command is necessary to generate the SDK .sh script.

This SDK .sh script (in build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/sdk) has to be executed.

This will create a SDK directory you will have to refer to in Qt creator.

Qt Creator 12.x.y can be used.

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

i hope i have got the steps right and for any of the steps bellow does it require internet                                                 1.cd <working directory path>/Distribution-Package

2.repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mpu-v24.06.26

3.repo sync

4. DISTRO=openstlinux-weston MACHINE=stm32mp15-disco source layers/meta-st/scripts/envsetup.sh

5.bitbake st-image-weston

6.bitbake st-image-weston -c populate_sdk

7. cd <Distribution Package installation directory>
8.git clone -b v1.0.0 https://github.com/STMicroelectronics/meta-st-x-linux-qt.git layers/meta-st/meta-st-x-linux-qt

9. git clone -b scarthgap https://github.com/meta-qt5/meta-qt5.git layers/meta-qt5

10. source layers/meta-st/scripts/envsetup.sh

11.bitbake-layers add-layer ../layers/meta-qt5 ../layers/meta-st/meta-st-x-linux-qt

12.bitbake st-image-qt

13.bitbake st-image-qt -c populate_sdk

14.execute "xxx.sh" script available in: build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/sdk

15.setup qt

PPAGE.13
ST Employee
October 16, 2024

10. source layers/meta-st/scripts/envsetup.sh

This has already been done at step 4.

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

@PPAGE.13 ,after the 13th command should i need to execute this 

bitbake st-image-qt package-index

and what is the difference between .bitbake st-image-qt -c populate_sdk and .bitbake st-image-qt package-index

SharanAuthor
Senior II
October 17, 2024

After step 13 and also bitbake st-image-at package index command

in build-<distro>-<machine>/tmp-glibc/deploy/images/<machine> directory

i cant find the file system images in this directory and also in any other directory.

cant find

FlashLayout_sdcard_stm32mp157d-dk1-optee.tsv

SharanAuthor
Senior II
October 17, 2024

how to integrate qt with stm32cubeide for stm32mp157d-dk1 

(beause when a button is clicked in qt it has to write sine values to dac