|Cairo problem in Eclipse 3.6.2 under Linux [message #685973]
||Tue, 21 June 2011 04:16
| Armine Maroukhian
Registered: June 2011
Hi, I couldn't find any appropriate topic for the issue being described bellow, so I added a new topic for this.|
I was using eclipse 3.2.2 and JDK 1.5 for my SWT project which contained advanced graphics and was working under Linux. Cairo library is responsible for advanced graphics and X Windows under Linux and libcairo-swt.so library is required to have so SWT project could work with advanced graphics. The eclipse 3.2.2 had been extracted from eclipse-SDK-3.2.2-linux-gtk.tar.gz file and my project had been working fine regarding to advanced graphics part and cairo.
Recently, I have updated Eclipse to version 3.6.2 which has been extracted from eclipse-modeling-helios-SR2-incubation-linux-gtk.tar.gz file and updated JDK to 1.6.0_18. After doing so, the project couldn't been loaded and an exception is thrown:
org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Unable to load graphics library [Cairo is required] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-cairo-gtk-3659 in java.library.path
no swt-cairo-gtk in java.library.path
/tmp/swtlib-32/libswt-cairo-gtk-3659.so: libcairo.so.2: cannot open shared object file: No such file or directory
Can't load library: /tmp/swtlib-32/libswt-cairo-gtk.so))
The jar version for supporting swt in extracted Eclipse 3.6.2 is org.eclipse.swt_3.6.2.v3659c.jar for Widows and org.eclipse.swt.gtk.linux.x86_3.6.2.v3659b.jar for Linux. libcairo-swt.so library also exists in extracted eclipse v.3.6.2. So it seems that everything should be ok, and the project should be run.
Any help with this is highly appreciated. Maybe some environment variable should be set, or something like that? Or maybe the dependency of libcairo-swt.so should be explicitly set up somewhere?
Thanks a lot,
Powered by FUDForum
. Page generated in 0.04843 seconds