跳转到内容
STAGING SERVER
DEVELOPMENT SERVER

pylon Viewer 无法在 Linux 上启动#

问题#

在 Linux 系统(例如 Ubuntu 22.04)上下载并安装 pylon tar.gz 或 .deb 软件包后,点击 pylon Viewer 图标没有任何反应。

如果从 /opt/pylon/bin 启动应用程序“pylonviewer”,则会显示以下错误消息:

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)

解决方案#

这是因为缺少依赖项或依赖项配置不当。引用 pylon 发行说明中的内容:

引用

pylon Viewer:要使用 pylon Viewer,您必须为您的系统安装最新的 Mesa OpenGL 驱动程序。在基于 Debian 的平台上,您还需要安装以下软件包:libgl1-mesa-dri、libgl1-mesa-glx、libxcb-xinerama0 和 libxcb-xinput0。

要解决此问题,请打开终端并输入以下内容:

sudo apt update

sudo apt upgrade

sudo apt install libgl1-mesa-dri libgl1-mesa-glx libxcb-xinerama0 libxcb-xinput0

如果 pylon Viewer 仍然无法启动,请按照发行说明中的提及安装最新的 Mesa OpenGL 驱动程序。

返回知识库文章