要約
Gowin EDA(Education版)をLinux環境でこのようなエラーが出て起動できないとき
~/Downloads/Gowin_V1.9.11.01_Education_Linux$ ./IDE/bin/gw_ide
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)
Gowin IDE内蔵のライブラリを使うように指定して起動することができる可能性がある。
$ export LD_LIBRARY_PATH="YOUR_IDE_PATH/Gowin_V1.9.11.01_Education_Linux/IDE/lib":$LD_LIBRARY_PATH
$ ./IDE/bin/gw_ide
私の環境
原因
- Gowin IDEが必要とする内蔵ライブラリと、Linux (Ubuntu 24.04) に入っているシステムライブラリのバージョンが異なっていた。
・IDE起動時に、これらのバージョン違いのライブラリが混ざって読み込まれようとしたため、互換性がなくエラーが発生していた。
対処法
Gowin IDE内蔵のライブラリを使うように指定する。
$ export LD_LIBRARY_PATH="YOUR_IDE_PATH/Gowin_V1.9.11.01_Education_Linux/IDE/lib":$LD_LIBRARY_PATH
毎回exportするのはめんどい
$ cd IDE
$ touch start_gowin.sh
start_gowin.sh
#!/bin/bash
SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
export LD_LIBRARY_PATH="${SCRIPT_DIR}/lib":$LD_LIBRARY_PATH
export QT_PLUGIN_PATH="${SCRIPT_DIR}/plugins/qt"
"${SCRIPT_DIR}/bin/gw_ide" "$@"
exit $?
これで起動するようになると思います。
まだ解決していないこと
すでに存在するプロジェクトはこれで開けるようになりましたが、プロジェクトの新規作成はエラーで落ちます。まじで何なんだろう。