From: Axel S. <A....@ke...> - 2006-10-17 19:43:43
|
Duncan, before I delve too deep into the Perl script or XML processing, I get #import <Cocoa/Cocoa.h> NSArray *_gtk_quartz_target_list_to_pasteboard_types (GtkTargetList *target_list); owner_change at ./gapi2xml.pl line 982, <STDIN> line 64385. I/O warning : failed to load external entity "gtk-api.xml.pre" ** (process:23715): WARNING **: File gtk-api.xml.pre empty or not well-formed. ./ApiGen gtk-api.xml Template.chs --outdir=gtk-modules --doc=gtk-docs.xml --includeapi=gdk-api.xml --includeapi=pango-api.xml --includeapi=atk-api.xml --includeapi=gobject-api.xml --includeapi=glib-api.xml --excludeapi=gtk.ignore --modprefix=Graphics.UI.Gtk.{-Category-} --scanmodules=../../gtk/Graphics/UI/Gtk --excludescan=../../gtk/Graphics/UI/Gtk/Pango --excludescan=../../gtk/Graphics/UI/Gtk/GdkApiGen: gtk-api.xml: openFile: does not exist (No such file or directory) when asking for 'make gtk-modules'. It doesn't seem to be as simple as adding such a file, at least the Perl script will silently delete an empty or nearly empty file of that name and still return the same error? Do you know about this? Axel. |
From: Duncan C. <dun...@wo...> - 2006-10-17 20:25:01
|
On Tue, 2006-10-17 at 20:43 +0100, Axel Simon wrote: > Duncan, > > before I delve too deep into the Perl script or XML processing, I get > > #import <Cocoa/Cocoa.h> NSArray > *_gtk_quartz_target_list_to_pasteboard_types (GtkTargetList > *target_list); > owner_change at ./gapi2xml.pl line 982, <STDIN> line 64385. > I/O warning : failed to load external entity "gtk-api.xml.pre" So it's failing parsing and then not writing out a file that the next step needs. Where does this #import <Cocoa/Cocoa.h> come from? That's not in the version of gtk that I've tried. Are you trying Gtk+ 2.10.x ? If so, the parser is probably choking on something new in there. I'd stick to 2.8.x just for the moment. Duncan |
From: Axel S. <A....@ke...> - 2006-10-17 20:45:23
|
On Tue, 2006-10-17 at 21:23 +0100, Duncan Coutts wrote: > On Tue, 2006-10-17 at 20:43 +0100, Axel Simon wrote: > > Duncan, > > > > before I delve too deep into the Perl script or XML processing, I get > > > > #import <Cocoa/Cocoa.h> NSArray > > *_gtk_quartz_target_list_to_pasteboard_types (GtkTargetList > > *target_list); > > owner_change at ./gapi2xml.pl line 982, <STDIN> line 64385. > > I/O warning : failed to load external entity "gtk-api.xml.pre" > > So it's failing parsing and then not writing out a file that the next > step needs. > > Where does this #import <Cocoa/Cocoa.h> come from? That's not in the > version of gtk that I've tried. Are you trying Gtk+ 2.10.x ? Uh, yes, indeed. I'm trying to use 2.10.6. I get much more than that, it starts off with this: chmod ug+x gapi_parser.pl chmod ug+x gapi_pp.pl chmod ug+x gapi2xml.pl PATH=.:$PATH ./gapi_parser.pl gtk-sources.xml <dir gtk/gtk> <exclude gtk/gtk/gtkclipboard.c> <exclude gtk/gtk/gtkfilechooserdefault.c> <exclude gtk/gtk/gtkfilechooserdefault.h> <exclude gtk/gtk/gtkfilechooserentry.c> <exclude gtk/gtk/gtkfilechooserentry.h> <exclude gtk/gtk/gtkfilechooserutils.c> <exclude gtk/gtk/gtkfilechooserutils.h> <exclude gtk/gtk/gtkfilesystem.c> <exclude gtk/gtk/gtkfilesystem.h> <exclude gtk/gtk/gtkfilesystemmodel.c> <exclude gtk/gtk/gtkfilesystemmodel.h> <exclude gtk/gtk/gtkfilesystemunix.c> <exclude gtk/gtk/gtkfilesystemunix.h> <exclude gtk/gtk/gtkfilesystemwin32.c> <exclude gtk/gtk/gtkfilesystemwin32.h> <exclude gtk/gtk/gtkiconcache.c> <exclude gtk/gtk/gtkiconcache.h> <exclude gtk/gtk/gtkiconthemeparser.h> <exclude gtk/gtk/gtkpathbar.c> <exclude gtk/gtk/gtkpathbar.h> <exclude gtk/gtk/gtkrbtree.c> <exclude gtk/gtk/gtkrbtree.h> <exclude gtk/gtk/gtksequence.c> <exclude gtk/gtk/gtksequence.h> <exclude gtk/gtk/gtktextbtree.c> <exclude gtk/gtk/gtktextbtree.h> <exclude gtk/gtk/gtktextsegment.c> <exclude gtk/gtk/gtktextsegment.h> <exclude gtk/gtk/gtktexttypes.c> <exclude gtk/gtk/gtktexttypes.h> <exclude gtk/gtk/gtktextutil.c> <exclude gtk/gtk/gtktextutil.h> <exclude gtk/gtk/gtkthemes.c> <exclude gtk/gtk/gtkthemes.h> <exclude gtk/gtk/gtktreedatalist.c> <exclude gtk/gtk/gtktreedatalist.h> <exclude gtk/gtk/gtkwindow-decorate.c> <exclude gtk/gtk/gtkwindow-decorate.h> <exclude gtk/gtk/gtkxembed.h> <exclude gtk/gtk/xembed.h> #if IN_HEADER(__GTK_ABOUT_DIALOG_H__) #if IN_FILE(__GTK_ABOUT_DIALOG_C__) extern __typeof (gtk_show_about_dialog) IA__gtk_show_about_dialog __attribute((visibility("hidden"))) G_GNUC_NULL_TERMINATED; #if IN_HEADER(__GTK_ACCEL_GROUP_H__) #if IN_FILE(__GTK_ACCEL_GROUP_C__) extern __typeof (gtk_accelerator_get_default_mod_mask) IA__gtk_accelerator_get_default_mod_mask __attribute((visibility("hidden"))); #if IN_HEADER(__GTK_ACCEL_LABEL_H__) #if IN_FILE(__GTK_ACCEL_LABEL_C__) extern __typeof (gtk_accel_label_get_accel_widget) IA__gtk_accel_label_get_accel_widget __attribute((visibility("hidden"))); #if IN_HEADER(__GTK_ACCEL_MAP_H__) #if IN_FILE(__GTK_ACCEL_MAP_C__) extern __typeof (gtk_accel_map_add_entry) IA__gtk_accel_map_add_entry __attribute((visibility("hidden"))); and much more after this. > If so, the parser is probably choking on something new in there. I'd > stick to 2.8.x just for the moment. That's a pity. So we have to wait until the gtk# people fix this? Axel. |
From: Duncan C. <dun...@wo...> - 2006-10-17 21:14:34
|
On Tue, 2006-10-17 at 21:44 +0100, Axel Simon wrote: > On Tue, 2006-10-17 at 21:23 +0100, Duncan Coutts wrote: > > On Tue, 2006-10-17 at 20:43 +0100, Axel Simon wrote: > > > Duncan, > > > > > > before I delve too deep into the Perl script or XML processing, I get > > > > > > #import <Cocoa/Cocoa.h> NSArray > > > *_gtk_quartz_target_list_to_pasteboard_types (GtkTargetList > > > *target_list); > > > owner_change at ./gapi2xml.pl line 982, <STDIN> line 64385. > > > I/O warning : failed to load external entity "gtk-api.xml.pre" > > > > So it's failing parsing and then not writing out a file that the next > > step needs. > > > > Where does this #import <Cocoa/Cocoa.h> come from? That's not in the > > version of gtk that I've tried. Are you trying Gtk+ 2.10.x ? > > Uh, yes, indeed. I'm trying to use 2.10.6. I get much more than that, it > starts off with this: > > chmod ug+x gapi_parser.pl > chmod ug+x gapi_pp.pl > chmod ug+x gapi2xml.pl > PATH=.:$PATH ./gapi_parser.pl gtk-sources.xml > <dir gtk/gtk> <exclude gtk/gtk/gtkclipboard.c> <exclude > gtk/gtk/gtkfilechooserdefault.c> <exclude > gtk/gtk/gtkfilechooserdefault.h> <exclude gtk/gtk/gtkfilechooserentry.c> > <exclude gtk/gtk/gtkfilechooserentry.h> <exclude > gtk/gtk/gtkfilechooserutils.c> <exclude gtk/gtk/gtkfilechooserutils.h> > <exclude gtk/gtk/gtkfilesystem.c> <exclude gtk/gtk/gtkfilesystem.h> > <exclude gtk/gtk/gtkfilesystemmodel.c> <exclude > gtk/gtk/gtkfilesystemmodel.h> <exclude gtk/gtk/gtkfilesystemunix.c> > <exclude gtk/gtk/gtkfilesystemunix.h> <exclude > gtk/gtk/gtkfilesystemwin32.c> <exclude gtk/gtk/gtkfilesystemwin32.h> > <exclude gtk/gtk/gtkiconcache.c> <exclude gtk/gtk/gtkiconcache.h> > <exclude gtk/gtk/gtkiconthemeparser.h> <exclude gtk/gtk/gtkpathbar.c> > <exclude gtk/gtk/gtkpathbar.h> <exclude gtk/gtk/gtkrbtree.c> <exclude > gtk/gtk/gtkrbtree.h> <exclude gtk/gtk/gtksequence.c> <exclude > gtk/gtk/gtksequence.h> <exclude gtk/gtk/gtktextbtree.c> <exclude > gtk/gtk/gtktextbtree.h> <exclude gtk/gtk/gtktextsegment.c> <exclude > gtk/gtk/gtktextsegment.h> <exclude gtk/gtk/gtktexttypes.c> <exclude > gtk/gtk/gtktexttypes.h> <exclude gtk/gtk/gtktextutil.c> <exclude > gtk/gtk/gtktextutil.h> <exclude gtk/gtk/gtkthemes.c> <exclude > gtk/gtk/gtkthemes.h> <exclude gtk/gtk/gtktreedatalist.c> <exclude > gtk/gtk/gtktreedatalist.h> <exclude gtk/gtk/gtkwindow-decorate.c> > <exclude gtk/gtk/gtkwindow-decorate.h> <exclude gtk/gtk/gtkxembed.h> > <exclude gtk/gtk/xembed.h> > #if IN_HEADER(__GTK_ABOUT_DIALOG_H__) #if > IN_FILE(__GTK_ABOUT_DIALOG_C__) extern __typeof (gtk_show_about_dialog) > IA__gtk_show_about_dialog __attribute((visibility("hidden"))) > G_GNUC_NULL_TERMINATED; > #if IN_HEADER(__GTK_ACCEL_GROUP_H__) #if IN_FILE(__GTK_ACCEL_GROUP_C__) > extern __typeof (gtk_accelerator_get_default_mod_mask) > IA__gtk_accelerator_get_default_mod_mask > __attribute((visibility("hidden"))); > #if IN_HEADER(__GTK_ACCEL_LABEL_H__) #if IN_FILE(__GTK_ACCEL_LABEL_C__) > extern __typeof (gtk_accel_label_get_accel_widget) > IA__gtk_accel_label_get_accel_widget > __attribute((visibility("hidden"))); > #if IN_HEADER(__GTK_ACCEL_MAP_H__) #if IN_FILE(__GTK_ACCEL_MAP_C__) > extern __typeof (gtk_accel_map_add_entry) IA__gtk_accel_map_add_entry > __attribute((visibility("hidden"))); > > and much more after this. Yeah ,we get loads of output for most versions. Not all of it is fatal :-) > > If so, the parser is probably choking on something new in there. I'd > > stick to 2.8.x just for the moment. > > That's a pity. So we have to wait until the gtk# people fix this? Well I'll probably have a go some time, but I think we should separate the signals changes from gtk+ 2.10 changes. It's easier to see what's actually changed if we do less at once. I'd quite like to aim for an earlier rather than later release. We can release more often than we have in the past, that's no problem. What I'd try to get it working is playing with the <exclude> stuff in gtk-sources.xml . By a process of elimination you can work out which file is the problem and often it's in an irrelevant one so excluding it is ok. Duncan |