Re: [pygtk] Problem compiling gobject-introspection on Snow Leopard

2011-03-21 Thread Tomeu Vizoso
On Sun, Mar 20, 2011 at 00:52, Greg Ewing greg.ew...@canterbury.ac.nz wrote:
 I'm trying to compile gobject-introspection-0.10.4 on
 MacOSX 10.6.4 and getting the following errors:

 /usr/include/libkern/i386/_OSByteOrder.h:49: syntax error, unexpected '{',
 expecting ',' or ';' in '{' at '{'
 /usr/include/libkern/i386/_OSByteOrder.h:58: syntax error, unexpected '{',
 expecting ',' or ';' in '{' at '{'
 /usr/include/libkern/i386/_OSByteOrder.h:96: syntax error, unexpected '{',
 expecting ',' or ';' in '{' at '{'

 Anyone know what's going on here?

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.

Regards,

Tomeu

 --
 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/


Re: [pygtk] Problem compiling gobject-introspection on Snow Leopard

2011-03-21 Thread Greg Ewing

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/


Re: [pygtk] Problem compiling gobject-introspection on Snow Leopard

2011-03-21 Thread Tomeu Vizoso
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/


[pygtk] Problem compiling gobject-introspection on Snow Leopard

2011-03-19 Thread Greg Ewing

I'm trying to compile gobject-introspection-0.10.4 on
MacOSX 10.6.4 and getting the following errors:

/usr/include/libkern/i386/_OSByteOrder.h:49: syntax error, unexpected '{', 
expecting ',' or ';' in '{' at '{'
/usr/include/libkern/i386/_OSByteOrder.h:58: syntax error, unexpected '{', 
expecting ',' or ';' in '{' at '{'
/usr/include/libkern/i386/_OSByteOrder.h:96: syntax error, unexpected '{', 
expecting ',' or ';' in '{' at '{'


Anyone know what's going on here?

--
Greg
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/