QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1377|回复: 3

编译出错,我的系统是fedora core3

[复制链接]
发表于 2004-11-22 16:11:38 | 显示全部楼层 |阅读模式
大家好!
   我刚买了本<源码开放的嵌入式系统软件分析与实践>,按照书上的P129上面,我先把arm-tools安装好.然后装好然后下载了glib+1.2.0 & gtk+1.2.0并安装好.可是我co的nfigure skyeye 的时候(./configure --target=arm-elf --prefix=/usr/local/)并且ma ke 的时候
得到如下的错误信息:
/usr/include/glib-2.0/glib/gdate.h:205: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gdate.h:228: error: syntax error before "g_date_strftime"
/usr/include/glib-2.0/glib/gdate.h:229: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gdate.h:231: warning: data definition has no type or storage class
In file included from /usr/include/glib-2.0/glib.h:40,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gdir.h:28: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/gdir.h:30: error: syntax error before "typedef"
/usr/include/glib-2.0/glib/gdir.h:35: error: syntax error before "gchar"
In file included from /usr/include/glib-2.0/glib.h:42,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gfileutils.h:26: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/gfileutils.h:30: error: syntax error before "typedef"
/usr/include/glib-2.0/glib/gfileutils.h:79: error: syntax error before "gsize"
In file included from /usr/include/glib-2.0/glib.h:43,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/ghash.h:32: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/ghash.h:34: error: syntax error before "typedef"
/usr/include/glib-2.0/glib/ghash.h:104: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/ghash.h:104: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/ghash.h:106: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/ghash.h:106: warning: data definition has no type or storage class
In file included from /usr/include/glib-2.0/glib.h:44,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/ghook.h:32: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/ghook.h:36: error: syntax error before "typedef"
In file included from /usr/include/glib-2.0/glib/gmain.h:23,
                 from /usr/include/glib-2.0/glib/giochannel.h:31,
                 from /usr/include/glib-2.0/glib.h:45,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gslist.h:32: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/gslist.h:34: error: syntax error before "typedef"
In file included from /usr/include/glib-2.0/glib/giochannel.h:31,
                 from /usr/include/glib-2.0/glib.h:45,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gmain.h:26: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/gmain.h:28: error: syntax error before "typedef"
/usr/include/glib-2.0/glib/gmain.h:35: error: syntax error before "pid"
/usr/include/glib-2.0/glib/gmain.h:251: error: syntax error before "pid"
/usr/include/glib-2.0/glib/gmain.h:296: error: syntax error before "GPid"
/usr/include/glib-2.0/glib/gmain.h:300: error: syntax error before "pid"
In file included from /usr/include/glib-2.0/glib/gstring.h:31,
                 from /usr/include/glib-2.0/glib/giochannel.h:32,
                 from /usr/include/glib-2.0/glib.h:45,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gunicode.h:28: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/gunicode.h:30: error: syntax error before "typedef"
/usr/include/glib-2.0/glib/gunicode.h:114: error: syntax error before "char"
/usr/include/glib-2.0/glib/gunicode.h:118: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:118: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:119: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:119: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:120: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:120: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:121: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:121: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:122: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:122: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:123: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:123: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:124: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:124: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:125: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:125: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:126: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:126: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:127: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:127: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:128: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:128: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:129: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:129: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:130: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:130: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:131: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:131: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:135: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:135: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:136: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:136: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:137: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:137: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:141: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:141: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:143: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:143: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:146: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:146: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:149: error: syntax error before "G_GNUC_CONST"
/usr/include/glib-2.0/glib/gunicode.h:149: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gunicode.h:156: error: syntax error before "gsize"/usr/include/glib-2.0/glib/gunicode.h:162: error: syntax error before "gsize"/usr/include/glib-2.0/glib/gunicode.h:172: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:185: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:190: error: syntax error before "gsize"/usr/include/glib-2.0/glib/gunicode.h:195: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:198: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:201: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:249: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:256: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:258: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:260: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:274: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gunicode.h:280: error: syntax error before "gssize"
In file included from /usr/include/glib-2.0/glib/gutils.h:31,
                 from /usr/include/glib-2.0/glib/gstring.h:32,
                 from /usr/include/glib-2.0/glib/giochannel.h:32,
                 from /usr/include/glib-2.0/glib.h:45,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stdarg.h:43: error: syntax error before "typedef"
In file included from /usr/include/glib-2.0/glib/gstring.h:32,
                 from /usr/include/glib-2.0/glib/giochannel.h:32,
                 from /usr/include/glib-2.0/glib.h:45,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gutils.h:116: error: syntax error before "G_CONST_RETURN"
/usr/include/glib-2.0/glib/gutils.h:116: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/gutils.h:117: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/gutils.h:118: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/gutils.h:119: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/gutils.h:122: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/gutils.h:142: error: syntax error before "G_GNUC_PRINTF"
/usr/include/glib-2.0/glib/gutils.h:142: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gutils.h:152: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/gutils.h:160: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/gutils.h:176: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/gutils.h: In function `g_bit_nth_lsf':
/usr/include/glib-2.0/glib/gutils.h:239: error: `GLIB_SIZEOF_LONG' undeclared (first use in this function)
/usr/include/glib-2.0/glib/gutils.h:239: error: (Each undeclared identifier is reported only once
/usr/include/glib-2.0/glib/gutils.h:239: error: for each function it appears in.)
/usr/include/glib-2.0/glib/gutils.h: In function `g_bit_nth_msf':
/usr/include/glib-2.0/glib/gutils.h:247: error: `GLIB_SIZEOF_LONG' undeclared (first use in this function)
In file included from /usr/include/glib-2.0/glib/giochannel.h:32,
                 from /usr/include/glib-2.0/glib.h:45,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gstring.h: At top level:
