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.

...

Prepare the SDK or toolchain

...

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.

...

Download,

...

configure and build the Qt 5.15.2 source code

...

2.1) Get the Qt source code

# 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.

...

Integrate Qt 5.15.2

...

to the target 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.

...