Re: gtk+-2 and centos 5

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



Hi,

On Mon, Jun 22, 2009 at 00:28, Frank Cox<theatre@xxxxxxxxxxx> wrote:
> configure:4752: gcc -o conftest -g -O2    conftest.c -lexpat -lz   >&5
> conftest.c:16:21: error: gtk/gtk.h: No such file or directory

gtk2-devel contains /usr/include/gtk-2.0/gtk/gtk.h. For that to work,
you have to use -I/usr/include/gtk-2.0 to the compiler, however that
should work automatically by using pkg-config. See the output of this
command:

$ pkg-config --cflags gtk+-2.0
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12

"configure" should be using that automatically, for some reason it
does not appear to be doing that correctly... It might be using a
string other than "gtk+-2.0" to pass to pkg-config, you could check
that...

You could also try to manually override it by passing CFLAGS and
LDFLAGS variables to configure using pkg-config to include gtk+-2.0
yourself. That can be done with something like:

$ CFLAGS=`pkg-config --cflags gtk+-2.0` LDFLAGS=`pkg-config --libs
gtk+-2.0` ./configure ...

And "./configure --help" might have more details on what else you can
do to specify where gtk+ is installed on your system...

HTH,
Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux