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 >
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: April 13 2008,17:44 QUOTE

Quote
BTW, "export CFLAGS=-DSSIZE_MAX=LONGMAX" threw up an error about "LONGMAX" not being defined, but "-DSSIZE_MAX=0x7fffffff" worked for me compiling glib2.
Ah, it should be LONG_MAX.  I guess I typed it out wrong the second time around.  Updated post to reflect the correct define.

Quote
You would link to the right libraries during build time, but get your wires crossed later running ldconfig all the same.  Extensions that contain libraries to be used for just that extension pose no problem even if there are other versions installed in the base system.  The purpose of course with a gtk2.uci is to be able to use it with Firefox and any other app that expects gtk2 to be in a standard,  or at least findable, place.   I think there would be no issues if I just built extensions against the /opt/gtk+-2.12.9 location that would not require using ldconfg after installing gtk2.   But that would not be of much use.
Some ideas:
- you could use a .dsl or .unc like the previous gtk2 extensions
- do some 'magic' with ldconfig or on ld.so.conf (i.e. have your gtk path first)
- set LD_LIBRARY_PATH, i.e. in .xinitrc and tell the user to restart X
- GTK variables (see http://library.gnome.org/devel/gtk/unstable/gtk-running.html )

I was looking forward to this extension (to save me a bit of time a well), so it would be nice to see it completed, even if it's not an entirely ideal solution.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: April 13 2008,17:56 QUOTE

Any ideas as to why /opt/include with owner dsl.staff will compile glib2 without errors when /opt/compile-3.3.5/include will not, even when changed to dsl.staff?
Back to top
Profile PM 
Jason W Offline





Group: Members
Posts: 260
Joined: Nov. 2006
Posted: April 13 2008,18:47 QUOTE

EDIT: Problem solved.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: April 13 2008,18:56 QUOTE

Quote
Any ideas as to why /opt/include with owner dsl.staff will compile glib2 without errors when /opt/compile-3.3.5/include will not, even when changed to dsl.staff?
No idea.  What I can conclude is that any include files that are _outside_ of the original include directory will work as expected.

Could be something that was compiled in?  And I'm still not sure why using sudo works in my test. (only `sudo cc mytest.c` works, nothing else seems to)
Back to top
Profile PM 
Jason W Offline





Group: Members
Posts: 260
Joined: Nov. 2006
Posted: April 13 2008,19:05 QUOTE

^thhatsrule^,
Putting /opt/gtk+-2.12.9/lib at the beginning of /etc/ld.so.conf did the trick.  I don't know why I didn't try that.  It works perfectly now.  Thanks.
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