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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

2,869 Views
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 Kudos
1 Reply

715 Views
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 Kudos