On Fri, 2007-09-28 at 22:13 +0200, Henry Jensen wrote:
> We don't officially support GTK versions earlier than 2.8.
I suppose
> this should be detailed in the documentation.
Yes, it should.:)
Documentation updated.
You are right that GTK >= 2.8 depends on cairo. But it is
necessary to find cout the CFLAGS
(e. g. -I/usr/include/cairo), which is why I mentioned it in the makefile. Otherwise
cairo.h isn't found on my system.
GTK 2.8 depends on Cairo - pkg-config should already be mentioning
Cairo, like it does here:
304 rjek@trite:~ $ pkg-config --cflags gtk+-2.0
-DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12
If it doesn't, I suspect your pkg-config files are broken: the GTK
header files depend on being able to find Cairo: they won't parse
without them. In fact, it's more fundamental than that: all of the GDK
back ends #include <cairo.h>.
Perhaps GTK 2.6 is the default on your system, and it's just a miracle
that NetSurf builds using it and Cairo at all?
B.