Can't load library libswt

3 posts / 0 new
Last post
Offline
Last seen: 2 years 1 month ago
Joined: 09/08/2020
Posts: 26
Can't load library libswt

I just completed a RTI Connext DDS 6.1.0 install using: rti_connext_dds-6.1.0-pro-host-x64Linux.run

The install completed without issues.  Now I'm trying to open RTI Launcher, but it fails to open.  RTI logs show an error related to SWT libs.  How might I resolve this issue?

[usvboat@localhost bin]$ ./rtilauncher
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
    no swt-pi4-gtk-4932r18 in java.library.path: [/home/usvboat/rti_connext_dds-6.1.0/resource/app/jre/x64Linux/lib/server, /home/usvboat/rti_connext_dds-6.1.0/resource/app/jre/x64Linux/lib, /home/usvboat/rti_connext_dds-6.1.0/resource/app/jre/x64Linux/../lib, /home/usvboat/rti_connext_dds-6.1.0/bin/../resource/app/lib/x64Linux2.6gcc4.4.5/, /home/usvboat/rti_connext_dds-6.1.0/bin/../resource/app/lib/x64Linux2.6gcc4.4.5, /home/usvboat/rti_connext_dds-6.1.0/bin/../resource/app/jre/x64Linux/lib/server, ., ., /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
    no swt-pi4-gtk in java.library.path: [/home/usvboat/rti_connext_dds-6.1.0/resource/app/jre/x64Linux/lib/server, /home/usvboat/rti_connext_dds-6.1.0/resource/app/jre/x64Linux/lib, /home/usvboat/rti_connext_dds-6.1.0/resource/app/jre/x64Linux/../lib, /home/usvboat/rti_connext_dds-6.1.0/bin/../resource/app/lib/x64Linux2.6gcc4.4.5/, /home/usvboat/rti_connext_dds-6.1.0/bin/../resource/app/lib/x64Linux2.6gcc4.4.5, /home/usvboat/rti_connext_dds-6.1.0/bin/../resource/app/jre/x64Linux/lib/server, ., ., /usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
    Can't load library: /home/usvboat/.swt/lib/linux/x86_64/libswt-pi4-gtk-4932r18.so
    Can't load library: /home/usvboat/.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 com.rti.tools.launcher.main.LauncherApp.<clinit>(LauncherApp.java:204)

The SWT libs on my system are:

-rwxr-xr-x. 1 usvboat usvboat 544864 Feb 28 06:20 /home/usvboat/.swt/lib/linux/x86_64/libswt-gtk-4932r18.so
-rwxr-xr-x. 1 usvboat usvboat 445576 Feb 28 06:20 /home/usvboat/.swt/lib/linux/x86_64/libswt-pi3-gtk-4932r18.so
-rwxr-xr-x. 1 usvboat usvboat 441472 Feb 28 07:53 /home/usvboat/.swt/lib/linux/x86_64/libswt-pi3-gtk-4934r6.so

System info:

[usvboat@localhost bin]$ uname -a
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

r
Offline
Last seen: 3 months 5 days ago
Joined: 06/17/2019
Posts: 47

Hi Spencer, what OS are you using on this system? For example if you're using RHEL6.x or centos6.x those are not supported platforms in Connext 6.1.0 for RTI launcher. 
Details on the supported platforms: https://community.rti.com/static/documentation/connext-dds/6.1.0/doc/manuals/connext_dds_professional/tools/launcher/release_notes/index.htm#launcher/release_notes/SupportedPlatforms.htm#1._Supported_Platforms%3FTocPath%3D_____3

If this is the issue you may be able to downgrade to 6.0.1 if your OS is supported on that Connext version. Or can you try to run the 6.1.0 applications directly instead of through the launcher, or is using the launcher a requirement for you?

Some other general troubleshooting related to installation:

Did you use root or sudo to install Connext? Can you try installing as a normal user?
Did you have a previous installation of Connext that already created the rti_workspace/ directory? Can you remove that directory prior to installing Connext 6.1.0?

 

 

 

 

Offline
Last seen: 2 years 1 month ago
Joined: 09/08/2020
Posts: 26

RHEL 6.5 (2.6.32-431.el6.x86_64)

Installed as normal user.

No previous RTI installs.  Only "6.1.0" in my rti_workspace folder.

It looks like I can run rtiddspy and rtimonitor despite not being able to run launcher.  Might be a sufficient workaround for now.

Later if needed I'll try uninstalling Connext 6.1.0 and retry with 6.0.1 as suggested.

---

[root@localhost ]# uname -r
2.6.32-431.el6.x86_64
[root@localhost ]# cat /etc/redhat-release
CentOS release 6.5 (Final)