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

Benjamin Reed rangerrick at gmail.com
Thu Apr 24 09:41:59 PDT 2008


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
 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 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
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:264:
error: using typedef-name 'Cursor' after 'struct'
/usr/X11R6/include/X11/X.h:108: error: 'Cursor' has a previous declaration here
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:269:
error: using typedef-name 'Cursor' after 'struct'
/usr/X11R6/include/X11/X.h:108: error: 'Cursor' has a previous declaration here
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:269:
error: invalid type in declaration before ';' token
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:269:
error: conflicting declaration 'typedef int Cursor'
/usr/X11R6/include/X11/X.h:108: error: 'Cursor' has a previous
declaration as 'typedef XID Cursor'
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:296:
error: using typedef-name 'Picture' after 'struct'
/usr/X11R6/include/X11/extensions/render.h:31: error: 'Picture' has a
previous declaration here
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:300:
error: using typedef-name 'Picture' after 'struct'
/usr/X11R6/include/X11/extensions/render.h:31: error: 'Picture' has a
previous declaration here
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:300:
error: invalid type in declaration before ';' token
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:300:
error: conflicting declaration 'typedef int Picture'
/usr/X11R6/include/X11/extensions/render.h:31: error: 'Picture' has a
previous declaration as 'typedef XID Picture'


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

-- 
Benjamin Reed a.k.a. Ranger Rick
Fink, KDE, and Mac OS X development
http://www.racoonfink.com/


More information about the cairo mailing list