[cairo] Compile Errors
Peter Dennis Bartok
peter at novonyx.com
Mon Sep 6 01:14:11 PDT 2004
I can't help you much with the below error message (other than mentioning
that it looks like you are out of sync between glitz and cairo), but be
aware that libgdiplus from Mono has a copy of an internal struct that has
changed in cairo CVS. You will crash when trying to run Mono cvs with Cairo
cvs. In gdip.h there's a copy of a cairo font structure (I have no access to
my mono or cairos sources at the moment so I can't be more specific) Cairo
added a font cache pointer, you need to uncomment the appropriate line in
gdip.h to match again.
From: "David P. Donahue" <ddonahue at ccs.neu.edu>
To: <cairo at cairographics.org>
Date: Sunday, 05 September, 2004 23:23
Subject: [cairo] Compile Errors
>Please forgive any ignorance I may have on the subject, but I just
>downloaded Cairo and its dependencies, built the required dependencies
>just fine, but get the following errors when I attempt to build Cairo:
>cairo_gl_surface.c: In function `_cairo_gl_surface_get_image':
>cairo_gl_surface.c:133: error: structure has no member named `bpp'
>cairo_gl_surface.c:140: error: structure has no member named `bpp'
>cairo_gl_surface.c:141: error: structure has no member named `red_mask'
>cairo_gl_surface.c:142: error: structure has no member named
>cairo_gl_surface.c:143: error: structure has no member named `blue_mask'
>cairo_gl_surface.c:144: error: structure has no member named
>cairo_gl_surface.c: In function `_cairo_gl_surface_create_similar':
>cairo_gl_surface.c:326: error: incompatible type for argument 2 of
>cairo_gl_surface.c: In function `_cairo_gl_surface_create_pattern':
>cairo_gl_surface.c:680: error: `glitz_distance_fixed_t' undeclared
>(first use in this function)
>cairo_gl_surface.c:680: error: (Each undeclared identifier is reported
>cairo_gl_surface.c:680: error: for each function it appears in.)
>cairo_gl_surface.c:680: error: parse error before "radius"
>cairo_gl_surface.c:686: error: `radius' undeclared (first use in this
>cairo_gl_surface.c:692: warning: passing arg 3 of
>`glitz_surface_create_radial' makes integer from pointer without a cast
>cairo_gl_surface.c:692: error: too few arguments to function
>make: *** [cairo_gl_surface.lo] Error 1
>make: Leaving directory `/usr/src/cairo-0.1.22/src'
>make: *** [all-recursive] Error 1
>make: Leaving directory `/usr/src/cairo-0.1.22'
>make: *** [all] Error 2
>Any ideas on what I should do? If it's of any use, I'm attempting to
>build Cairo for use of the System.Drawing libraries in Mono. Also, I'm
>running a fresh and full install of Slackware 10.0.
>David P. Donahue
>ddonahue at ccs.neu.edu
>cairo mailing list
>cairo at cairographics.org
More information about the cairo