LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-23-2004, 02:39 PM   #1
Kane635
Member
 
Registered: Jul 2004
Posts: 36

Rep: Reputation: 15
Gtk Hell!


Ok, this is the problem.

I downloaded all the necesary gtk files...
glib, pango, atk, gtk, pkgconfig etc.

I unzipped/gunzipped/bunzipped them all
cd'd to glib-2.6.0
./configure
make
make install
mkdir /usr/include/glib
cd glib
cp *h /usr/include/glib
cd ..
<repeat for all the other header files>
cd ..
export PKG_CONFIG_PATH=/usr/local/src/glib-2.6.0:$PKG_CONFIG_PATH
cd pango-x-x-x
./configure
make

After doing all that, it gives me errors.
libtool: link: cannnot find library "..//usr/local/src/glib-2.6.0/<somelibrary>"

The problems is in the makefiles or something.
If you nano/pico/vi/whatever a makefile,

GLIB_CFLAGS = -pthread -I$(top_builddir)//usr/local/src/glib-2.6.0/./gmodule -I$(top_builddir)//usr/local/src/glib-2.6.0 -I$($GLIB_GENMARSHAL = $(top_builddir)//usr/local/src/glib-2.6.0/gobject/glib-genmarshal
GLIB_LIBS = $(top_builddir)//usr/local/src/glib-2.6.0/glib/libglib-2.0.la $(top_builddir)//usr/local/src/glib-2.6.0/gobject/l$GLIB_MKENUMS = $(top_builddir)//usr/local/src/glib-2.6.0/./gobject/glib-mkenums
GOBJECT_QUERY = $(top_builddir)//usr/local/src/glib-2.6.0/gobject/gobject-query

It has $(top_builddir) evaluating to ".."

So it looks for the library ..//usr/local/src/glib-2.6.0/<somelibrary> and returns an error when it should be doing just /usr/local/src/glib-2.6.0/<somelibrary> and being happy with all its libraries. :-)
I refuse to edit it, there are hundreds of makefiles I would have to edit for gtk and atk. I edited them all for pango and removed the $(top_builddir) and it worked so I know it is this. Any clues?
Happy holidays.
 
Old 12-23-2004, 04:44 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
libtool: link: cannnot find library "..//usr/local/src/glib-2.6.0/<somelibrary>"
Libtool gives me that all the time but it doesn't mean that it's actually a problem. It's just a libtool warning. It don't mean nothing.
 
Old 12-23-2004, 07:00 PM   #3
Kane635
Member
 
Registered: Jul 2004
Posts: 36

Original Poster
Rep: Reputation: 15
No, its a problem. It didn't compile the library, and it stopped running the makefile... I don't think you read your error messages correctly if a library failed to build it would stop compiling and you would have problems.
 
Old 12-23-2004, 09:53 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
hi this is a mistake i have seen people make before
when you do
"make install"
everything you need is installed including the header files libtool files .pc file etc
just delete the build directory when you are done

Quote:
cp *h /usr/include/glib
i don't know what prefix you used for install ?
the files are already installed in [prefix]/include/glib-2.0
and set
PKG_CONFIG_PATH=[prefix]/lib/pkgconfig

if you don't set --prefix= then default is /usr/local so you don't overwrite things in prefix=/usr

Last edited by foo_bar_foo; 12-23-2004 at 09:55 PM.
 
Old 12-23-2004, 10:06 PM   #5
Kane635
Member
 
Registered: Jul 2004
Posts: 36

Original Poster
Rep: Reputation: 15
I've tried the default, and /usr... neither worked... clues?
Btw, pango and friends look for header files in /usr/include/
Ex, /usr/include/glib.h
Not /usr/include/glib-2.0/glib.h
Odd...
 
Old 12-24-2004, 02:52 PM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally posted by Kane635
No, its a problem. It didn't compile the library, and it stopped running the makefile... I don't think you read your error messages correctly if a library failed to build it would stop compiling and you would have problems.
I'm well aware of what an error message looks like. It would help if we could see yours. Copy and paste the few lines before it says "error", as well as the error message itself.
 
  


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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
gtk and dependency hell perryub Linux - Software 7 07-25-2005 11:54 AM
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 12:51 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM

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

All times are GMT -5. The time now is 08:13 PM.

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