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

Re: xchat 1.9.4 on SuSE linux 8.1 not finding gtk.h



On Thu, 7 Nov 2002 17:47:53 +0100
"Thomas J. Stensås"  <ShadowMaster@Shadow-Realm.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wednesday 06 November 2002 03:39, Joanne Hunter wrote:
> > In that case, you might want to check for pkg-config, as I
> > understand gtk+2 uses it instead.
> 
> I'll be a little bit more specific.. the following is the actual
> configure output:
> 
> checking system type... Linux
> checking for pkg-config... /usr/bin/pkg-config
> checking for GLIB - version >= 2.0.3... yes (version 2.0.6)
> checking for pkg-config... (cached) /usr/bin/pkg-config
> checking for GTK+ - version >= 2.0.3... no
> *** Could not run GTK+ test program, checking why...
> *** The test program failed to compile or link. See the file
> config.log for the
> *** exact error that occured. This usually means GTK+ is incorrectly
> installed.
> 
> Cannot find GTK! Not building GTK FrontEnd.
> 
> Now.. config.log states the following:
> 
> configure:3859: checking system type
> configure:4075: checking for pkg-config
> configure:4125: checking for GLIB - version >= 2.0.3
> configure:4239: gcc -o conftest -g -O2  -I/usr/include/glib-2.0 
> - -I/usr/lib/glib-2.0/include     con$
> configure:4352: checking for pkg-config
> configure:4400: checking for GTK+ - version >= 2.0.3
> configure:4554: gcc -o conftest -g -O2    conftest.c   1>&5
> configure:4546:21: gtk/gtk.h: No such file or directory
> 
> So its complaining it cannot find gtk.h which is odd since both
> gtk.h for 1.x.x and 2.x.x are present and installed on the system:
> 
> /usr/include/gtk-1.2/gtk/gtk.h
> /usr/include/gtk-2.0/gtk/gtk.h
> 
> Which is also the default path on SuSE 8.1 for these.
> Adding a symlink for /usr/include/gtk to point to
> /usr/include/gtk-2.0/gtk/ does not help either.
> 
> The exact packages installed are the SuSE distro ones:
> gtk2-2.0.6-71
> gtk2-devel-2.0.6-71
> 
> Now, i could possibly get around this by installing GTK2 by source,
> but unless i did something very wrong somewhere, and i dont think so
> as this is a clean install of SuSE 8.1 on my system, XChat 1.9.x
> will have this problem on all SuSE 8.1 systems with GTK installed by
> vendor RPM.
> 

Try running:

pkg-config --cflags gtk+-2.0

If that doesn't print at least `-I/usr/include/gtk-2.0' then you're
one step closer to the cause of the problem.

--
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/xchat-discuss/