Jumpnow Technologies

home code consulting contact

Enabling Qt5 WebEngine in Yocto Builds

09 Jan 2017

The Qt5 WebEngine components add significantly to the size of the images built by Yocto, so I don’t include them normally.

You can enable them as follows.

For runtime and native development use on the target, add the following qtwebengine packages to your image recipe

QT5_WEBENGINE_PKGS = " \
    qtwebengine-dev \
    qtwebengine-mkspecs \
    qtwebengine \
"

IMAGE_INSTALL += " \
    ${QT5_WEBENGINE_PKGS} \
"

For cross-compiling using the meta-qt5-toolchain SDK add a packagegroup-qt5-toolchain-target.bbappend file like this to your meta-layer

scott@fractal:~/rpi$ ls meta-rpi/recipes-qt/packagegroups/
packagegroup-qt5-toolchain-target.bbappend

scott@fractal:~/rpi/meta-rpi/recipes-qt/packagegroups$ cat packagegroup-qt5-toolchain-target.bbappend

USE_WEBENGINE = " \
    qtwebengine-dev \
    qtwebengine-mkspecs \
    qtwebengine \
"

RDEPENDS_${PN} += " \
    ${USE_WEBENGINE} \
"