I am encountering while attempting to deploy a Qt application on an i.MX8 board running Yocto Kirkstone with Wayland and Weston.
Here are some key details regarding the setup and the problem:
The Problem:
I am encountering an error when attempting to run a binary compiled with Qt Creator. The error messages are as follows:
For the Custom Application:
QML debugging is enabled. Only use this in a safe environment. Failed to create wl_display (No such file or directory) qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: minimal, offscreen, vnc, wayland-egl, wayland. Aborted
For the Basic Application (weston-calibrator):
failed to connect to Wayland display: No such file or directory failed to create display: No such file or directory
I have already attempted solutions such as exporting DISPLAY:=0, but they did not resolve the issue. Interestingly, during the startup of the board, the Weston desktop environment is displayed correctly.
I would greatly appreciate your guidance and expertise in resolving this issue. If you need any additional information or logs, please let me know. Your support in resolving this matter would be invaluable.
Thank you in advance for your assistance.
Best regards,
DT
Hello,
The recipes-qt5 is under sources/meta-qt5. If you have the recipes of your old version QT5, you may try to replace the recipes-qt5 there. But I think this is very hard to modify and you may need to spend a lot of time to fix the errors of compiling. Do you mean your old QT application cannot run on the new version of QT? I think you may modify your code to make your application can run on the new version of QT is more easier.
Please refer to the Section "Graphics" of the linux user guide:
https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf
Regards