atom feed6 messages in org.freebsd.freebsd-eclipseEclipse 3.1: no swt-pi-gtk-3138
FromSent OnAttachments
Mario Sergio Fujikawa FerreiraAug 29, 2005 6:07 pm 
Stephane E. PotvinAug 29, 2005 8:09 pm 
Panagiotis AstithasAug 29, 2005 9:48 pm 
Stephane E. PotvinAug 30, 2005 12:15 pm 
Mario Sergio Fujikawa FerreiraAug 30, 2005 4:02 pm 
Panagiotis AstithasAug 31, 2005 9:17 pm 
Subject:Eclipse 3.1: no swt-pi-gtk-3138
From:Panagiotis Astithas (pa@ebs.gr)
Date:Aug 29, 2005 9:48:44 pm
List:org.freebsd.freebsd-eclipse

Stephane E. Potvin wrote:

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Mario Sergio Fujikawa Ferreira wrote:

Hi,

I maintain 2 ports (net/mldonkey-sancho and net/azureus) which depend on eclipse and have been broken ever since its update.

I've just updated azureus yesterday and got it building just fine but I get the following error message.

$ ./azureus

Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3138 in
java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123) at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.<clinit>(Display.java:122) at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(Unknown Source) at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(Unknown
Source) at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Unknown Source) at org.gudy.azureus2.ui.swt.Main.<init>(Unknown Source) at org.gudy.azureus2.ui.swt.Main.main(Unknown Source)

which should be fixed by using a proper -Djava.library.path=somewhere statemente.

However, I am not able find the proper location to point to. Taking a look at

https://bugs.eclipse.org/bugs/show_bug.cgi?id=89315

I find out that there are SWT PI patches there which are not included with our java/eclipse port.

No way, I sent those attachments from my /usr/ports/java/eclipse/files directory :-)

Are there plans to integrate those patches now that the ports freeze is over?

Regards,

You can find the libraries in the org.eclipse.swt.gtk.freebsd.x86_3.1.0.jar file in eclipse's plugin directory. You'll have to extract them somewhere and add this path to your -Djava.library.path

I have no idea why they are not extracted by default anymore.

Regards,

Exactly, eclipse now uses a simplified plugin distribution, where everything is included in a single jar. I'll take a look into what needs to be done for azureus, etc. Another option is to finish my swt31 port and make swt-based apps depend on it. What would you prefer?

Cheers,

Panagiotis