Sluggers,
I am trying to compile Gaim 0.45 and am having the following problem
(I'm also getting this with anything that needs GTK+ to compile).
I am using Debian Potato with Ximian Gnome.
$./configure
Is all OK except for the following error:
checking for GTK - version >= 1.2.0... 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 was incorrectly
installed
*** or that you have moved GTK since it was installed. In the latter
case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
configure: error:
*** GTK+ is required to build Gaim; please make sure you have the
GTK+
*** development headers installed. The latest version of GTK+ is
*** always available at http://www.gtk.org/.
When I do gtk-config --versions I get:
[sjw@lonewolf]$ gtk-config --version
1.2.10
Which is greater than 1.2. So I looked in the config.log file:
configure:11480: checking for GTK - version >= 1.2.0
configure:11583: gcc -o conftest -g -O2 -I/usr/local/include
-I/opt/include -I$(top_srcdir) -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT
-I/usr/X11R6/include conftest.c -L/usr/lib -L/usr/X11R6/lib -lgtk
-lgdk -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl -lXi
-lXext -lX11 -lm >&5
/usr/bin/ld: cannot find -lXi
collect2: ld returned 1 exit status
configure:11586: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 11504 "configure"
#include "confdefs.h"
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
int major, minor, micro;
char *tmp_version;
I have found that the headers are actually as below:
/usr/include/gtk-1.2/gtk/gtk.h
Looking in /usr/bin/gtk-config I only see references to glib of which
all these seem to exist:
glib_libs="-L/usr/lib -rdynamic -lgmodule -lglib -ldl"
glib_cflags="-I/usr/include/glib-1.2 -I/usr/lib/glib/include"
glib_thread_libs="-L/usr/lib -rdynamic -lgmodule -lgthread -lglib
-lpthread -ldl"
glib_thread_cflags="-I/usr/include/glib-1.2 -I/usr/lib/glib/include
-D_REENTRANT"
Can anyone help me sort out why configure is not finding the GTK+
libraries as it is happening with other source code I try and compile
too?
I contemplated using the libgtk-1.2.5 from gtk.org but am worried about
mixing packages.
Any pointers would be very welcome.
Thanks.
--
*************************
* Simon Wong *
* *
* <[EMAIL PROTECTED]> *
* *
*************************
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug