Linuxでpylon Viewerが起動しない#
問題#
pylon の tar.gz または .deb パッケージをダウンロードして Linux システム(Ubuntu 22.04 など)にインストールした後、pylon Viewer アイコンをクリックしても何も起きません。
アプリケーション「pylonviewer」を /opt/pylon/bin から起動すると、次のエラーメッセージが表示されます。
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 ドライバーをインストールしてください。