can't run example of qtwayland

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can't run example of qtwayland

1,486 Views
fulinux
Contributor IV

Hi Community,

i have make a wayland rootfs image in yocto. and weston runs well. i want to run qwindow-compositor or qml-compositor, but it has some problem, what should i do?

$killall weston

$

$./qwindow-compositor -platform wayland-egl
Failed to create display (Connection refused)

thank you!

Labels (1)
0 Kudos
1 Reply

705 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

Are you using the latest L4.1.15_2.0.0  bsp image? I could not reproduce this issue on this version.

Now there are two ways in which you can do this,

  1. Run a wayland compositor (weston) before running your Qt Application.
  2. Compile qml-compositor and run it before running your Qt Application.

In both cases you have to have a compositor running if you want your application to run as a wayland client.

If you just want to run your application in fullscreen and nothing else, you can also use eglfs platform plugin and not use wayland altogether.

Hope this helps

0 Kudos