glib/gtk : debug version in local "user" library




I also posted this to the nabble gtk forum:

I wish to compile gtk "locally" I have my own debug version to which I
can link my own test apps. I want this version to contain debug
info. I do not, however, wish to upgrade my desktop to this version of
gtk. Just have a "debug" gtk locally for test development apps to use
it as a shared library.


Is this possible?

e.g

cd src/glib
../configure --enable-debug=yes prefix=/home/hadron/src
make
make install

Works fine : local version of glib.

Now I prepare atk:

cd src/atk
../configure --enable-debug=yes prefix=/home/hadron/src

It complains that the version found was less than that of the one
needed. So I add "/home/hadron/src/lib/pkgconfig" to my
pkg_config_path:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/home/shamrock/src/lib/pkgconfig


The problem now is not that pkg_config reports the higher version is
there but the one found is the old one. One can expect this since the
shared libaries I have locally are not on the path.

How do I fix this properly for the ./configure state? It seems to me
that if I edit /etc/ld.so.conf and run "sudo ldconfig" then I will
update the system versions too! ./configure doesnt have an "rpath"
option.

How to tell my "test program" and others (such as atk above) to use my
local shared libraries which contain debugging information without
changing the system? I'm sure it is staring me in the face, but I can
not see the wood for the trees at the moment.

I have tried specifying --libdirs=/home/hadron/src/lib to ./configure
but it is still seeing the /usr/lib version which is older than my
downloaded and locally compiled version,

Thank you for any advice.


--
.



Relevant Pages

  • floating point error when messing with GTK+
    ... I'm messing with GTK+ and was wondering if anyone has any idea why this ... happens and/or how to handle or debug this: ... (defun latestBug () ...
    (comp.lang.lisp)
  • Cant debug using gdb + debuginfo rpms
    ... I'm trying to debug a GTK app under gdb, but can't step into the GTK library. ... I'm wondering if it's because it's my own app., not an rpm-installed binary: ... needs some extra built-in ld stuff to point it to the debug files. ...
    (Fedora)
  • GTK compile trouble
    ... I have been trying to compile gtk so that I can have the libraries for ... installing other applications. ... I downloaded the gtk 2.2.2 source, ... so the libraries for the dependencies are in $HOME/usr/lib ...
    (comp.os.linux.setup)
  • Re: Problem with GTK+ instalation
    ... > until I am running make install. ... with system from SuSE CD) but I don't have GTK+ (at least that's ... what I've been told when I was trying to compile GTK+ progs). ... installed all, libraries needed for compilation. ...
    (alt.os.linux.suse)
  • Re: Which language to use for an international multiplatform application?
    ... gtk has a much better architecture. ... Both will require that you ship ... some shared libraries with your application. ...
    (comp.programming)