[cairo] Cairo ATSUI (Mac OS X) compile problems

Noam Sturmwind ns at canada.com
Sat Mar 26 20:13:26 PST 2005


I've downloaded the 0.4.0 cairo snapshot, and am running into some issues 
with ATSUI (Apple Type Services for Unicode Imaging) during compilation.

First, in cairo_atsui_font.c lines 179 and 770, the function 
_cairo_unscaled_font_init is called and its return value checked to see if 
it equals CAIRO_STATUS_SUCCESS. The problem is that 
_cairo_unscaled_font_init is defined in cairo_font.c (and prototyped in 
cairoint.h) to have a void return value. This of course generates an error 
in gcc and the compile fails.

The CVS tree seems to contain the same problem.

(Disclaimer: I haven't looked at the code in detail, and I don't really 
understand what it's doing.) As an experiment, I removed the error by 
modifiying cairo_atsui_font.c to assume that _cairo_unscaled_font_init is 
always successful. Now I'm receiving some link-time errors along these 
lines:

ld: .libs/cairo_atsui_font.o illegal reference to symbol: 
_ATSFontGetHorizontalMetrics defined in indirectly referenced dynamic 
library 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS

I've tried playing around with adding different frameworks to LDFLAGS in 
the Makefile, but that doesn't seem to make a difference. Full log of the 
errors at http://nbtsc.org/~noam/cairo.log

Help with these issues would be appreciated.

Noam Sturmwind
--------





More information about the cairo mailing list