Summary: | make fails with "conflicting types for 'Picture'" on Mac OS X 10.4.11 PPC | ||
---|---|---|---|
Product: | cairo | Reporter: | cfr <reescf> |
Component: | quartz backend | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED WORKSFORME | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | critical | ||
Priority: | medium | ||
Version: | 1.6.4 | ||
Hardware: | PowerPC | ||
OS: | Mac OS X (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
cfr
2008-06-14 04:05:59 UTC
OK. Been fiddling some... Compile with: export X_CFLAGS="-I/usr/local/include -I/usr/X11R6/include" export X_LIBS="-L/usr/local/lib -L/usr/X11R6/lib" ./configure \ xlib_xrender_CFLAGS="-I/usr/local/include -I/usr/local/include/X11/extensions -I/usr/X11R6/include -DXTHREADS" \ xlib_xrender_LIBS="-L/usr/local/lib -lXrender -L/usr/X11R6/lib -lX11" make succeeds make check fails... edit test/cairo-test.c and test/font-options.c to replace "#include <fontconfig/fontconfig.h>" with "#include </usr/local/include/fontconfig/fontconfig.h">. make check completes with 48 of 173 test failures. (tests requiring X11 ignored as I've never got the parts of cairo's test suite requiring X11 to work.) Most of these are minor though some are not. What I don't really understand, though, is that some tests fail when I compile like this but succeed if I disable quartz (and don't mess with the X11 or xlib_xrender flags) for interfaces other than quartz. e.g. text-antialias-none-image-argb32-out is fine if I compile without quartz but not if I compile with -e even though I assume this is a different "backend". (Note that I realise I do not know what I'm talking about quite a long time before this point.) - cfr The first part sounds like something is wrong with the build environment. #include </usr/local/include/.../fontconfig.h> is just broken somewhere. I suspect this is part of the pain that Travis Griggs was trying to communicate to us about building upon Mac OS/X where every major component seems to include different versions of the same headers. Hopefully this has been improved with the build system revamp... If 1.8.x is still problematic, please tell us on the mailing list (where more casual users and certainly more Mac users) and hopefully we can improve the build instructions/system for Mac OS/X. The second aspect is due to the long standing issue of discrepancies between the different font backends. So if you compile with xlib enabled, the default font backend will be FreeType and without you'll default to CoreFont. And it seems that for the failing tests those reference images have been generated using FreeType which differs in its rasterisation/choice of font to CoreFont. The test suite is due to undergo an overhaul through the 1.9 development cycle and resolving the font discrepancy is one of the planned tasks. |
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.