Re: [Java-gnome-developer] cairo-java / getMatrix() problem
Brought to you by:
afcowie
From: David G. <dav...@ob...> - 2005-12-06 21:47:17
|
Andrew Cowie wrote: >On Thu, 2005-01-12 at 19:47 +0000, David Gilbert wrote: > > > >>I'd like to try your patch, but so far I >>have not succeeded in building cairo-java from CVS. I get this error >>when I execute 'make': >> >>/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: >>cannot find -lglibjava >> >> >... > > >>I know nothing about this stuff, I only got cairo-java working via the >>Gentoo ebuild. Any hints? >> >> > >So we just talked this over in #java-gnome, and I have a hypothesis for >you. > >-lglibjava is the library that we generate when you compile to native in >using GCJ that is effectively the equivalent of glib.jar. In the Gentoo >ebuilds, it only gets built if you have USE=gcj set in your USE flags >(either /etc/make.conf, /etc/portage/packages.use or on emerge command >line) > >So, my speculation is that you're not finding /usr/lib/libglibjava.so >because the glib-java package was built USE=-gcj (either explicitly by >you, or as a default by not setting the gcj use flag). > >If that is so, then when you are trying to build cairo-java from CVS, >you have configured as --with-gcj-compile which is the default. As a >workaround, you can probably do > > $ ./configure --without-gcj-compile --prefix=/opt/blah... > >Then it won't try and build the gcj native libraries libcairojava.so >that is the equivalents of cairo.jar, which means you won't need >libglibjava.so. Give it a try and let us know? > >[Or, you could re emerge glib-java with USE=gcj active - all assuming >that this hypothesis is correct] > >Be aware that in general, if you're building something from CVS, you end >up needing to build the dependencies from CVS. That is (probably) not >necessary in this case, but there are one or two few bug fixes in >glib-java since we released 0.2.1. FYI. > >AfC >Bangalore > > Thanks Andrew, this fixed the problem for me and allowed me to make more progress with my CairoGraphics2D class. I'll post a new thread to show you what I mean... Regards, Dave |