/usr/include/glib-2.0/glib/gstring.h:34: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/gstring.h:36: error: syntax error before "typedef"/usr/include/glib-2.0/glib/gstring.h:42: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gstring.h:42: warning: no semicolon at end of struct or union
/usr/include/glib-2.0/glib/gstring.h:43: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gstring.h:48: error: syntax error before "size"
/usr/include/glib-2.0/glib/gstring.h:54: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstring.h:63: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstring.h:64: error: syntax error before "dfl_size"
/usr/include/glib-2.0/glib/gstring.h:73: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gstring.h:75: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gstring.h:77: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstring.h:84: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstring.h:97: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstring.h:99: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstring.h:102: error: syntax error before "gssize"/usr/include/glib-2.0/glib/gstring.h:105: error: syntax error before "gssize"/usr/include/glib-2.0/glib/gstring.h:108: error: syntax error before "gssize"/usr/include/glib-2.0/glib/gstring.h:114: error: syntax error before "G_GNUC_PRINTF"
/usr/include/glib-2.0/glib/gstring.h:114: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gstring.h:117: error: syntax error before "G_GNUC_PRINTF"
/usr/include/glib-2.0/glib/gstring.h:117: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gstring.h: In function `g_string_append_c_inline':/usr/include/glib-2.0/glib/gstring.h:125: error: dereferencing pointer to incomplete type
/usr/include/glib-2.0/glib/gstring.h:125: error: dereferencing pointer to incomplete type
/usr/include/glib-2.0/glib/gstring.h:127: error: dereferencing pointer to incomplete type
/usr/include/glib-2.0/glib/gstring.h:127: error: dereferencing pointer to incomplete type
/usr/include/glib-2.0/glib/gstring.h:128: error: dereferencing pointer to incomplete type
/usr/include/glib-2.0/glib/gstring.h:128: error: dereferencing pointer to incomplete type
In file included from /usr/include/glib-2.0/glib.h:45,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/giochannel.h: At top level:
/usr/include/glib-2.0/glib/giochannel.h:34: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/giochannel.h:39: error: syntax error before "typedef"
/usr/include/glib-2.0/glib/giochannel.h:116: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:116: warning: no semicolon at end of struct or union
/usr/include/glib-2.0/glib/giochannel.h:124: error: syntax error before ':' token
/usr/include/glib-2.0/glib/giochannel.h:125: error: syntax error before ':' token
/usr/include/glib-2.0/glib/giochannel.h:126: error: syntax error before ':' token
/usr/include/glib-2.0/glib/giochannel.h:127: error: syntax error before ':' token
/usr/include/glib-2.0/glib/giochannel.h:128: error: syntax error before ':' token
/usr/include/glib-2.0/glib/giochannel.h:129: error: syntax error before ':' token
/usr/include/glib-2.0/glib/giochannel.h:133: error: syntax error before '}' token
/usr/include/glib-2.0/glib/giochannel.h:142: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:147: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:172: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:176: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:204: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:205: error: syntax error before "g_io_channel_get_buffer_size"
/usr/include/glib-2.0/glib/giochannel.h:205: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/giochannel.h:214: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/giochannel.h:222: error: syntax error before "gchar"
/usr/include/glib-2.0/glib/giochannel.h:232: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:237: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:241: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:245: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/giochannel.h:253: error: syntax error before "gssize"
In file included from /usr/include/glib-2.0/glib.h:47,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gmacros.h:43:1: warning: "G_GNUC_EXTENSION" redefined
In file included from /usr/include/glib-2.0/glib/gtypes.h:30,
                 from /usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/local/lib/glib/include/glibconfig.h:38:1: warning: this is the location of the previous definition
In file included from /usr/include/glib-2.0/glib.h:49,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gmarkup.h:30: error: syntax error before "typedef"/usr/include/glib-2.0/glib/gmarkup.h:77: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gmarkup.h:88: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gmarkup.h:107: error: syntax error before "gssize"/usr/include/glib-2.0/glib/gmarkup.h:121: error: syntax error before "gssize"In file included from /usr/include/glib-2.0/glib.h:51,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gmessages.h:44: error: syntax error before "g_printf_string_upper_bound"
In file included from /usr/include/glib-2.0/glib.h:55,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gqsort.h:37: error: syntax error before "gsize"
In file included from /usr/include/glib-2.0/glib.h:63,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gspawn.h:80: error: syntax error before "GPid"
/usr/include/glib-2.0/glib/gspawn.h:93: error: syntax error before "GPid"
/usr/include/glib-2.0/glib/gspawn.h:123: error: syntax error before "pid"
In file included from /usr/include/glib-2.0/glib.h:64,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-1.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/glib/gstrfuncs.h:104: error: syntax error before "g_strlcpy"
/usr/include/glib-2.0/glib/gstrfuncs.h:106: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gstrfuncs.h:106: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gstrfuncs.h:107: error: syntax error before "g_strlcat"
/usr/include/glib-2.0/glib/gstrfuncs.h:109: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gstrfuncs.h:109: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/gstrfuncs.h:111: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstrfuncs.h:116: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstrfuncs.h:156: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gstrfuncs.h:158: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstrfuncs.h:160: error: syntax error before "gssize"
/usr/include/glib-2.0/glib/gstrfuncs.h:188: error: syntax error before "gsize"
/usr/include/glib-2.0/glib/gstrfuncs.h:189: error: syntax error before "length"
In file included from /usr/include/glib-2.0/gobject/gboxed.h:26,
                 from /usr/include/glib-2.0/glib-object.h:25,
                 from /usr/include/pango-1.0/pango/pango-types.h:26,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:33,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/glib-2.0/gobject/gtype.h:310: error: syntax error before "gsize"In file included from /usr/include/gtk-2.0/gdk/gdkcursor.h:5,
                 from /usr/include/gtk-2.0/gdk/gdk.h:31,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:176: error: syntax error before "gsize"
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:199: error: syntax error before "gsize"
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:206: error: syntax error before "gsize"
In file included from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:350,
                 from /usr/include/gtk-2.0/gdk/gdkcursor.h:5,
                 from /usr/include/gtk-2.0/gdk/gdk.h:31,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from skyeye_lcd.c:50:
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:80: error: syntax error before "gsize"
In file included from /usr/include/gtk-2.0/gtk/gtk.h:172,
                 from skyeye_lcd.c:50:
/usr/include/gtk-2.0/gtk/gtkuimanager.h:121: error: syntax error before "gssize"
skyeye_lcd.c:100: warning: useless keyword or type name in empty declaration
skyeye_lcd.c:100: warning: empty declaration
skyeye_lcd.c: In function `expose_event':
skyeye_lcd.c:109: warning: passing arg 10 of `gdk_draw_indexed_image' from incompatible pointer type
skyeye_lcd.c: In function `callback_button_press':
skyeye_lcd.c:144: warning: passing arg 1 of `skPenEvent' from incompatible pointer type
skyeye_lcd.c: In function `callback_button_release':
skyeye_lcd.c:151: warning: passing arg 1 of `skPenEvent' from incompatible pointer type
skyeye_lcd.c: In function `callback_motion_notify':
skyeye_lcd.c:160: warning: passing arg 1 of `skPenEvent' from incompatible pointer type
skyeye_lcd.c: In function `lcd_enable':
skyeye_lcd.c:275: warning: passing arg 1 of `gtk_window_set_title' from incompatible pointer type
skyeye_lcd.c:287: warning: passing arg 1 of `gtk_widget_set_events' from incompatible pointer type
skyeye_lcd.c:329: warning: assignment from incompatible pointer type
skyeye_lcd.c:334: warning: assignment from incompatible pointer type
skyeye_lcd.c:337: warning: assignment from incompatible pointer type
skyeye_lcd.c: In function `lcd_disable':
skyeye_lcd.c:378: warning: passing arg 1 of `gdk_rgb_cmap_free' from incompatible pointer type
make[2]: *** [skyeye_lcd.o] 错误 1
make[1]: *** [all] 错误 2
make: *** [all-sim] 错误 2
________________________________
请帮忙看看什么堤防出错了!!!!!!!!
  
 楼主| 发表于 2004-11-23 20:01:39 | 显示全部楼层
