RE: GTK compile error: ../gdk-pixbuf/gdk-pixbuf-enum-types.h:19:9: error: macro names must be identifiers



Where it says “@ENUMPREFIX@” it should say “GDK” so you could try editing those by hand. However, this is generated using bin/glib-mkenums from your GTK installation, and ENUMPREFIX was a relatively recent addition in there (its in my 2.14.4 version, but not in 2.12.3). So it would appear that you are trying to build a newer version of GTK but have an older version installed. You need to upgrade to the latest version of the GTK dev package.

 

Ian

 

From: Kristin Branson [mailto:kristinbranson gmail com]
Sent: Friday, November 14, 2008 9:09 PM
To: Ian Puleston
Cc: gtk-list gnome org
Subject: Re: GTK compile error: ../gdk-pixbuf/gdk-pixbuf-enum-types.h:19:9: error: macro names must be identifiers

 

Thanks! Here is the entire gdk-pixbuf-enum-types.h file:

/* Generated data (by glib-mkenums) */

#if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
#error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
#endif

#ifndef __GDK_PIXBUF_ENUM_TYPES_H__
#define __GDK_PIXBUF_ENUM_TYPES_H__

#include <glib-object.h>

G_BEGIN_DECLS


/* enumerations from "gdk-pixbuf-core.h" */

GType gdk_pixbuf_alpha_mode_get_type (void) G_GNUC_CONST;
#define @ENUMPREFIX _TYPE_PIXBUF_ALPHA_MODE (gdk_pixbuf_alpha_mode_get_type ())

GType gdk_colorspace_get_type (void) G_GNUC_CONST;
#define @ENUMPREFIX _TYPE_COLORSPACE (gdk_colorspace_get_type ())

GType gdk_pixbuf_error_get_type (void) G_GNUC_CONST;
#define @ENUMPREFIX _TYPE_PIXBUF_ERROR (gdk_pixbuf_error_get_type ())


/* enumerations from "gdk-pixbuf-transform.h" */

GType gdk_interp_type_get_type (void) G_GNUC_CONST;
#define @ENUMPREFIX _TYPE_INTERP_TYPE (gdk_interp_type_get_type ())

GType gdk_pixbuf_rotation_get_type (void) G_GNUC_CONST;
#define @ENUMPREFIX _TYPE_PIXBUF_ROTATION (gdk_pixbuf_rotation_get_type ())

G_END_DECLS

#endif /* __GDK_PIXBUF_ENUM_TYPES_H__ */


/* Generated data ends here */

I'm willing to edit it by hand if someone can tell me/link me to what it should look like.

Thanks,
Kristin

On Fri, Nov 14, 2008 at 4:47 PM, Ian Puleston <ian underpressuredivers com> wrote:

From: Kristin Branson

I am trying to compile GTK, and have encountered an error I can't figure out. Here is the tail of what make spits out:

../gdk-pixbuf/gdk-pixbuf-enum-types.h:19:9: error: macro names must be identifiers
../gdk-pixbuf/gdk-pixbuf-enum-types.h:22:9: error: macro names must be identifiers
../gdk-pixbuf/gdk-pixbuf-enum-types.h:25:9: error: macro names must be identifiers
../gdk-pixbuf/gdk-pixbuf-enum-types.h:31:9: error: macro names must be identifiers
../gdk-pixbuf/gdk-pixbuf-enum-types.h:34:9: error: macro names must be identifiers

 

 

gdk-pixbuf-enum-types.h is generated by a Perl script, so you might want to post what was generated at those lines that the compiler is complaining about. It can screw it up in a Windows build from msys and requires patching it manually afterwards, so maybe you've hit a similar problem here.

 

 



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