Re: Failure of fontconfig compilation on Mac OS X 10.3.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, 29 Sep 2006 14:26:56 +0200
Gerben Wierda <Gerben.Wierda@xxxxxx> 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  
>Apple-like.

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

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.

freetype-config

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

freetype2.pc

-  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.
http://mail.gnome.org/archives/gtk-i18n-list/2006-August/msg00004.html
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).

Regards,
mpsuzuki

Attachment: freetype-2.2.1_macosx-config.patch.bz2
Description: Binary data

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux