I have toiled and toiled at this using a fresh racy 522 with the devx - which has Python 2.6.4 in it as standard. I am keen to use Python with the new Pygobject bindings to Gtk but it is ridiculously hard to compile a usable set up!! The docs say to use jhbuild - which I tried and failed as it cannot be run as root I understand this would make a sandbox install anyway and want it to be a full install without a pile of duplication. What a heck of a mess gnome is!
First stop was to update glib to 2.30.2 - this went well, then gobject-introspection-1.31.20 was a battle - it won't configure if you have installed python 3.2.2 first as configure uses python print sys.exec to get the exec directory - and the syntax for python 3 is print (sys.exec) not parens -even after figuring out this I got into trouble I couldn't get out of so I deleted my pupsave.sfs and started again.... using the Python 2.6.4 from the devx until this point. Then Python 3.2.2 - I think I got this.... then I changed /usr/bin/python - which was the devx python 2.6.4 binary to link to the new /usr/bin/python3.2m as /usr/bin/python .... then pycairo for python 3 required before you can compile pygobject. Went ok - uses a waf build but seemed to work ok - but was very quick? Now pygobject-3.0.4 the final frontier ... ./configure --prefix=/usr ... all good .... make FAILS miserably, devastatingly with:
Code: Select all
CC _gi_cairo_la-pygi-foreign-cairo.lo
pygi-foreign-cairo.c:28:21: error: pycairo.h: No such file or directory
pygi-foreign-cairo.c:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
pygi-foreign-cairo.c: In function 'cairo_context_to_arg':
pygi-foreign-cairo.c:49: warning: implicit declaration of function 'PycairoContext_GET'
pygi-foreign-cairo.c:49: warning: assignment makes pointer from integer without a cast
pygi-foreign-cairo.c: In function 'cairo_context_from_arg':
pygi-foreign-cairo.c:65: warning: implicit declaration of function 'PycairoContext_FromContext'
pygi-foreign-cairo.c:65: error: 'PycairoContext_Type' undeclared (first use in this function)
pygi-foreign-cairo.c:65: error: (Each undeclared identifier is reported only once
pygi-foreign-cairo.c:65: error: for each function it appears in.)
pygi-foreign-cairo.c:65: warning: return makes pointer from integer without a cast
pygi-foreign-cairo.c: In function 'cairo_surface_to_arg':
pygi-foreign-cairo.c:87: error: 'PycairoSurface' undeclared (first use in this function)
pygi-foreign-cairo.c:87: error: expected expression before ')' token
pygi-foreign-cairo.c: In function 'cairo_surface_from_arg':
pygi-foreign-cairo.c:104: warning: implicit declaration of function 'PycairoSurface_FromSurface'
pygi-foreign-cairo.c:104: warning: return makes pointer from integer without a cast
pygi-foreign-cairo.c: At top level:
pygi-foreign-cairo.c:115: warning: missing braces around initializer
pygi-foreign-cairo.c:115: warning: (near initialization for '_gi_cairo_functions[0]')
pygi-foreign-cairo.c: In function 'init_gi_cairo':
pygi-foreign-cairo.c:119: error: 'Pycairo_IMPORT' undeclared (first use in this function)
pygi-foreign-cairo.c:124: error: 'Pycairo_CAPI' undeclared (first use in this function)
make[3]: *** [_gi_cairo_la-pygi-foreign-cairo.lo] Error 1
make[3]: Leaving directory `/root/my-applications/pygobject-3.0.4/gi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/my-applications/pygobject-3.0.4/gi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/my-applications/pygobject-3.0.4'
make: *** [all] Error 2
#
Appreciate any pointers guys
Grrrrrr