cancel
Showing results for 
Search instead for 
Did you mean: 

qt programing and stm32mp157d-dk1

Sharan
Senior

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.

34 REPLIES 34
Sharan
Senior

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

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.
Sharan
Senior

@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

Sharan
Senior

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

Sharan
Senior

@PPAGE.13 ,i am able to deploy Qt applications to a target STM32MP157d-DK1 from a linux host machine. but still i am getting this warning.what to do?

 Starting /opt/myfirstqtproject/bin/myfirstqtproject...
Warning: Identity file  not accessible: No such file or directory.
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000