Issue building SDK with qtwebengine for iMX8m mini Verdin

Hello,

I had built the Yocto image with Toradex version 5.0 (Yocto 3.1 Dunfell) - tdx-reference-multimedia-image.
The image and populate_sdk was successfull.

However, recently I tried adding qtwebengine to the image and generate SDK.
Changes done on top of tdx-reference-multimedia-image (Toradex 5.0, Yocto 3.1 Dunfell)

  1. Added following in meta-qt5/recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb
    USE_WEBENGINE = "
    qtwebkit
    qtwebkit-dev
    qtwebkit-mkspecs
    qtwebengine
    qtwebengine-dev
    qtwebengine-qmlplugins
    qtwebengine-mkspecs
    "
    RDEPENDS_${PN} += ${USE_WEBENGINE} // Added to RDEPENDS_${PN}

  2. Added meta-python2 layer to build/conf/bblayers.conf
    ${TOPDIR}/…/layers/meta-python2 \

Now building the image is successful -
bitbake -k tdx-reference-multimedia-image // SUCCESS

However, generating the SDK fails -
bitbake -c populate_sdk tdx-reference-multimedia-image // FAIL (Was SUCCESS without qtwebengine)

Summary: 1 task failed:
  /home/dev/oe-core-5.0/build/../layers/meta-toradex-demos/recipes-images/images/tdx-reference-multimedia-image.bb:do_populate_sdk
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Find attached following Log file

We would like to know why building SDK with qtwebengine fails?
How can we generate SDK for tdx-reference-multimedia-image (Toradex 5.0, Yocto 3.1 Dunfell) with qtwebengine, qtwebview?

Our aim is to run browser on the imx8m mini, preferably qtwebengine/qtwebview.

Hi @Aamer ,

Welcome to Toradex Community!

What is your Host PC configuration ?
Did you try the bitbake -D -D -D option for debug ?

It can be similar issue as below,
https://www.yoctoproject.org/pipermail/yocto/2018-May/041105.html
https://community.nxp.com/t5/i-MX-Processors/QT5-qtwebengine-SDK-generation-fails/m-p/764331

I have gone through the above links already. Also Webkit is deprecated now and the links talk of Qt 5.8. While we are using Qt 5.14.2

My host machine is -
Linux scw-eager-cori 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I will try the bitbake -D option

Okay. Please try and let me know.

Meanwhile, I will also try to reproduce the issue at my end.

Regards,
Deven

Hi

Please have a look here. I guess you have the same issue, i.e. you don’t have this commit in your OE meta data.

Max

Thanks for the links.

I was able to build the sdk after starting from scratch.

Deleting all build output and building from scratch in one bitbake invocation as you did makes the problem not appear in the first place, doing the build in several bitbake invocations will likely fail again.
This seems to be true

Perfect that issue is solved.
Thanks for the feedback.