Tomeu Vizoso wrote:
I think you are finding this bug:
https://bugzilla.gnome.org/show_bug.cgi?id=631507
Have added some comments that should help if someone is willing to
look at this issue.
Thanks.
It seems to be a non-fatal error, so I decided to press on
and see what would happen. I managed to get what appears to
be a working gi module, however I can't import
gi.repository.Gtk because there is no .gir file installed
for Gtk.
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:
/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/