Re: Relocated Compiling... Any tips ?




 What a do is simply:

 1) build glib wiht prefix=/<some_dir>/getk_<major>_<minor>...
 2) ln -s <some_dir>/getk_<major>_<minor> gtk
 
  Then:
  on my .bashrc I include 
  export LD_LIBRARY_PATH=<some_dir>gtk/lib:$LD_LIBRARY_PATH
  export PKG_CONFIG_PATH=<some_dir>/gtk/lib/pkgconfig:$PKG_CONFIG_PATH
  export PATH=<some_dir>/gtk/bin

  Then compile the rest -- from that point on, pkg-config will take care of the
rest. 

 When I want to back to the previous version of gtk, I just change the sym.
link and recompile my app -- it works like a charm.

Harring
  

--- Tristan Van Berkom <vantr touchtunes com> wrote:
Ok, So I downloaded:

atk-1.2.4
pango-1.2.5
glib-2.2.3
gtk+-2.2.4

And... I need my libs to *eventualy* install in /usr/lib (on
other machines), so from experience:

builddir/glib-2.2.3 $ ./configure --prefix=/usr

does the trick,

but since I can't install on the machine used for compileing...

I do this:

builddir/glib-2.2.3 $ mkdir distrib
builddir/glib-2.2.3 $ make DESTDIR=`pwd`/distrib install

so far so good... but now that I'm compiling atk-1.2.4, atk wants
to link against the new glib I just built... hmmm, setting LD_LIBRARY_PATH
to: "`pwd`/builddir/glib-2.2.3/distrib/usr/lib" doesn't help...

Anyone have an easier proceedure to compile gtk+ in a relocated
environment ?

(I mean, sure I'll get throught it by hand but...
that could end up being a nightmare ;-)

Cheers,
                      -Tristan


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]