[cairo] Build problems under Win32/Mingw and Mac OS X 10.3

Tim Teulings rael at edge.ping.de
Fri Aug 11 14:33:09 PDT 2006


Hello!

Here are more details:

configure does not detect quartz by default. I have to call it with

--enable-quartz --enable-atsui.

Is this possibly intentional?

This results on my system in the following configuration (X11 is 
installed, aslo libpng):

   image:         yes (always builtin)
   Xlib:          yes
   Xlib Xrender:  no (requires Xrender 
http://freedesktop.org/Software/xlibs)
   Quartz:        yes
   XCB:           no (disabled, use --enable-xcb to enable)
   Win32:         no (requires a Win32 platform)
   PostScript:    yes
   PDF:           yes
   SVG:           yes
   glitz:         no (disabled, use --enable-glitz to enable)
   BeOS:          no (disabled, use --enable-beos to enable)
   DirectFB:      no (disabled, use --enable-directfb to enable)

the following font backends:
   FreeType:      no (freetype-config not found in path or 
$FREETYPE_CONFIG)
   Win32:         no (requires a Win32 platform)
   ATSUI:         yes

the following features:
   PNG functions: yes

and the following debug options:
   gcov support:  no
   test surfaces: no

This results in the following compile error:
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src 
-I/sw/include/libpng12 -I/usr/X11R6/include -Wall -Wsign-compare 
-Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings 
-Wswitch-enum -Wpacked -Wmissing-format-attribute -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs 
-fno-strict-aliasing -g -O2 -MT cairo-xlib-surface.lo -MD -MP -MF 
.deps/cairo-xlib-surface.Tpo -c cairo-xlib-surface.c  -fno-common -DPIC 
-o .libs/cairo-xlib-surface.o
cairo-xlib-surface.c: In function `_CAIRO_FORMAT_TO_XRENDER_FORMAT':
cairo-xlib-surface.c:196: error: `PictStandardA1' undeclared (first use 
in this function)
cairo-xlib-surface.c:196: error: (Each undeclared identifier is 
reported only once
cairo-xlib-surface.c:196: error: for each function it appears in.)
cairo-xlib-surface.c:198: error: `PictStandardA8' undeclared (first use 
in this function)
cairo-xlib-surface.c:200: error: `PictStandardRGB24' undeclared (first 
use in this function)
cairo-xlib-surface.c:203: error: `PictStandardARGB32' undeclared (first 
use in this function)
cairo-xlib-surface.c:205: error: implicit declaration of function 
`XRenderFindStandardFormat'
cairo-xlib-surface.c:205: warning: return makes pointer from integer 
without a cast
cairo-xlib-surface.c:204: warning: enumeration value 
`CAIRO_FORMAT_RGB16_565' not handled in switch
cairo-xlib-surface.c: In function `_cairo_xlib_surface_set_matrix':
cairo-xlib-surface.c:903: error: `XTransform' undeclared (first use in 
this function)
cairo-xlib-surface.c:903: error: parse error before "xtransform"
cairo-xlib-surface.c:908: error: `xtransform' undeclared (first use in 
this function)
cairo-xlib-surface.c:922: error: syntax error before "identity"
cairo-xlib-surface.c:928: error: `identity' undeclared (first use in 
this function)
cairo-xlib-surface.c: At top level:
cairo-xlib-surface.c:934: error: parse error before '->' token
cairo-xlib-surface.c:934: warning: type defaults to `int' in 
declaration of `XRenderSetPictureTransform'
cairo-xlib-surface.c:934: warning: function declaration isn't a 
prototype
cairo-xlib-surface.c:934: warning: data definition has no type or 
storage class
cairo-xlib-surface.c: In function `_cairo_xlib_surface_set_filter':
cairo-xlib-surface.c:958: error: `FilterFast' undeclared (first use in 
this function)
cairo-xlib-surface.c:961: error: `FilterGood' undeclared (first use in 
this function)
cairo-xlib-surface.c:964: error: `FilterBest' undeclared (first use in 
this function)
cairo-xlib-surface.c:967: error: `FilterNearest' undeclared (first use 
in this function)
cairo-xlib-surface.c:970: error: `FilterBilinear' undeclared (first use 
in this function)
cairo-xlib-surface.c:983: error: implicit declaration of function 
`XRenderSetPictureFilter'
cairo-xlib-surface.c: In function `_create_a8_picture':
cairo-xlib-surface.c:1463: error: `PictStandardA8' undeclared (first 
use in this function)
cairo-xlib-surface.c:1464: warning: passing arg 3 of 
`XRenderCreatePicture' makes pointer from integer without a cast
cairo-xlib-surface.c: In function `_create_trapezoid_mask':
cairo-xlib-surface.c:1488: error: `XTrapezoid' undeclared (first use in 
this function)
cairo-xlib-surface.c:1488: error: `offset_traps' undeclared (first use 
in this function)
cairo-xlib-surface.c:1518: error: implicit declaration of function 
`XRenderCompositeTrapezoids'
cairo-xlib-surface.c: In function 
`_cairo_xlib_surface_composite_trapezoids':
cairo-xlib-surface.c:1575: error: `PictStandardA1' undeclared (first 
use in this function)
cairo-xlib-surface.c:1575: warning: assignment makes pointer from 
integer without a cast
cairo-xlib-surface.c:1581: error: `PictStandardA8' undeclared (first 
use in this function)
cairo-xlib-surface.c:1581: warning: assignment makes pointer from 
integer without a cast
cairo-xlib-surface.c:1647: error: `XTrapezoid' undeclared (first use in 
this function)
cairo-xlib-surface.c:1647: error: parse error before ')' token
cairo-xlib-surface.c: In function `_cairo_xlib_surface_create_internal':
cairo-xlib-surface.c:1851: error: `PictStandardA1' undeclared (first 
use in this function)
cairo-xlib-surface.c:1851: warning: assignment makes pointer from 
integer without a cast
cairo-xlib-surface.c: In function `_cairo_xlib_surface_add_glyph':
cairo-xlib-surface.c:2469: warning: enumeration value 
`CAIRO_FORMAT_RGB16_565' not handled in switch
make[3]: *** [cairo-xlib-surface.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

After that I disabled xlib support and recompiled cairo (after a make 
clean).

The build in this cases fails again:

  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src 
-I/sw/include/libpng12 -Wall -Wsign-compare 
-Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings 
-Wswitch-enum -Wpacked -Wmissing-format-attribute -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs 
-fno-strict-aliasing -g -O2 -MT cairo-quartz-surface.lo -MD -MP -MF 
.deps/cairo-quartz-surface.Tpo -c cairo-quartz-surface.c  -fno-common 
-DPIC -o .libs/cairo-quartz-surface.o
cairo-quartz-surface.c: In function 
`_cairo_quartz_surface_acquire_source_image':
cairo-quartz-surface.c:58: error: implicit declaration of function 
`CGBitmapContextGetBitmapInfo'
make[3]: *** [cairo-quartz-surface.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Is somebody has an idea or even some code to test, I'm will to help.

-- 
Gruß...Tim



More information about the cairo mailing list