[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Ubuntu and GMF

Hi Anthony,

this thought has also crossed my mind. I naively tried to substitute the libcairo.so.2 on my system with the libcairo-swt.so from Eclipse, thinking it could help, but it looks like these libraries are completely unrelated and not compatible in any way... Let the linux gurus here forgive my ignorance.

Here's what I tried:

- I ran Eclipse with strace to see where it looks for libcairo.so.2. It tries many locations before resorting to /usr/lib, in my case the last directory was /usr/lib/jvm/java-1.5.0-sun-1.5.0.08/lib/i386/

- I put a symlink to libcairo-swt.so into that directory and named it libcairo.so.2

 - After all this, any attempts to start Eclipse were unsuccessful.

So, I call the myth that we can substitute Cairo library with the one provided with Eclipse debunked. Unless, of course, I did something completely wrong, which is quite likely.

Best,
Fedor.


Anthony Hunter wrote:
Hi

I am wondering if an option is to try replacing the 1.2.4-1ubuntu2 with the libcairo-swt.so and see if that resolves the issue. Then we will know that the new or old version of cairo is the issue.

I am not sure which version of cairo is included in libcairo-swt.so , but I think that Eclipse is likely using the 1.2.4-1ubuntu2 rather than the one provided with Eclipse. Not if you "ldd eclipse", the cairo library is not listed as a dependant library, so I am not sure how to tell which cairo SWT is finding.

I have added the Eclipse platform SWT newgroup to see if this is a known issue.

Cheers...
Anthony

I cannot tell
"Fedor Isakov" <fisakov@xxxxxxxxx> wrote in message news:ek9nr8$bbf$1@xxxxxxxxxxxxxxxxxxxx
Hi,

indeed, there is a Cairo library in Ubuntu:

aptitude show libcairo2 | egrep 'Package:|Version:'
Package: libcairo2
Version: 1.2.4-1ubuntu2

Best,
Fedor.


Anthony Hunter wrote:
Thanks Fedor and Cédric

So the issue cannot be GTK

It must be a Cairo issue.

Can you tell me if you have a version of libcairo on Ubuntu?
I know that there is no such library on RedHat and this means that the libcairo-swt.so library in the Eclipse home is being used (same directory where eclipse binary is found).


Cheers...
Anthony

"Fedor Isakov" <fisakov@xxxxxxxxx> wrote in message news:ek596t$48c$1@xxxxxxxxxxxxxxxxxxxx
Hi,

Anthony Hunter wrote:
Can you confirm on Ubuntu Linux 6.10 by running rpm -qa and tell me what you have?
gtk2.10.6-0 ?
libpango1.14.5-0 ?
Ubuntu 6.10 (Edgy Eft):

aptitude show libgtk2.0-0 libpango1.0-0 | egrep 'Package:|Version:'
Package: libgtk2.0-0
Version: 2.10.6-0ubuntu1
Package: libpango1.0-0
Version: 1.14.5-0ubuntu1

The 'ubuntu1' suffix is most likely an Ubuntu-specific patch.

Best,
Fedor.