Extension Development :: gtk+-2.12.9



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.

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?
EDIT: Problem solved.
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)

^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.

Next Page...
original here.