[cairo] Recommendations for 1.4.0

Dave Yeo daveryeo at telus.net
Mon Mar 5 20:19:16 PST 2007


On Mon, 05 Mar 2007 21:01:00 -0500, Behdad Esfahbod wrote:

>On Mon, 2007-03-05 at 17:18 -0800, Dave Yeo wrote:
>> 
>> Ok, much better now. Make check still fails when building a8-mask, so
>> still needing more $(EXEEXT) somewhere. Unluckily test/Makefile.am
>> seems to be getting more cryptic.
>> Dave 
>
>Can you paste the error message?
>
>--

Sure, though I think it is the GCC line that is in error

gcc.exe -g -O2 -o .libs/png-flatten.exe png-flatten.o 
./.libs/libcairotest_s.a -L/usr/local/lib
/usr/src/cairo-git/src/.libs/libcairo_dll.a
/usr/local/lib/libfontconfig_dll.a /usr/local/lib/libfreetype_dll.a
/usr/local/lib/expat.a /usr/local/lib/libpng12_dll.a -lz -lpthread
creating png-flatten.exe
gcc.exe -g -O2    a8-mask.c imagediff.exe png-flatten.exe   -o a8-mask
In file included from a8-mask.c:26:
cairo-test.h:30:31: cairo-boilerplate.h: No such file or directory
cairo-test.h:53:2: #error Cannot find definitions for fixed-width
integral types (uint8_t, uint32_t, \etc.)
In file included from I:/usr/include/machine/_types.h:1,
                 from I:/usr/include/sys/_types.h:42,
                 from I:/usr/include/math.h:25,
                 from cairo-test.h:60,
                 from a8-mask.c:26:
I:/usr/include/386/_types.h:51: error: syntax error before "typedef"
In file included from a8-mask.c:26:
cairo-test.h:69: error: parse error before '*' token
cairo-test.h:121: error: parse error before "CAIRO_PRINTF_FORMAT"
cairo-test.h:121: warning: data definition has no type or storage class
cairo-test.h:127: error: parse error before '*' token
cairo-test.h:128: warning: data definition has no type or storage class
cairo-test.h:130: error: parse error before '*' token
cairo-test.h:131: warning: data definition has no type or storage class
cairo-test.h:134: error: parse error before
"cairo_test_paint_checkered"
cairo-test.h:134: error: parse error before '*' token
cairo-test.h:134: warning: data definition has no type or storage class
a8-mask.c:28: error: syntax error before "static"
a8-mask.c:50: error: parse error before '*' token
a8-mask.c: In function `draw':
a8-mask.c:52: error: `cairo_surface_t' undeclared (first use in this
function)
a8-mask.c:52: error: (Each undeclared identifier is reported only once
a8-mask.c:52: error: for each function it appears in.)
a8-mask.c:52: error: `surface' undeclared (first use in this function)
a8-mask.c:53: error: `cairo_pattern_t' undeclared (first use in this
function)
a8-mask.c:53: error: `pattern' undeclared (first use in this function)
a8-mask.c:55: error: `cr' undeclared (first use in this function)
a8-mask.c:58: error: `CAIRO_FORMAT_A8' undeclared (first use in this
function)
make[3]: *** [a8-mask] Error 1
make[3]: Leaving directory `I:/usr/src/cairo-git/test'

Had a similar error since maybe 1.0.4 which clears up if building
a8-mask.exe instead of a8-mask etc and most recently very similar
results while compiling imagediff, fixed by adding $(EXEEXT). Make just
does not add includes and libs unless building an executable.
I also note that pthreads is still being linked in.
Dave 



More information about the cairo mailing list