[cairo] cairo 1.4.0 with quartz

Ryan Schmidt cairo-2007a at ryandesign.com
Wed Mar 7 22:28:52 PST 2007


On Mar 5, 2007, at 10:49, Carl Worth wrote:

> On Mon, 5 Mar 2007 13:58:27 +0000, Baz wrote:
>
>> On 05/03/07, Travis Griggs wrote:
>>
>>> I'd like some clarification pretty please. I'm using 1.2.6 right  
>>> now on PPC
>>> OSX. I actually use both interfaces. I have some stuff that uses  
>>> xlib
>>> interfaces, and other which goes straight through the quartz  
>>> interface. When
>>> I get around to upgrading to 1.4, am I still going to be able to  
>>> do this?
>>
>> Short answer is no, unless you build yourself 2 libraries (or are you
>> using both in the same program?).
>
> Short answer is absolutely yes.
>
> I won't release cairo 1.4 until this is fixed.
>
> There's no reason cairo shouldn't allow you to build it with any
> combination of the available backends.

FYI: The Quartz problem remains in 1.4.0. --enable-atsui now works by  
itself (at least, it compiles properly even when --enable-quartz is  
not used), but trying to --enable-quartz without using --disable-xlib  
still does this:

  gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE -I. -I../pixman/src - 
I../src -I../src -I/opt/local/include/freetype2 -I/opt/local/include - 
I/opt/local/include/libpng12 -DXTHREADS -I/opt/local/include -I/usr/ 
X11R6/include -I/usr/X11R6/include -Wall -Wextra -Wsign-compare - 
Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings - 
Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations - 
Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute - 
Wstrict-aliasing=2 -Winit-self -Wdeclaration-after-statement -Wold- 
style-definition -Wno-missing-field-initializers -Wno-unused- 
parameter -fno-strict-aliasing -g -O2 -MT cairo-boilerplate.lo -MD - 
MP -MF .deps/cairo-boilerplate.Tpo -c cairo-boilerplate.c  -fno- 
common -DPIC -o .libs/cairo-boilerplate.o
In file included from /opt/local/include/X11/extensions/Xrender.h:29,
                  from ../src/cairo-xlib-xrender.h:44,
                  from cairo-boilerplate.c:864:
/opt/local/include/X11/extensions/render.h:31: error: conflicting  
types for 'Picture'
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ 
QD.framework/Headers/Quickdraw.h:309: error: previous declaration of  
'Picture' was here
In file included from /usr/X11R6/include/X11/Xlib.h:59,
                  from /opt/local/include/X11/extensions/Xrender.h:31,
                  from ../src/cairo-xlib-xrender.h:44,
                  from cairo-boilerplate.c:864:
/usr/X11R6/include/X11/X.h:108: error: conflicting types for 'Cursor'
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ 
QD.framework/Headers/Quickdraw.h:278: error: previous declaration of  
'Cursor' was here
make[2]: *** [cairo-boilerplate.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2






More information about the cairo mailing list