Qt Creator in Windows and Yocto on WSL2 Ubuntu 18.04: how to get an SDK working in Qt
-
Hi all,
Apologies if this is a really basic question. I have a Variscite DART-IMX8M-MINI that I am trying to use with Yocto and Qt. I had it all working via a native Ubuntu system but for a variety of reasons I need to try and get this all working on a Microsoft Surface Laptop 4 (which I can install Ubuntu on).
I have installed WLS2 to run Ubuntu 18.04 and have built the image and the skd with no issue.
Where I am stuck is how I use this SDK on Qt Creator that is operating in a Windows environment. I found the linked tutorial (https://doc.qt.io/QtForDeviceCreation-5.15/qtee-custom-embedded-linux-image.html) but when I use this I get a bunch of errors as per below.
Any help would be greatly appreciated.
oliver@Oliver-Surface-4:~/var-b2qt/build-imx8mm-var-dart$ SDKMACHINE=i686-mingw32 bitbake meta-toolchain-b2qt-embedded-qt5-sdk
Loading cache: 100% |###############################################################################################################################################################################################################################################| Time: 0:00:00
Loaded 3411 entries from dependency cache.
ERROR: No recipes available for:
/home/oliver/var-b2qt/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-browser/chromium/chromium-ozone-wayland_%.bbappend
/home/oliver/var-b2qt/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/fsl-rc-local/fsl-rc-local.bbappend
/home/oliver/var-b2qt/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-machine-test.bbappend
/home/oliver/var-b2qt/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-multimedia.bbappend
/home/oliver/var-b2qt/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/packagegroup/packagegroup-fsl-gstreamer1.0.bbappend
/home/oliver/var-b2qt/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/packagegroup/packagegroup-fsl-tools-gpu.bbappend
/home/oliver/var-b2qt/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/packagegroup/packagegroup-fsl-tools-testapps.bbappendSummary: There was 1 ERROR message shown, returning a non-zero exit code.
oliver@Oliver-Surface-4:~/var-b2qt/build-imx8mm-var-dart$ -
So I've worked out how to do this. Actually quite simple once you know how. Just needed to add the following in the local.conf file:
SDKMACHINE = "x86_64-mingw32"
SDK_ARCHIVE_TYPE = "zip"Then it was just a simple matter of copying the zip file from the the Unbuntu system by typing \wls$ into windows explorer to find, copy and then extracting the zip file into a windows folder.
My only challenges now are that the Qt version is wrong and the CMake version is wrong.
Can anyone tell me how to ensure that the SDK has the right version of Qt? I am using 5.12.11 at the moment and my SDK is build for 5.12.10.
It would also be appreciated if someone could advise how to ensure the SKD is build with the most up to date CMake version.