qt programing and stm32mp157d-dk1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-06 11:59 PM - edited ‎2024-10-07 2:25 AM
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.
Solved! Go to Solution.
- Labels:
-
Linux-SDK
-
STM32MP15 Lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-13 2:20 AM
i have installed the distribution package and followed the bellow steps
and what do do now to set up qt creator?
6.1.3.2. Install X-LINUX-QT Distribution Package↑
To install the X-LINUX-QT Distribution Package
- Clone the meta-st-x-linux-qt git repository
cd <Distribution Package installation directory> git clone -b v1.0.0 https://github.com/STMicroelectronics/meta-st-x-linux-qt.git layers/meta-st/meta-st-x-linux-qt
- Clone the meta-qt5 git repository
git clone -b scarthgap https://github.com/meta-qt5/meta-qt5.git layers/meta-qt5
- For a new environment
Source the build environment with the correct board and layers:
DISTRO=openstlinux-weston MACHINE=stm32mp2 BSP_DEPENDENCY="layers/meta-qt5 layers/meta-st/meta-st-x-linux-qt" source layers/meta-st/scripts/envsetup.sh
- For an already installed environment
Add the layers to the Yocto environment:
cd <Distribution Package installation directory> source layers/meta-st/scripts/envsetup.sh bitbake-layers add-layer ../layers/meta-qt5 ../layers/meta-st/meta-st-x-linux-qt
and
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 12:14 AM
I went with developer package as i was not able to do the distribution package
so the steps i followed for developer package was
i downloaded the MP1-DEV-x86 from st website
For x86_64 host architecture i Uncompressed the tarball file to get the SDK installation script. and Ran the SDK installation script.
for x-linux-qt developer package i downloded the below file(but my board is stm32mp157d-dk1)
i followed these steps
in the terminal i download qt creator using sudo apt install qtcreator and it installed (qt 5.15.13) and u had said Qt Creator will be configured automatically and you will get your MPU kit all set in Qt creator. but i cant find anything other than Qt 5.15.13(system)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 12:31 AM
The full MP1 X-LINUX-Qt support will be available in the coming weeks.
Distribution Package allows anyway user to compile with Qt libraries and run Qt application on MP1.
But for Qt creator MP1 kit configuration, you have to do it manually. Please refer to that post:
For MP2, the SDK-add on configures Qt creator kit automatically, but for MP1, the SDK-Addon is not yet delivered. Sorry of the inconvinience. It will be release soon.
Philippe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 12:37 AM - edited ‎2024-10-14 12:39 AM
i am doing it manually it is showing no compiler can produce code for this qt version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 12:41 AM
Please look at the post I listed before, it will describe how to get the SDK and how to use it
(bitbake st-image-qt -c populate_sdk, ...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 12:46 AM
it is showing like this when i run that
WARNING: Setscene task (/home/sharan/STM32MPU/STM32MPU-Ecosystem-v5.1.0/Distribution-Package/layers/openembedded-core/meta/recipes-core/glibc/glibc_2.37.bb:do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead
NOTE: Tasks Summary: Attempted 496 tasks of which 494 didn't need to be rerun and 2 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 5 seconds
Summary: 2 tasks failed:
/home/sharan/STM32MPU/STM32MPU-Ecosystem-v5.1.0/Distribution-Package/layers/openembedded-core/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_6.1.bb:do_unpack
/home/sharan/STM32MPU/STM32MPU-Ecosystem-v5.1.0/Distribution-Package/layers/openembedded-core/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_6.1.bb:do_prepare_recipe_sysroot
Summary: There were 302 ERROR messages, returning a non-zero exit code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-14 9:41 PM - edited ‎2024-10-15 1:28 AM
can someone please verify these steps please check the steps and correct me if i am wrong
steps to download distribution package
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=<machine> source layers/meta-st/scripts/envsetup.s
5.bitbake st-image-weston
Install X-LINUX-QT Distribution Package
6. cd <Distribution Package installation directory>
7.git clone -b v1.0.0 https://github.com/STMicroelectronics/meta-st-x-linux-qt.git layers/meta-st/meta-st-x-linux-qt
8. git clone -b scarthgap https://github.com/meta-qt5/meta-qt5.git layers/meta-qt5
9. DISTRO=openstlinux-weston MACHINE=stm32mp2 BSP_DEPENDENCY="layers/meta-qt5 layers/meta-st/meta-st-x-linux-qt" source layers/meta-st/scripts/envsetup.sh
10.bitbake st-image-qt
11.bitbake st-image-qt -c populate_sdk
12.sdk generation refering to this doc https://wiki.st.com/stm32mpu/wiki/How_to_create_an_SDK_for_OpenSTLinux_distribution and using this command
bitbake -c populate_sdk st-image-weston
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-15 1:57 AM
Hi Sharan,
- "For an already installed environment", you have to add new layers by a "bitbale-layer add-layer" command
- For mp15 DK board, use MACHINE=stm32mp15-disco. This will be simpler.
So you should get these command sequence
4. DISTRO=openstlinux-weston MACHINE=stm32mp15-disco source layers/meta-st/scripts/envsetup.sh
7. git clone -b v1.0.0 https://github.com/STMicroelectronics/meta-st-x-linux-qt.git layers/meta-st/meta-st-x-linux-qt
8. git clone -b scarthgap https://github.com/meta-qt5/meta-qt5.git layers/meta-qt5
9.
bitbake-layers add-layer ../layers/meta-qt5 ../layers/meta-st/meta-st-x-linux-qt
9. DISTRO=openstlinux-weston MACHINE=stm32mp2 BSP_DEPENDENCY="layers/meta-qt5 layers/meta-st/meta-st-x-linux-qt" source layers/meta-st/scripts/envsetup.sh
10.bitbake st-image-qt
11.bitbake st-image-qt -c populate_sdk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-16 12:01 AM - edited ‎2024-10-16 12:39 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-16 12:59 AM
"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.
