[cairo] Compile Errors

David P. Donahue ddonahue at ccs.neu.edu
Fri Sep 10 16:54:51 PDT 2004


I just grabbed caira via CVS (ignorance alert... My first time using
CVS.  Are the commands on http://www.freedesktop.org/Software/glitz what
I wanted?).  However, I'm still getting compile errors from cairo after
putting in the new glitz.  The errors are pasted below.  Is this a new
problem?  Am I doing something wrong?  Or is support not ready yet?  I
really appreciate any help you can give me, thanks!


----------BEGIN PASTE----------
cairo_gl_surface.c: In function `cairo_set_target_gl':
cairo_gl_surface.c:42: error: `GLITZ_HINT_PROGRAMMATIC_MASK' undeclared
(first use in this function)
cairo_gl_surface.c:42: error: (Each undeclared identifier is reported
only once
cairo_gl_surface.c:42: error: for each function it appears in.)
cairo_gl_surface.c: In function `_cairo_gl_surface_get_image':
cairo_gl_surface.c:126: error: `GLITZ_HINT_PROGRAMMATIC_MASK' undeclared
(first use in this function)
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
`green_mask'
cairo_gl_surface.c:143: error: structure has no member named `blue_mask'
cairo_gl_surface.c:144: error: structure has no member named
`alpha_mask'
cairo_gl_surface.c: In function `_cairo_gl_surface_set_filter':
cairo_gl_surface.c:200: error: syntax error before "gaussian"
cairo_gl_surface.c: At top level:
cairo_gl_surface.c:207: error: `abstract_surface' undeclared here (not
in a function)
cairo_gl_surface.c:209: error: parse error before '*' token
cairo_gl_surface.c:209: warning: data definition has no type or storage
class
cairo_gl_surface.c:211: error: parse error before "if"
cairo_gl_surface.c:238: error: parse error before '->' token
cairo_gl_surface.c:238: error: conflicting types for
`glitz_surface_set_filter'
/usr/local/include/glitz.h:211: error: previous declaration of
`glitz_surface_set_filter'
cairo_gl_surface.c:238: warning: data definition has no type or storage
class
cairo_gl_surface.c:239: error: parse error before '->' token
cairo_gl_surface.c:239: warning: data definition has no type or storage
class
cairo_gl_surface.c: In function `_cairo_gl_surface_create_similar':
cairo_gl_surface.c:326: error: incompatible type for argument 2 of
`glitz_surface_create_similar'
cairo_gl_surface.c: In function `_cairo_gl_surface_composite':
cairo_gl_surface.c:387: error: `GLITZ_HINT_OFFSCREEN_MASK' undeclared
(first use in this function)
cairo_gl_surface.c:388: error: `GLITZ_FEATURE_OFFSCREEN_DRAWING_MASK'
undeclared (first use in this function)
cairo_gl_surface.c:394: error: `GLITZ_FEATURE_ARB_FRAGMENT_PROGRAM_MASK'
undeclared (first use in this function)
cairo_gl_surface.c: In function `_cairo_gl_surface_fill_rectangles':
cairo_gl_surface.c:445: error: `GLITZ_HINT_OFFSCREEN_MASK' undeclared
(first use in this function)
cairo_gl_surface.c:446: error: `GLITZ_FEATURE_OFFSCREEN_DRAWING_MASK'
undeclared (first use in this function)
cairo_gl_surface.c: In function `_cairo_gl_surface_fill_trapezoids':
cairo_gl_surface.c:480: error: `glitz_trapezoid_t' undeclared (first use
in this function)
cairo_gl_surface.c:480: error: parse error before ')' token
cairo_gl_surface.c: In function
`_cairo_gl_surface_composite_trapezoids':
cairo_gl_surface.c:500: error: `GLITZ_HINT_OFFSCREEN_MASK' undeclared
(first use in this function)
cairo_gl_surface.c:501: error: `GLITZ_FEATURE_OFFSCREEN_DRAWING_MASK'
undeclared (first use in this function)
cairo_gl_surface.c:516: error: `GLITZ_HINT_CLIPPING_MASK' undeclared
(first use in this function)
cairo_gl_surface.c:532: error: `glitz_trapezoid_t' undeclared (first use
in this function)
cairo_gl_surface.c:532: error: parse error before ')' token
cairo_gl_surface.c: In function `_cairo_gl_surface_create_pattern':
cairo_gl_surface.c:599: warning: assignment makes pointer from integer
without a cast
cairo_gl_surface.c:605: error: `glitz_color_range_t' undeclared (first
use in this function)
cairo_gl_surface.c:605: error: `color_range' undeclared (first use in
this function)
cairo_gl_surface.c:607: error: `GLITZ_FEATURE_ARB_FRAGMENT_PROGRAM_MASK'
undeclared (first use in this function)
cairo_gl_surface.c:642: error: `GLITZ_FEATURE_TEXTURE_NPOT_MASK'
undeclared (first use in this function)
cairo_gl_surface.c:651: warning: passing arg 2 of
`_cairo_gl_create_color_range' makes pointer from integer without a cast
cairo_gl_surface.c:655: error: `GLITZ_EXTEND_REPEAT' undeclared (first
use in this function)
cairo_gl_surface.c:658: error: `GLITZ_EXTEND_REFLECT' undeclared (first
use in this function)
cairo_gl_surface.c:661: error: `GLITZ_EXTEND_PAD' undeclared (first use
in this function)
cairo_gl_surface.c:666: error: `glitz_point_fixed_t' undeclared (first
use in this function)
cairo_gl_surface.c:666: error: parse error before "start"
cairo_gl_surface.c:669: error: `start' undeclared (first use in this
function)
cairo_gl_surface.c:673: error: `stop' undeclared (first use in this
function)
cairo_gl_surface.c:677: warning: assignment makes pointer from integer
without a cast
cairo_gl_surface.c:679: error: parse error before "center"
cairo_gl_surface.c:680: error: `glitz_distance_fixed_t' undeclared
(first use in this function)
cairo_gl_surface.c:682: error: `center' undeclared (first use in this
function)
cairo_gl_surface.c:686: error: `radius' undeclared (first use in this
function)
cairo_gl_surface.c:692: warning: assignment makes pointer from integer
without a cast
cairo_gl_surface.c: In function `_cairo_gl_surface_set_clip_region':
cairo_gl_surface.c:743: error: `GLITZ_CLIP_OPERATOR_SET' undeclared
(first use in this function)
make[2]: *** [cairo_gl_surface.lo] Error 1
make[2]: Leaving directory `/usr/src/cairo-0.1.22/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/cairo-0.1.22'
make: *** [all] Error 2
-----------END PASTE-----------



-----Original Message-----
From: David Reveman [mailto:c99drn at cs.umu.se] 
Sent: Monday, September 06, 2004 7:05 PM
To: David P. Donahue
Cc: Cairo List
Subject: Re: [cairo] Compile Errors


On Mon, 2004-09-06 at 00:58 -0400, David P. Donahue wrote:
> 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:
> 
> ----------BEGIN PASTE----------
> 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
> `green_mask'
> cairo_gl_surface.c:143: error: structure has no member named
`blue_mask'
> cairo_gl_surface.c:144: error: structure has no member named
> `alpha_mask'
> cairo_gl_surface.c: In function `_cairo_gl_surface_create_similar':
> cairo_gl_surface.c:326: error: incompatible type for argument 2 of
> `glitz_surface_create_similar'
> 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
> only once
> 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
> function)
> 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
> `glitz_surface_create_radial'
> make[2]: *** [cairo_gl_surface.lo] Error 1
> make[2]: Leaving directory `/usr/src/cairo-0.1.22/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/cairo-0.1.22'
> make: *** [all] Error 2
> -----------END PASTE-----------
> 
> 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.

The current CVS version of glitz doesn't work with cairo. I'm working on
a new glitz backend for cairo and it should be ready in a few days.
Sorry =(
 
-David





More information about the cairo mailing list