Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ [1] 2 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: gtk+-2.12.9, installed in /opt, glib2 conflict< Next Oldest | Next Newest >
Jason W Offline





Group: Members
Posts: 260
Joined: Nov. 2006
Posted: April 12 2008,14:16 QUOTE

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
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: April 12 2008,14:50 QUOTE

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...
Back to top
Profile PM 
Jason W Offline





Group: Members
Posts: 260
Joined: Nov. 2006
Posted: April 13 2008,00:45 QUOTE

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.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: April 13 2008,01:58 QUOTE

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?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: April 13 2008,03:45 QUOTE

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.
Back to top
Profile PM 
17 replies since April 12 2008,14:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ [1] 2 3 4 >/
reply to topic new topic new poll
Quick Reply: gtk+-2.12.9

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code