HOWTO build qtcreator - 'bitbake meta-toolchain-qt5' does not create qtcreator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-16 7:18 AM
Following instructions @
https://www.emsyslabs.com/how-to-compile-linux-using-yocto-for-stm32mp1/
and
https://koansoftware.com/yocto-project-meta-layer-for-stm32mp1-by-koan/
I'm led to believe that a qtcreator executable or script will be created which I can run on the host (Debian) to create and cross compile a QT5 app for STM32MP157.
I'm new to QT but need to create a simple UI to run on STM32MP157, what am I missing ?
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-22 5:38 AM
Hi @wpaulilkinson​ the QtCreator is an independent executable. It is an IDE provided by Qt (see their website).
If you want to build cross-compiling Qt code using QtCreator you have to setup the cross compilation environment before you call QtCreator.
To do that you have two options: 1. open a terminal, setup environment, call Qtcreator; 2. add the cross compilation environment script into a script.
I usually prefer to copy the existing script Qt/Tools/QtCreator/bin/qtcreator.sh and modify it
cp Qt/Tools/QtCreator/bin/qtcreator.sh Qt/Tools/QtCreator/bin/qtcreator-stm32.sh
and insert a line like that (you have to adapt it to your cross compiler)
#! /bin/bash
# Bourne shell(sh), use the . command to source a file
. /opt/st/stm32mp1-disco/2.6-snapshot/environment-setup-cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi
Distinti Saluti / Best Regards
--
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded software engineering
Phone: +39 035-255235
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-17 5:14 AM
Hi @wpaulilkinson​
Do you mean that you didn't get the script and executable as described in point 17 of https://www.emsyslabs.com/how-to-compile-linux-using-yocto-for-stm32mp1/ ?
Or this results is not your expectation ?
Thanks for clarification.
Olivier
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-17 5:48 AM
Thanks Oliver,
Neither the executable stm32_qtcreator or script stm32_qtcreator.sh are created, well not on my desktop or in /opt/st/stm32mp1/2.6-snapshot.
environment-setup-cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi is present in /opt/st/stm32mp1/2.6-snapshot.
My expectation is that both script and executable should be created.
Best regards,
Paul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-22 5:38 AM
Hi @wpaulilkinson​ the QtCreator is an independent executable. It is an IDE provided by Qt (see their website).
If you want to build cross-compiling Qt code using QtCreator you have to setup the cross compilation environment before you call QtCreator.
To do that you have two options: 1. open a terminal, setup environment, call Qtcreator; 2. add the cross compilation environment script into a script.
I usually prefer to copy the existing script Qt/Tools/QtCreator/bin/qtcreator.sh and modify it
cp Qt/Tools/QtCreator/bin/qtcreator.sh Qt/Tools/QtCreator/bin/qtcreator-stm32.sh
and insert a line like that (you have to adapt it to your cross compiler)
#! /bin/bash
# Bourne shell(sh), use the . command to source a file
. /opt/st/stm32mp1-disco/2.6-snapshot/environment-setup-cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi
Distinti Saluti / Best Regards
--
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded software engineering
Phone: +39 035-255235
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-23 5:48 AM
Thanks Marco,
Your answers make sense and tie up with the results of 'bitbake meta-toolchain-qt5 ' in my environment.
In the interim I used Qtcreator to create a simple QT5 UI and created a recipe to cross compile the code.
Best regards,
Paul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-07 10:30 AM
Hi Marco and Paul,
I have installed qtcreator and sourced the correct script from step 17 before calling qtcreator. But After setting up my device kit in qt I get errors as if qt is still trying to compile for my x86 64 bit Linux host. Is there a special way I have to install qtcreator?
main.o: file not recognized: file format not recognized
Thanks for the help
