[Fontconfig] Failure of fontconfig compilation on Mac OS X 10.3.9

mpsuzuki at hiroshima-u.ac.jp mpsuzuki at hiroshima-u.ac.jp
Fri Sep 29 08:07:09 PDT 2006


On Fri, 29 Sep 2006 14:26:56 +0200
Gerben Wierda <Gerben.Wierda at rna.nl> wrote:
>I can compile fontconfig on Mac OS X 10.4.7 fine, but on Mac OS X  
>10.3.9 I get a failure. Can someone tell me where to look for an  
>answer? What kind of stuff are these undefined symbols? It looks  

>local/lib/libfontconfig.1.dylib -Wl,-compatibility_version -Wl,3 -Wl,- 
>current_version -Wl,3.0
>ld: Undefined symbols:

Sorry for your inconvenience. The symbols are QuickDraw
and ATS frameworks.

In most autoconfized softwares, configure retrieves the linker
options from freetype-config or pkg-config (freetype2.pc), but,
unfortunately, current freetype2 does not embed Carbon framework
flags into them. 

Please modify /usr/local/bin/freetype-config and
/usr/local/lib/pkgconfig/freetype2.pc as following,
and re-execute configure script. After that, Makefile will include
the appropriate linker options.


-  libs="-lfreetype -lz"
+  libs="-lfreetype -lz -Xlinker -framework -Xlinker CoreServices -Xlinker -framework -Xlinker ApplicationServices"


-  Libs: -L${libdir} -lfreetype -lz
+  Libs: -L${libdir} -lfreetype -lz -Xlinker -framework -Xlinker CoreServices -Xlinker -framework -Xlinker ApplicationServices

But please be careful. The configure script in freetype-2.2.1
has a bug, it tries to use QuickDraw/ATS framework always, if it's
available. By using QuickDraw/ATS support, you can use most of
MacOS specific fonts like .dfont and resource-fork-based fonts.
Check the screenshot with and without the support.
It's convenient but not portable. If you don't want to use them
at all, please check the lates CVS version of freetype2 (it disables
them by default), or apply the attached patch to freetype-2.2.1
(it disables the feature by default).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freetype-2.2.1_macosx-config.patch.bz2
Type: application/octet-stream
Size: 89179 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060930/70271c18/freetype-2.2.1_macosx-config.patch-0001.obj

More information about the Fontconfig mailing list