Getting gtk+ to find my private copy of libgobject-2.0.so

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

 



Hello, list.

I am trying to compile GTK+ CVS, and have run into a problem with it linking against my system's version of GLib instead of my private copy of a compiled GLib CVS.

Here's the setup:
I checked out glib, atk, and pango. I compiled them all with --prefix=/home/mike/path, LD_LIBRARY_PATH=/home/mike/path/lib, PKG_CONFIG_PATH=/home/mike/path/lib/pkgconfig, and PATH=/home/mike/path/bin:$PATH. They all seem to be OK.


Now, I try to compile my checked out copy of gtk+. It compiles all the way up to the end. When it tries to link to libgobject, libtool spits out /usr/lib/libgobject-2.0.so and /usr/lib/libglib-2.0.so libraries before my own compiled ones (which exist and seem fine). Strangely enough, it finds and uses my pango and atk libraries well.


"libtool --mode=link gcc -g -O2 -g -Wall -L/home/mike/code/fakeroot/usr/local/lib -o gtk-query-immodules-2.0 queryimmodules.o libgtk-x11-2.0.la ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la


libtool: link: warning: library `/home/mike/code/fakeroot/usr/local/lib/libpango-1.0.la' was moved.

gcc -g -O2 -g -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o -L/home/mike/code/fakeroot/usr/local/lib ./.libs/libgtk-x11-2.0.so /home/mike/code/gtk+/gdk/.libs/libgdk-x11-2.0.so -L/usr/X11R6/lib /home/mike/code/fakeroot/usr/local/lib/libatk-1.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -lXrandr -lXinerama -lXext -lXft -lXrender /usr/lib/libfontconfig.so /usr/lib/libfreetype.so -lz /usr/lib/libexpat.so -lX11 -lXcursor /home/mike/code/fakeroot/usr/local/lib/libpangoxft-1.0.so /home/mike/code/fakeroot/usr/local/lib/libpangox-1.0.so /home/mike/code/fakeroot/usr/local/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so /home/mike/code/gtk+/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /home/mike/code/fakeroot/usr/local/lib/libgmodule-2.0.so -ldl /home/mike/code/fakeroot/usr/local/lib/libgobject-2.0.so /home/mike/code/fakeroot/usr/local/lib/libglib-2.0.so -lm -Wl,--rpath -Wl,/home/mike/code/fakeroot/usr/local/lib
/home/mike/code/gtk+/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `g_unsetenv'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_instance_get_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_param_spec_get_redirect_target'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_class_override_property'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_class_add_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_interface_install_property'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_markup_vprintf_escaped'
collect2: ld returned 1 exit status"




How do I get the GTK+ build process to use only my own copy of the libraries?

Please cc: me, as I'm not subscribed to this list.

-mt

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux