[cairo] cairomm 1.6.0 fails with cairo 1.6.4 + quartz on Mac OS X

Murray Cumming murrayc at murrayc.com
Fri Apr 25 08:06:42 PDT 2008

On Thu, 2008-04-24 at 12:41 -0400, Benjamin Reed wrote:
> I've just built cairo 1.6.4 on Mac OS X 10.5.2, and now I'm trying to
> build cairomm 1.6.0 and it's failing with some conflicting header
> defines:
> /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I.. -DPNG_NO_MMX_CODE -I/sw/lib/freetype219/include/freetype2
> -I/sw/lib/freetype219/include -I/sw/lib/fontconfig2/include
> -I/sw/include/pixman-1 -I/sw/include/libpng12 -I/sw/include
> -I/sw/include/cairo -I/usr/X11R6/include -I/usr/X11/include
> -I/sw/lib/freetype219/include -I/sw/lib/freetype219/include/freetype2
> -I/sw/lib/fontconfig2/include -I/sw/include -I/usr/X11R6/include  -g
> -O2 -c -o context.lo context.cc
> -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include
> -I/sw/lib/fontconfig2/include -I/sw/include/pixman-1
> -I/sw/include/libpng12 -I/sw/include -I/sw/include/cairo
> -I/usr/X11R6/include -I/usr/X11/include -I/sw/lib/freetype219/include
> -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/fontconfig2/include
> -I/sw/include -I/usr/X11R6/include -g -O2 -c context.cc  -fno-common
> -DPIC -o .libs/context.o
> /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:255:
> error: declaration does not declare anything

I guess that MachineExceptions.h (or maybe X) is #defining something
with a very generic name. Could you show us the code on and near that
line to give us a clue?

Hopefully you can work around it with some combination of #ifdef,
#ifnded or #undef.

> I'm not sure how to untangle this stuff, is it impossible to support
> both X and quartz in the same cairo installation?

I guess so. If it works for cairo then it should work for cairomm.

murrayc at murrayc.com

More information about the cairo mailing list