pycairo cvs as of today fails to build with: pycairo-pattern.c: In function `PycairoPattern_FromPattern': pycairo-pattern.c:62: warning: implicit declaration of function `cairo_pattern_get_type' pycairo-pattern.c:63: error: `CAIRO_PATTERN_TYPE_SOLID' undeclared (first use in this function) pycairo-pattern.c:63: error: (Each undeclared identifier is reported only once pycairo-pattern.c:63: error: for each function it appears in.) pycairo-pattern.c:66: error: `CAIRO_PATTERN_TYPE_SURFACE' undeclared (first use in this function) pycairo-pattern.c:69: error: `CAIRO_PATTERN_TYPE_LINEAR' undeclared (first use in this function) pycairo-pattern.c:72: error: `CAIRO_PATTERN_TYPE_RADIAL' undeclared (first use in this function) make[2]: *** [_cairo_la-pycairo-pattern.lo] Error 1 make[2]: Leaving directory `/floss/building/gnome/pycairo/cairo' make[1]: *** [all-recursive] Error 1
What version of cairo are you compiling against? Pycairo cvs is being developed to track changes in cairo (now using git, not cvs). If you update your cairo files you should find that pycairo will compile.
Ah, oops, I'm still building cairo from cvs (as are a bunch of other testers of Gnome since that's what jhbuild does). So, I guess I need to file a bug against jhbuild. Sorry for the noise.
For anyone who runs across this bug and also uses jhbuild: I filed http://bugzilla.gnome.org/show_bug.cgi?id=333425 against jhbuild to request using git instead of cvs for obtaining cairo.
*** Bug 6282 has been marked as a duplicate of this bug. ***
It seems that pycairo CVS HEAD is targeting the development branch of cairo, i.e. cairo 1.1 (or cairo master in git). pycairo release 1.0.2 will however compile against cairo 1.0.4. Is there a branch in CVS for pycairo that corresponds to the stable branch of cairo, i.e. cairo 1.0? (or cairo 1.0 in git)
Yes, pycairo cvs is developed to work with the development branch of cairo. There's no branch in pycairo to correspond to the stable branch of cairo, but each pycairo release is tagged. The last release has the tag RELEASE_1_0_2 and it works with cairo 1.0.2 and 1.0.4
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.