Extension Development :: gtk+-2.12.9



I built gtk+-2.12.9 with the latest pango, cairo, freetype, etc and installed it into /opt/gtk+-2.12.9 to make a uci package.  Setting it up in a basic way (echo "/opt/gtk+-2.12.9/lib" >> /etc/ld.so.conf && ldconfig) allows it to work fine with extensions made for the gtk-2.10.9 extension.  One catch - the glib2 files in /usr/lib have to be removed for the gtk extension to work.  ldconfig links files in /opt/gtk+-2.12.9 to the glib2 in /usr/lib if it is there.  I have googled and all advice was to remove the old glib2 if you have 2 versions installed.  I do not want to mess with the base system and I was curious if anyone has had this same issue and was able to resolve it.  Thanks in advance.

JW

Did you compile a version of glib2 in /opt/gtk+-2.12.9?

If so then maybe this would work prior to compiling gtk:
Code Sample
$ export PKG_CONFIG_PATH=/opt/gtk+-2.12.9/lib/pkgconfig
or
$ export LDFLAGS=-L/opt/gtk+-2.12.9/lib

- or maybe you could edit the Makefile to point to the correct glib2

Edit: I'm not sure if the version of glib2 you want to use produces a "glib-config" but if it does, you could link this to /opt/bin and see if that helps

Edit2: gimp-2.4.uci uses glib2 & gtk+-2.10.13 so one of the methods above must have worked...

I built the latest glib2 in /opt/gtk+-2.12.9.  Turns out glib2 is not the only library having conflicts.  I built this stuff on Sarge with no other gtk2/glib2 present on the system.  Building on DSL of course usually minimizes conflicts.  I did the pkgconfig/LDFLAGS thing when building, but I messed up somewhere.  Any libs that are also in the DSL base system seem to confuse the library linking.  I am wanting a gtk2.uci similar to gtk-2.10.9.unc - preferably 2.12 but 2.10 would do.  I will start over and give it another go.  One more thing, did you build the gimp-2.4 on DSL with the compile-3.3.5.uci extension?  I normally use it, but had some errors compiling glib2.  I was building this on Woody at first at my other place and later built it on Sarge one night here.  Thanks for your help.
Quote
Edit: I'm not sure if the version of glib2 you want to use produces a "glib-config" but if it does, you could link this to /opt/bin and see if that helps
Newer builds of glib deprecated glib-config for pkgconfig.  Unfortunately, this will break some things that look for it.

I recently built glib 2.14.6 (latest stable afaik), and I had to include bits/posix1_lim.h (or just define SSIZE_MAX as LONG_MAX).  I'm not sure if this is a correct solution though since I didn't look this up.  Did you have those build errors on your Debian setups?

Quote
One more thing, did you build the gimp-2.4 on DSL with the compile-3.3.5.uci extension?  I normally use it, but had some errors

Yes, but I had an error as you say. Inserting the following in giounix.c will fix the error: "`SSIZE_MAX' undeclared":
Code Sample
#ifndef SSIZE_MAX
#define SSIZE_MAX 0x7fffffff
#endif


Quote
Did you have those build errors on your Debian setups?

I gave up building on debian setups, but I do see a number of errors when using compile-3.3.5 - I'm not sure if it is because the extension is in /opt, because some of the headers are old or what. The "`_POSIX_ARG_MAX' undeclared" error pops up from time to time.

Next Page...
original here.