Re: Unable to build image with qt examples

Martin Jansa

On Thu, Dec 02, 2021 at 07:28:38PM -0800, Ankur Tyagi wrote:

I am using dunfell branch and trying to include qtbase-examples, qtdeclarative-examples, qtquickcontrols2-examples in the image by adding following to the packagegroup:

qtbase-examples \
qtdeclarative-examples \
qtquickcontrols2-examples \
but during image creation I am getting following error:

Problem 1: conflicting requests
- nothing provides qtdeclarative-examples needed by packagegroup-qt5-1.0-r0.noarch
Problem 2: conflicting requests
- nothing provides qtquickcontrols2-examples needed by packagegroup-qt5-examples-1.0-r0.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

But checking qtdeclarative and qtquickcontrols2 recipes, they do provide this package:

ankur@pc:~/build $ bitbake -e qtquickcontrols2 | grep ^PACKAGES=
PACKAGES="qtquickcontrols2-qmldesigner qtquickcontrols2-qmlplugins qtquickcontrols2-tools qtquickcontrols2-plugins qtquickcontrols2-mkspecs qtquickcontrols2-examples qtquickcontrols2-src qtquickcontrols2-dbg qtquickcontrols2-staticdev qtquickcontrols2-dev qtquickcontrols2-doc qtquickcontrols2-localeĀ  qtquickcontrols2"

ankur@pc:~/build $ bitbake -e qtdeclarative | grep ^PACKAGES=
PACKAGES="qtdeclarative-ptest qtdeclarative-qmldesigner qtdeclarative-qmlplugins qtdeclarative-tools qtdeclarative-plugins qtdeclarative-mkspecs qtdeclarative-examples qtdeclarative-src qtdeclarative-dbg qtdeclarative-staticdev qtdeclarative-dev qtdeclarative-doc qtdeclarative-localeĀ  qtdeclarative"

What am I missing here?
most likely to enable the PACKAGECONFIG to build them

recipes-qt/qt5/[examples] = ""
recipes-qt/qt5/ += "${@bb.utils.contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', '', d)}"

Join to automatically receive all group messages.