Selastin George
Selastin George

Reputation: 95

How to launch a qt wayland compositor from terminal without a platform like weston launches

i have been using the Qt Wayland plugin for developing a display manager for linux. i tried running the display manager that i built, on a terminal session but it shows like

qt.qpa.plugin: Could not find the Qt platform plugin "wyland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

i know that it is because i didn't run it on a wayland compositor. but i try building the wayland compositor examples that you have given and it works fine when running in my desktop but when i run it from the terminal i receive the same problem. so how can i start qtwayland compositor from terminal without using --platform xxxx

i like to know how weaston launches from terminal by itself without any platform support and will i be able to launch the qt wayland compositor like that ?

Upvotes: 1

Views: 5710

Answers (1)

bobbaluba
bobbaluba

Reputation: 3894

QtWayland compositors are cross-platform applications and can run on multiple backends. When you start it with --platform wayland, your are basically trying to start the compositor within another Wayland compositor.

Normally compositors are run from a tty using the eglfs backend. i.e. start your compositor with:

./compositor --platform eglfs

If you get errors launching the compositor app, then special configuration may be needed for your device. The Qt embedded linux documentation may give some pointers. Even if you're on desktop, this is the place to look. If you're on open-source mesa, you probably want to look at the section for eglfs_kms.

Once you've got the compostor running, clients can be started with:

./app --platform wayland

Upvotes: 2

Related Questions