AnsweredAssumed Answered

Failed to run Qt5 application under xwayland using xcb backend

Question asked by Karim Atiki on Oct 17, 2018
Latest reply on Oct 31, 2018 by Karim Atiki

Hi all,

 

I'm currently evaluation the imx8mquad, linux branch rocko-4.9.123-2.3.0_8mm_ga.

Building a fsl-imx-xwayland DISTRO with  Qt 5.10 installed.

weston is also installed as the reference wayland compositor.

 

The imx8 is connected to a 1920x1080 touchscreen monitor on hdmi.

 

I can execute the Qt samples using -platform wayland-egl

But I would like to try to run my own compositor. For testing, I tried to run Qt qwindow-compositor sample.

It works, but actually I would like to test it without Weston.

 

So I stopped Weston and launched the following command line as suggested by qt:

qwindow-compositor -platform xcb

But it failed:

qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.

 

Well, I'm fairly new into NXP ecosystem. 

I realized that directfb is not supported yet by imx8 (will it be in the future???).

But normally, xwayland should provide a backward compatibility with X11 applications ?

So I should be able to run the qwindow-compositor sample with xcb plugin ?

 

Did I make a mistake ?

 

Thanks for your feedback, it's a very blocking issue for me.

 

K.

Outcomes