Re: Errors in compiling GTK 2.14.4 with DirectFB target



Hi All,
 
I exported PATH to $PREFIX/bin so that it takes glib-mkenums from newly installed Glib 2.18.2 in which ENUMPREFIX is present. Which glib-mkenums now returns glib-mkenums present in $PREFIX/bin. Still I'm not able to get rid of this error message:
 

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.)

What can be done to get around this problem? Help is greatly appreciated.

 

Regards,
Harinandan S


On Tue, Nov 25, 2008 at 2:21 PM, Harinandan S <harinandans gmail com> wrote:
Hi All,
 
I have installed Glib 2.18.2 and have set PKG_CONFIG_PATH to the place where .pc file of glib and other dependency are installed.
 
I listed glib-mkenums and it has ENUM_PREFIX defined. But I'm cross compiling and hence it cannot execute glib-mkenums present in $PREFIX/bin/glib-mkenums.  When I check for 'which glib-mkenums' the result is /bin/glib-mkenums which doesnt contain ENUMPREFIX defined.
 
What exactly should I do to overcome this problem?
 

Regards,
Harinandan S


On Sat, Nov 22, 2008 at 6:41 AM, Ian Puleston <ian underpressuredivers com> wrote:

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.

 

 

 

 





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