Skip to main content
Visitor II
January 16, 2020
Solved

HOWTO build qtcreator - 'bitbake meta-toolchain-qt5' does not create qtcreator

  • January 16, 2020
  • 2 replies
  • 5283 views

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.

    This topic has been closed for replies.
    Best answer by koan

    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

    https://KoanSoftware.com

    2 replies

    Technical Moderator
    January 17, 2020

    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

    PWilk.1Author
    Visitor II
    January 17, 2020

    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.

    koanAnswer
    Visitor II
    January 22, 2020

    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

    https://KoanSoftware.com

    PWilk.1Author
    Visitor II
    January 23, 2020

    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.