From: gtk-list-bounces gnome org [mailto:gtk-list-bounces gnome org] On Behalf Of Harinandan S
Hi All,
When I try to compile GTK 2.14.4 with DirectFB target I get the following errors. I use DirectFB 1.1.1.
In file included from gdk-pixbuf.h:41,
from gdk-pixbuf.c:31:
../gdk-pixbuf/gdk-pixbuf-enum-types.h:17:9: macro names must be identifiers
../gdk-pixbuf/gdk-pixbuf-enum-types.h:19:9: macro names must be identifiers
../gdk-pixbuf/gdk-pixbuf-enum-types.h:21:9: macro names must be identifiers
../gdk-pixbuf/gdk-pixbuf-enum-types.h:25:9: macro names must be identifiers
../gdk-pixbuf/gdk-pixbuf-enum-types.h:27:9: macro names must be identifiers
gdk-pixbuf.c: In function `gdk_pixbuf_class_init':
gdk-pixbuf.c:101: error: `GDK_TYPE_COLORSPACE' undeclared (first use in this function)
gdk-pixbuf.c:101: error: (Each undeclared identifier is reported only once
gdk-pixbuf.c:101: error: for each function it appears in.)
Has anyone encountered this and solved this problem?
The gdk-pixbuf-enum-types.h error is probably because you have an older version of GTK installed than the one you are building. It's the 2nd time this week that same error has come up. To repeat what I said that time:
Find a file named glib-mkenums where you have GTK installed (usually C:/GTK/bin/glib-mkenums in Windows, /usr/bin/glib-mkenums in Linux) and list it (it's a text file - a perl script). Search for ENUMPREFIX, and if glib-mkenums does not have that then you need to install a newer gtk / gtk-dev.