Wayland compositor example doesn't work
-
When attempting to build and run one of the Qt Wayland compositor examples called the overview-compositor, I see some warnings in the Application Output tab as follows:
Could not create scene graph context for backend 'opengl' - check that plugins are installed correctly in /home/simon/Qt/6.1.0/gcc_64/plugins qt.waylandcompositor.hardwareintegration: Failed to initialize EGL display. Could not get EglDisplay for window.
A main window is then displayed with a Toggle overview button. This window is blank, and the toggle view button does nothing.
Should the main window show something, or do I need to also start some client Qt apps?
How can I get rid of the warning messages? I assume they are significant. -
Hi,
You should add more information about your environment and how you are launching the example.
-
The example does seem to work, even with the warning messages. I just needed to run a Qt application by calling from the command line with -platform wayland.
I assumed that because of the warning messages it would not work.
My environment is as follows:
OS: Ubuntu 20.10 running in VMWare Player virtual machine on a Windows 10 laptop.
Running from QtCreator 6.1.