How to run Qt Application on weston(Wayland-compositor)

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

How to run Qt Application on weston(Wayland-compositor)

6,332 次查看
vardhmanmodi
Contributor II

Hello,

I want to run Qt Application on Yocto with wayland backend.

I can run and see the weston(Wayland-compositor) GUI using "weston --tty=1 --backend=fbdev-backend.so --device=/dev/fb0 --no-config".

But when I run the Qt Application, it cannot display GUI.

So what I am missing to run Qt Application on weston(Waland-compositor)?

Thanks,

Vardhman.

0 项奖励
回复
1 回复

4,178 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Vardhman Modi,

Are you still having these troubles? I've not found much information regarding Qt and Wayland but I found a workaround on a mailing list from the Yocto project that perhaps may help, kudos to Eien for this workaround:

http://code.woboq.org/qt5/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp...

Comment in QWaylandGLContext::updateGLFormat() the two following functions calls.

wl_egl_window_destroy(eglWindow);

wl_surface_destroy(wlSurface);

Qt applications run now, with a small memory leak.”

I hope it helps!

0 项奖励
回复