0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Gowin EDAをLinux環境で起動できない問題の対処法(Qt依存関係)

Posted at

要約

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 $?

これで起動するようになると思います。

まだ解決していないこと

すでに存在するプロジェクトはこれで開けるようになりましたが、プロジェクトの新規作成はエラーで落ちます。まじで何なんだろう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?