Fail to startup Qt project in imx6 of wayland

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

Fail to startup Qt project in imx6 of wayland

5,060 Views
Mihan
Contributor IV

Hi 

 

I try to startup a qt project on imx6 (Wayland).

But the wayland seems return error:

Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, vnc, wayland-egl, wayland.

 

I'm a novice at Wayland because X11 could not use two monitors with Vivante.

What should I do?

 

Best regards

Mihan

 

Labels (1)
Tags (1)
0 Kudos
4 Replies

4,368 Views
SuhasNJ
Contributor I

Hi Mihan,

I am also stuck at the same point. Did you get this issue resolved?? If yes then kindly guide me as to what changes you made and environment variables you set. Currently I am unable to find any solutions.

Thanks

Suhas

0 Kudos

5,056 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Mihan,

 

On Wayland, Failed to created display means that a Wayland client couldn't connect to the compositor/display server.

So you should verify that your compositor is running. Which one are you using?

The environment variable, XDG_RUNTIME_DIR also needs to be set both when the compositor is started and when your client is started.

If clients start when you run them on the device, it might be that the default platform for your qt installation is eglfs, not Wayland. In order to run the applications on Wayland, start it like this:

./myapp -platform wayland

or set

export QT_QPA_PLATFORM=wayland

Note that if you are running a Qt-based compositor, then the compositor should probably still be run with the eglfs backend. BTW the yocto in imx6 does not work with dual display.

 

Regards

 

0 Kudos

5,050 Views
Mihan
Contributor IV

Thanks @Bio_TICFSL 

Sorry for late

I trid the command as you said but it doesn't work. 

 

So you should verify that your compositor is running. Which one are you using?

How to verify it?

 

The environment variable, XDG_RUNTIME_DIR also needs to be set both when the compositor is started and when your client is started.

What value should I set?

 

Please tell me in details, such as what command should I use.

 

OTOH, does it mean IMX6 could not use two displays (HDMI & LVDS at the same time) in all platforms(X11 , Wayland and FB )? 

 

Thanks again

Mihan

0 Kudos

3,835 Views
Pan_Happy
Contributor I

How did you solve it, can you share?

0 Kudos