[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: glib.h



Once upon a time Peter Zelezny wrote @ Thu, 17 Apr 2003 19:10:50 +1000

> On Thu, 17 Apr 2003 09:14:54 +0200
> Borislav Petkov <borislav.petkov@t-online.de> wrote:
> 
> > Hi,
> > i've been reading the mailing archive of xchat-discuss and came across your 
> > mail concerning the compile problem of some guy not being able to point to 
> > the compiler the right location og libglib2.0 dev. I acutally have the same 
> > problem, and, it might sound quite funny, but my glib dev library header 
> > files are located in the same dir /usr/include/glib-2.0 and i can't seem to 
> > figure it out how to tell the preprocessor where to look for. Do you have an
> > 
> > idea what the problem is?
> 
> Configure uses the magic of pkg-config to find the location:
> 
> $ pkg-config glib-2.0 --cflags
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> 
> If xchat can't find your Glib2, I suspect ANY gtk2 app won't find it. This is
> because it uses the standard macro to detect it:
> 
> AM_PATH_GLIB_2_0(2.0.3, glib=yes, glib=no)
> if test "$glib" = no; then
> 	AC_MSG_ERROR("Cannot find glib")
> fi
> 
> Have a look at "config.log", it might give you some more clues.

This cause a problem if you have more than 1 version of gtk installed "at least for me"
I really use:
PKG_CHECK_MODULES(FOO, gtk+-2.0 >= 2.0.0)

-- 
----------------
-- Katoob Main Developer
Linux registered user # 224950
ICQ # 58475622
FIRST  make  it  run, THEN make it run fast "Brian Kernighan".

PGP signature