pylon Viewer Doesn't Start On Linux#
Issue#
After you have downloaded the pylon tar.gz or .deb package and installed it on a Linux system (e.g. Ubuntu 22.04), nothing happens when you click on the pylon Viewer icon.
If you start the application "pylonviewer" from /opt/pylon/bin, the following error message is displayed:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" 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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl,
wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted (core dumped)
Solution#
This is because dependencies are missing or not well configured. Quoting from the pylon release notes:
Quote
pylon Viewer: To use the pylon Viewer, you must install the latest Mesa OpenGL driver for your system. On Debian-based platforms, you also need to install the following packages: libgl1-mesa-dri, libgl1-mesa-glx, libxcb-xinerama0, and libxcb-xinput0.
To solve this, open a terminal and type the following:
sudo apt update
sudo apt upgrade
sudo apt install libgl1-mesa-dri libgl1-mesa-glx libxcb-xinerama0 libxcb-xinput0
If the pylon Viewer still can't be started, install the latest Mesa OpenGL driver, as mentioned in the release notes.