LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GTK+-2.6.2 compile error: libtool looking in wrong place for libglib-2.0.la (https://www.linuxquestions.org/questions/linux-software-2/gtk-2-6-2-compile-error-libtool-looking-in-wrong-place-for-libglib-2-0-la-291479/)

Locura 02-17-2005 01:26 PM

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
libtool: link: cannot find the library `/usr/local/lib/libglib-2.0.la'

I checked ./configure --help and found no way of specifying where to look for glib. Does anyone know how I can get this thing to see my glib?

__J 02-17-2005 02:55 PM

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

Locura 02-17-2005 03:38 PM

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.

__J 02-17-2005 03:47 PM

what is the output of:

pkg-config --libs glib-2.0

Locura 02-17-2005 03:49 PM

-L/usr/lib -lglib-2.0


I know, it makes no sense. Doesn't matter, though. GTK+ is compiled and installed.

__J 02-17-2005 03:51 PM

:scratch:


All times are GMT -5. The time now is 03:02 PM.