跳至內容
測試伺服器
開發伺服器

pylon Viewer 在 Linux 上無法啟動#

問題#

在您下載 pylontar.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 驅動程式。

返回知識文章