pylon Viewer 無法在 Linux 上啟動#
問題#
在下載 pylon tar.gz 或 .deb 套件並將其安裝到 Linux 系統(例如 Ubuntu 22.04)後,點擊 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 驅動程式。