Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Firstly, the SDK or toolchain must be prepared. 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.

Secondly, we can download, configure and build the Qt 5.15.2 source code.

2.1) Get the Qt source code

...

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.

Thirdly, now we can integrate this Qt 5.15.2 software to the Yocto filesystem. 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.

...