GTK+-2.6.2 compile error: libtool looking in wrong place for libglib-2.0.la
I'm getting the following error when I try to compile GTK+-2.6.2
Code:
/bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -o timescale timescale.o libpixops.la -pthread -L/usr/local/lib -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -lm |
did you have a glib-2.0 in /usr/local? looks like you did not completely remove one that was there. when configure was doing it's checks, it called pkg-config it probably found the old one (.pc) so it set the ldflags for that lib accordingly.
To override the library linker: export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH should force the linker to look in /usr/lib/ before it will look in /usr/local/lib |
No trace of glib-2.0 in /usr/local/lib, and no glib-2.0.pc in /usr/local/lib/pkgconfig. Bizarre. I made a quick-and-dirty fix by creating symbolic links to all glib-2.0 files and the /usr/lib/glib-2.0 directory in /usr/local. GTK is compiling now, still long from finished though. Time to make a sandwich and let it run. I'll post back if there's any problem.
|
what is the output of:
pkg-config --libs glib-2.0 |
-L/usr/lib -lglib-2.0
I know, it makes no sense. Doesn't matter, though. GTK+ is compiled and installed. |
:scratch:
|
All times are GMT -5. The time now is 03:02 PM. |