3.2m4 standalone problem [message #466002] |
Wed, 28 December 2005 10:34  |
Eclipse User |
|
|
|
Hi,
I am building a standalone application using SWT and am trying eclipse
3.2m4 which works fine. However when I try the standalone I get the
following error.
Unable to load graphics library [Cairo is required]
(java.lang.UnsatisfiedLinkError:
/opt/java-libs/lib/3.2m4/libswt-cairo-gtk-3218.so: /lib/libc.so.6: version
`GLIBC_2.4' not found (required by /usr/lib/libcairo.so.2))
Now assuming 3.2m4 is using the same libraries how do I access them for my
application. I am using the -Djava.library.path=/opt/java-libs/lib/3.2m4
switch which worked before. It looks like libc is for the wrong version of
GLibC. Any assistance would be appreciated, I could revert to the earlier
version if necessary but would prefer not.
Thanks
Simon Meaden
|
|
|
|
|
Re: 3.2m4 standalone problem [message #466292 is a reply to message #466183] |
Thu, 05 January 2006 16:16  |
Eclipse User |
|
|
|
Cairo is used for advanced graphics like anti-aliasing, paths, patterns,
transformations. Once you are in advanced graphis mode, all the calls must
be made using the cairo library. If we are not in advanced graphics mode,
GC uses gdk calls.
You will notice in the GC code that the cairo calls are made after checking
if cairo != 0. The use of Cairo is initialized by calling
GC.setAdvanced(true) or by using advanced features such as
setAntiAlias(true).
For example look at GC.drawLine() - with Cario it uses cairo_move_to(),
cairo_stroke() etc otherwise it calls gdk_draw_line().
"Charles Tuckey" <charlest@otii.com> wrote in message
news:dph2uf$lii$1@utils.eclipse.org...
> Veronika Irvine wrote:
>> Eclipse 3.2 M4 does not make use of any advanced graphics features so it
>> does not need to load the cairo library.
>>
> Hi Veronika,
>
> I don't understand this. Ok, I understand it but I can't believe it's
> true. Looking at the code for the GC class (linux-gtk) it makes cairo
> calls all over the place. What am I not getting?
>
> thanks,
> charlie
|
|
|
Powered by
FUDForum. Page generated in 0.04592 seconds