LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gtk Hell! (https://www.linuxquestions.org/questions/linux-software-2/gtk-hell-269665/)

Kane635 12-23-2004 02:39 PM

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.

Andrew Benton 12-23-2004 04:44 PM

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.

Kane635 12-23-2004 07:00 PM

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.

foo_bar_foo 12-23-2004 09:53 PM

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

Kane635 12-23-2004 10:06 PM

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...

Andrew Benton 12-24-2004 02:52 PM

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.


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