can't run example of qtwayland

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

can't run example of qtwayland

2,021 次查看
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!

标签 (1)
0 项奖励
回复
1 回复

1,240 次查看
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 项奖励
回复