Unable to build image with qt examples
Hi,
I am using dunfell branch and trying to include qtbase-examples, qtdeclarative-examples, qtquickcontrols2-examples in the image by adding following to the packagegroup:
QT5_EXAMPLES = " \
qtbase-examples \
qtdeclarative-examples \
qtquickcontrols2-examples \
"
but during image creation I am getting following error:
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?
thanks
Ankur
Quoted 20 lines · Ankur Tyagi
Hi,
I am using dunfell branch and trying to include qtbase-examples, qtdeclarative-examples, qtquickcontrols2-examples in the image by adding following to the packagegroup:
QT5_EXAMPLES= " \
qtbase-examples \
qtdeclarative-examples \
qtquickcontrols2-examples \
"
but during image creation I am getting following error: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:
Quoted 7 lines
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/qt5.inc:PACKAGECONFIG[examples] = ""
recipes-qt/qt5/qt5.inc:EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', '', d)}"
Hi Martin,
That solved the issue, thanks.
regards
Ankur