Build Kirkstone Yocto with Qt6

Hi, Iโ€™m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

To address the issue with your Qt6 application failing due to a plugin using an incompatible Qt5 library, please consider the following steps:

  1. Verify Build Configuration: Ensure your Yocto build is configured to use only Qt6. Double-check your bblayers.conf and local.conf files to confirm that no Qt5 layers or recipes are included. Make sure the meta-qt5 layer is absent and all settings are aligned with Qt6.

  2. Remove Qt5 Libraries: Inspect the /usr/lib/ directory on your device to identify and remove any Qt5 libraries or plugins, such as libQt5waylandclient and libQt5waylandcompositor, as they may conflict with Qt6 applications.

  3. Check Plugin Compatibility: The error suggests that libqwayland-egl.so is built against Qt5.15.0. Verify the source of this plugin to ensure it is compatible with Qt6. If itโ€™s a third-party plugin, consider rebuilding it against Qt6 or finding an updated version.

  4. Set Qt Version in Yocto: In the Yocto build system, the Qt version is typically set using the PREFERRED_VERSION variable in your configuration files. Ensure this variable is set to the desired Qt6 version for all relevant packages.

By following these steps, you should be able to resolve the compatibility issues and successfully run your Qt6 applications on the Toradex Verdin iMX8M Plus board.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Verdin IMX8M Plus Qt Creator.