没有人顶!
自己顶一个……………………
回复

使用道具 举报

发表于 2004-11-23 21:36:22 | 显示全部楼层
不要急 等我问一下高手在给你解答
回复

使用道具 举报

 楼主| 发表于 2004-11-23 22:54:45 | 显示全部楼层
我自己来吧!!
根据出错信息看出是系统错误使用了gtk2的config文件.
1)修改
sim/arm/Makefile中的$(CC) -c $< -o skyeye_lcd.o $(ALL_CFLAGS) `pgk-config gtk+2.0 --cflags`为:
$(CC) -c $< -o skyeye_lcd.o $(ALL_CFLAGS) `gtk-config gtk-1.2.0 --cflags`
编译继续出错再改:
首先是修改文件:skyeye_lcd.c中的头文件引用:
#include <gtk/gtk.h>
#include <gdk/gdk.h>//added by ywc为:
#include "/usr/local/include/gtk/gtk.h"
#include "/usr/local/include/gdk/gdk.h"//added by ywc
出错的文件大多是因为函数没有声明就直接调用主要有以下文件:
skyeye_mach_lpc.c:void lpc_io_write_word(ARMul_State *state, ARMword addr, ARMword data)这个文件中的该函数先声明;
文件skyeye_mach_s3c44b0.c:中的两个函数需要声明:
void s3c44b0_io_write_word(ARMul_State *state, ARMword addr, ARMword data);
ARMword s3c44b0_io_read_word(ARMul_State *state, ARMword addr);
还有就是一些switch语句的default后面没有break;(不好意思这样的低级错误我想应该好好看看!!^^)
其他的都是类似文体自给看看错误提示修改就可以了.
make成功了.
提示:fedora core3需要在gnome桌面系统下安装gtk+-1.2*
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 21:48 , Processed in 0.071674 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表