Skip to main content
AGATT.1
Associate
April 14, 2020
Solved

How to bitbake meta-toolchain-qt5

  • April 14, 2020
  • 2 replies
  • 2712 views

Hello everyone,

I managed to build st-example-image-qt on my STM32MP157C-DK2 with some extra image features.

Now i just want to run bitbake meta-toolchain-qt5 but the build end up with errors that i can't solve.

I attached the output console when i try to build it.

Do you have any clue how to resolve this ?

Thank you.

This topic has been closed for replies.
Best answer by AGATT.1

I finally managed to solve it.

in /conf/local.conf i added

DISTO_FEATURES += " gstreamer opengl ld-is-gold directfb kde qt5-static"

Then i had some issue with qtquickcontrol2.bb and qtbase_git.bb and qtdeclarative

create qtbase_git.bb file if it doesn't exist in meta-qt5/recipes-qt/qt5

add this :

PACKAGECONFIG += "gles2 qtxmlpatterns qtquickcompiler"

Then i had issues with qtwebkit.bb.

=>Just delete it from your image. In my situation it was st-example-image-qt.bb

i built my image properly with

bitbake st-example-image-qt
bitbake meta-toolchain-qt5 -c populate_sdk

You should be able to see qmake in your default sdk installation folder

/opt/st/stm32mp1-disco/2.6-snapshot/sysroots/x86_64-openstlinux_eglfs_sdk-linux/usr/bin/qmake

2 replies

koan
Associate II
April 14, 2020

Hi,

this usually works out of the box. [1]

Try to figure out what you did in your "some extra image features".

[1] https://koansoftware.com/yocto-project-meta-layer-for-stm32mp1-by-koan/

AGATT.1
AGATT.1AuthorBest answer
Associate
April 26, 2020

I finally managed to solve it.

in /conf/local.conf i added

DISTO_FEATURES += " gstreamer opengl ld-is-gold directfb kde qt5-static"

Then i had some issue with qtquickcontrol2.bb and qtbase_git.bb and qtdeclarative

create qtbase_git.bb file if it doesn't exist in meta-qt5/recipes-qt/qt5

add this :

PACKAGECONFIG += "gles2 qtxmlpatterns qtquickcompiler"

Then i had issues with qtwebkit.bb.

=>Just delete it from your image. In my situation it was st-example-image-qt.bb

i built my image properly with

bitbake st-example-image-qt
bitbake meta-toolchain-qt5 -c populate_sdk

You should be able to see qmake in your default sdk installation folder

/opt/st/stm32mp1-disco/2.6-snapshot/sysroots/x86_64-openstlinux_eglfs_sdk-linux/usr/bin/qmake