On Mon, Mar 21, 2011 at 09:31, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: > Tomeu Vizoso wrote: > > After some hunting around I found the gir-repository package, > which looks like it should help, so I tried to compile and > install it. However, it fails trying to generate .gir files > for Gtk-2.22:
Hi, gir-repository is deprecated and shouldn't be used any more. About Gtk-2.22, I recommend you to try with 3.0, which is were most efforts are going right now to make it work with g-i. Regards, Tomeu > /usr/local/bin/g-ir-scanner -v --namespace Gdk --nsversion=2.0 \ > --add-include-path=. --add-include-path=. \ > --include=Gio-2.0 \ > --include=cairo-1.0 \ > --include=Pango-1.0 \ > --include=xlib-2.0 \ > --include=GdkPixbuf-2.0 \ > --library=gdk-x11-2.0 \ > --library=libgirepo-Gdk-custom.la \ > --libtool="/bin/sh ../libtool" \ > --output Gdk-2.0.gir \ > --pkg gobject-2.0 \ > --pkg gio-2.0 \ > --pkg cairo \ > --pkg atk \ > --pkg pango \ > --pkg gdk-x11-2.0 \ > -DGDK_COMPILATION \ > ./Gdk-custom.c ./Gdk-custom.h \ > `pkg-config --variable=includedir gdk-x11-2.0`/gtk-2.0/gdk/*.h > /usr/include/stdlib.h:272: syntax error, unexpected '^' in 'int > atexit_b(void (^)(void));' at '^' > > [.. several other non-fatal error messsages omitted ...] > > Namespace conflict for 'Display' > make[2]: *** [Gdk-2.0.gir] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > This last problem is fatal, so I'm stuck. > > I'm wondering whether I should attempt to install Gtk 3. Does > anyone know whether it installs its own .gir files, or is > still dependent on gir-repository? > > -- > Greg > _______________________________________________ > pygtk mailing list pygtk@daa.com.au > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/