Stand alone Qt application with multiple windows not rendering on Wayland platform
I have cross compiled Qt application with multiple windows and running the same on IMX8(target board) using platform wayland-egl. The sub-window is used to render the 3D. I am not able to see the 3D on the sub-window. Instead I am seeing a blank black screen.
The application is configured for Desktop and is working perfectly fine. I also ran the application using weston compositor on platform wayland-egl which also works fine in Desktop.
The only difference we are observing between IMX8 and Desktop is weston compositor is trying to use drm_backend.so (in IMX8) and x11_backend.so (in Desktop).
In Desktop, if we launch weston with backend = drm_backend.so, we are observing error as below:
Date: 2021-08-13 IST [18:18:25.569] weston 8.0.0 https://wayland.freedesktop.org Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/ Build: 8.0.0 [18:18:25.569] Command line: weston --backend=drm-backend.so [18:18:25.569] OS: Linux, 5.4.0-70-generic, #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021, x86_64 [18:18:25.569] Starting with no config file. [18:18:25.569] Output repaint window is 7 ms maximum. [18:18:25.593] Loading module '/usr/lib/x86_64-linux-gnu/libweston-8/drm-backend.so' [18:18:25.627] initializing drm backend [18:18:25.627] logind: not running in a systemd session [18:18:25.627] logind: cannot setup systemd-logind helper (-61), using legacy fallback [18:18:25.627] fatal: drm backend should be run using weston-launch binary, or your system should provide the logind D-Bus API. [18:18:25.627] fatal: failed to create compositor backend Internal warning: debug scope 'drm-backend' has not been destroyed.
- Please help in fixing the above issue as I am new to this domain.
- Why does multiple window Qt application not rendering as expected when using wayland platform?
Please let me know if any input is required. Thanks in advance!