LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2005, 01:26 PM   #1
Locura
Member
 
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370

Rep: Reputation: 30
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?
 
Old 02-17-2005, 02:55 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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
 
Old 02-17-2005, 03:38 PM   #3
Locura
Member
 
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370

Original Poster
Rep: Reputation: 30
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.
 
Old 02-17-2005, 03:47 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what is the output of:

pkg-config --libs glib-2.0
 
Old 02-17-2005, 03:49 PM   #5
Locura
Member
 
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370

Original Poster
Rep: Reputation: 30
-L/usr/lib -lglib-2.0


I know, it makes no sense. Doesn't matter, though. GTK+ is compiled and installed.
 
Old 02-17-2005, 03:51 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
insmod looking in the wrong place Recirqie Linux - Software 0 10-20-2004 03:38 PM
sorry, kinda wrong place sriontoc General 3 09-29-2004 08:28 PM
libtool-1.5.6 doesn't compile, LFS navyblue77 Linux - Software 0 08-09-2004 05:07 PM
Why this GTK example code compile error? searun Programming 1 07-22-2004 08:21 AM
!forgive me if this is wrong place pudhiyavan Linux - Hardware 7 04-19-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration