[oe] [meta-qt5] Qt 5.8 examples are not built

Tim Jaacks tim.jaacks at garz-fricke.com
Mon Apr 24 14:21:25 UTC 2017


I recently updated my meta-qt5 layer to the current head version (https://github.com/meta-qt5/meta-qt5/commit/9927aacfc3b341eb36764fbe7d5a929d4f05f327) resulting in an upgrade to Qt 5.8. Since this upgrade, the Qt examples are not built anymore, even though I added them to PACKAGECONFIG of qtbase. Is this a known issue?

In Qt 5.7 the examples were built correctly. As far as I understand, the line that used to make this work in versions before Qt 5.8 is in meta-qt5/recipes-qt/qt5/qt5.inc:

| EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', '', d)}" 

The qmake5_base_do_configure function in meta-qt5/classes/qmake5_base.bbclass evaluates this variable:

| if [ ! -z "${EXTRA_QMAKEVARS_PRE}" ]; then
|     bbnote "qmake prevar substitution: '${EXTRA_QMAKEVARS_PRE}'" 
| fi

This leads to the following note in log.do_configure of qtbase:

| NOTE: qmake prevar substitution: ' QT_BUILD_PARTS+=examples'

However, this note is missing in Qt 5.8 because the call to qmake5_base_do_configure has been removed from the do_configure task of qtbase here:


There is no comment on why this has been removed. I tried re-adding it, which resulted in a duplicate configure run. Obviously this is caused by this change in qtbase:


Does anybody know whether this change was the reason for removing the qmake5_base_do_configure call?

However, the removal breaks the mechanism via EXTRA_QMAKEVARS_PRE, because this variable is no longer evaluated. As far as I can see, there is no option of building the Qt examples at the moment. Or am I missing anything? Any clue would be helpful.

Mit freundlichen Grüßen / Best regards
i.A. Tim Jaacks

Software Engineering
Garz & Fricke GmbH
Tempowerkring 2, 21079 Hamburg - Germany
Amtsgericht Hamburg HRB 60514
Geschäftsführer: Manfred Garz, Matthias Fricke
Phone: +49 40 791899 - 55
Fax:     +49 40 791899 - 39
tim.jaacks at garz-fricke.com

More information about the Openembedded-devel mailing list