5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WSL2のUbuntuでVitisを起動する

Posted at
  • Ubuntu20.04 on WSL2
  • vitis 2020.2
  • vitis_hls 2020.2

WSL2のUbuntu20.04にインストールしたvitisが起動してくれませんでした。ちゃんとinstallLibs.shは実行しているので必要なライブラリはインストールされているはずなのですが。。

起動しようとして失敗したときのメッセージにlogを残したとあったので覗いてみました。

$ vitis
****** Xilinx Vitis Development Environment
****** Vitis v2020.2 (64-bit)
  **** SW Build 3064172 on 2020-11-18-06:24:19
    ** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.

Launching Vitis with command /tools/Xilinx/Vitis/2020.2/eclipse/lnx64.o/eclipse -vmargs -Xms64m -Xmx1024m -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false -Dosgi.configuration.area=@user.home/.Xilinx/Vitis/2020.2 --add-modules=ALL-SYSTEM --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.desktop/sun.swing=ALL-UNNAMED --add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.desktop/javax.swing.tree=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED --add-opens=java.desktop/com.sun.awt=ALL-UNNAMED --add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED &
Eclipse:
An error has occurred. See the log file
/home/yoshi/.Xilinx/Vitis/2020.2/1612736917742.log.

ログの中身は下記のようになっています。

$ cat
!ENTRY org.eclipse.osgi 4 0 2021-02-08 07:29:24.614
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        no swt-pi4-gtk-4932r18 in java.library.path: [/tools/Xilinx/Vitis/2020.2/tps/lnx64/javafx-sdk-11.0.2/lib, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o/Ubuntu, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o, /tools/Xilinx/Vitis/2020.2/tps/lnx64/jre11.0.2/lib/, /tools/Xilinx/Vitis/2020.2/tps/lnx64/jre11.0.2/lib//server, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o/Ubuntu, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o, /tools/Xilinx/Vitis/2020.2/tps/lnx64/python-3.8.3/lib, /tools/Xilinx/Vivado/2020.2/bin/../lnx64/tools/dot/lib, /tools/Xilinx/Vitis/2020.2/bin/../lnx64/tools/dot/lib, /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
        no swt-pi4-gtk in java.library.path: [/tools/Xilinx/Vitis/2020.2/tps/lnx64/javafx-sdk-11.0.2/lib, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o/Ubuntu, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o, /tools/Xilinx/Vitis/2020.2/tps/lnx64/jre11.0.2/lib/, /tools/Xilinx/Vitis/2020.2/tps/lnx64/jre11.0.2/lib//server, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o/Ubuntu, /tools/Xilinx/Vitis/2020.2/lib/lnx64.o, /tools/Xilinx/Vitis/2020.2/tps/lnx64/python-3.8.3/lib, /tools/Xilinx/Vivado/2020.2/bin/../lnx64/tools/dot/lib, /tools/Xilinx/Vitis/2020.2/bin/../lnx64/tools/dot/lib, /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
        Can't load library: /home/yoshi/.swt/lib/linux/x86_64/libswt-pi4-gtk-4932r18.so
        Can't load library: /home/yoshi/.swt/lib/linux/x86_64/libswt-pi4-gtk.so

        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:342)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:256)
        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:90)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:209)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:155)
        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:164)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:760)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:166)
        at com.xilinx.ide.application.ui.Application.createDisplay(Application.java:109)
        at com.xilinx.ide.application.ui.Application.start(Application.java:63)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1420)

swtライブラリ関連でエラーが起こっているようで怪しいのはCan't load library: /home/yoshi/.swt/lib/linux/x86_64/libswt-pi4-gtk-4932r18.soあたり。swt関連のライブラリをインストールしてきたら、vitis、vitis_hls共に起動するようになりました。

$ sudo apt install libswt-gtk-4-jni
5
1
1

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
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?