Qt 5.15.2 can run on various backends. The EGLFS and Wayland backends are widely used. Here, we will talk about how to build and integrate Qt 5.15.2 with EGLFS and Wayland backends support based on VLP 3.0.6.
...
...
The default Yocto SDK of VLP 3.0.6 can only support the Qt with Wayland backend building. So the patch for the Qt 5.6.3(Qt version of VLP 3.0.6) recipe must be applied.
1.1)Modify meta-qt5/recipes-qt/qt5/qtbase_git.bb:
...
Note: The Qt 5.6.3 with EGLFS backend support is ready. If you only need Qt 5.6.3, you can skip the following steps.
...
...
...
# cd to any directory under ubuntu
cd <work-dir>
# download Qt 5.15.2 source code
wget https://download.qt.io/archive/qt/5.15/5.15.2/single/qt-everywhere-src-5.15.2.tar.xz
# decompress
tar -xvf qt-everywhere-src-5.15.2.tar.xz
...
If everything is OK, you will get the built out binary Qt 5.15.2 in gzip file: qt-5.15.2-eglfs-wayland-build.tar.gz. The build process may take several hours.
...
...
...
It will coexist with Qt 5.6.3.
3.1) Install
Decompress qt-5.15.2-eglfs-wayland-build.tar.gzto some directory of the MPU target filesystem(Not ubuntu PC). Here we use /usr/share/qt-5.15.2.
...