[cairo] building OSX target from git clone

Travis Griggs tgriggs at cincom.com
Tue Oct 10 11:40:53 PDT 2006


On Oct 10, 2006, at 7:28, Ian Osgood wrote:

>
> On Oct 9, 2006, at 11:15 PM, Travis Griggs wrote:
>
>> OK, I'm getting close. Thanks to tips both private and here in  
>> list. What I've done so far is:
>>
>> port install cogito
>> cg-clone -s git://git.cairographics.org/git/cairo
>> port install libtool
>> edit the autogen.sh file, changed the first ${LIBTOOLIZE- 
>> libtoolize} with ${LIBTOOLIZE-glibtoolize} "I must admit that  
>> variable expression makes now sense to me"
>
> You could instead do
> $ LIBTOOLIZE=glibtoolize ./autogen.sh

Maybe I don't understand the syntax of ${SOMETHING-something}. If I  
did what you suggested, wouldn't LIBTOOLIZE be set to 'glibtoolize- 
libtoolize'.

>
>> port install automake
>> port install pkgconfig
>> port install libpng "trial and error determined all 4 of these lines"
>> ./autogen.sh --enable-atsui --enable-quartz
>> make
>>
>> If I'm supposed to do some of the previous steps differently, I  
>> admit my naivety and am open to suggestion. Before this, this box  
>> has had very little "non apple" software loaded onto it. I think I  
>> port'ed VIM.
>>
>> The bad news is that I get a compile error:
>> ....
>> /local/lib/libz.dylib -lXrender -lSM -lICE -L/usr/X11R6/lib -lX11   
>> -Wl,-framework -Wl,Carbon -install_name  /usr/local/lib/libcairo. 
>> 2.dylib -Wl,-compatibility_version -Wl,12 -Wl,-current_version -Wl, 
>> 12.2
>> ld: Undefined symbols:
>> _FcNameConstant
>> /usr/bin/libtool: internal link edit command failed
>> make[3]: *** [libcairo.la] Error 1
>> make[2]: *** [all] Error 2
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>
> $ port install fontconfig

This got me a lot further. Not at first, had to rerun autogen.sh. In  
fact I did so with just the defaults (no (n)quartz or atsui). And it  
actually compiles (iirc). When I tried to --enable-nquartz and -- 
enable-atsui, it failed. On a lark, I added --enable-quartz to the  
mix as well. That produced a different error. So finally, I just did  
--enable-quartz and --enable-atsui (no nquartz). And that works. So  
it looks like a fresh clone won't do nquartz yet. Unless someone else  
has any ideas. Compile errors are below the sig.

Thanks for the hints and help all!

--
Travis Griggs
Objologist
"I think that we should be men first, and subjects afterward." -  
Henry David Thoreau


--enable-quartz --enable-nquartz --enable-atsui
....
In file included from /usr/X11R6/include/X11/extensions/Xrender.h:29,
                  from ../src/cairo-xlib-xrender.h:44,
                  from cairo-boilerplate.c:950:
/usr/X11R6/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 /usr/X11R6/include/X11/Xutil.h:55,
                  from /usr/X11R6/include/X11/extensions/Xrender.h:33,
                  from ../src/cairo-xlib-xrender.h:44,
                  from cairo-boilerplate.c:950:
/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[3]: *** [cairo-boilerplate.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2




--enable-nquartz --enable-atsui
.....
In file included from cairo-quartz-private.h:40,
                  from cairo-atsui-font.c:42:
./cairo-quartz.h:57:3: error: #error Cairo was not compiled with  
support for the quartz backend
make[3]: *** [cairo-atsui-font.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/cairo/attachments/20061010/dbf1a724/attachment.html


More information about the cairo mailing list