-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.11.1, 5.11.2
-
Boot2Qt / Embedded Linuz
Running and debugging applications does not work when applications are running as Wayland clients even when the Wayland compositor (Weston) is running on target device.
Steps to reproduce the issue.
- Kill the currently run application on target device (appcontroller --stop)
- Set XDG_RUNTIME_DIR env variable (export XDG_RUNTIME_DIR=/var/run)
- Run Weston wayland compositor (weston --tty=1 &)
- Run the application from Qt Creator with parameter to use wayland platform plugin (-platform wayland-egl)
Expected result:
The Wayland application would run on the target device.
Actual result:
The Wayland application does not run on the target device. It fails with an error message:
"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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, webgl."
Running a Wayland application on the target device directly from the command prompt works. After the steps 1-3 you can run:
export QT_QPA_PLATFORM=wayland-egl
appcontroller --launch qtlauncher