Bug 24671 - OSX default configuration regressed from 1.8.8 (should disable fontconfig/freetype by default)
Summary: OSX default configuration regressed from 1.8.8 (should disable fontconfig/fre...
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.9.4
Hardware: Other Mac OS X (All)
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: cairo-1.10
  Show dependency treegraph
 
Reported: 2009-10-21 21:38 UTC by Travis Griggs
Modified: 2010-06-13 02:43 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Travis Griggs 2009-10-21 21:38:53 UTC
Stable release 1.8.8 configure script disables fontconfig/freetype by default on MacOSX. In 1.9.4 it turns on for some reason. Which leads to out of the box compilation errors, as it can't link to a proper freettype library. It would be nice to have it back off by default.
Comment 1 Andrea Canciani 2009-11-11 00:28:56 UTC
(In reply to comment #0)
> Stable release 1.8.8 configure script disables fontconfig/freetype by default
> on MacOSX. In 1.9.4 it turns on for some reason.
Does ./configure enables both fontconfig and freetype on your machine?
Since cairo (as of 1.9.4) requires freetype 2.1.9 and fontconfig 2.2.95 and OSX ships respectively 2.3.5 and 2.6.0, one would expect both to be enabled.
This does not happen because freetype is "automatically" configured thanks to freetype-config, but no such tool is available for fontconfig and OSX default fontconfig isn't managed by pkg-config.
freetype wasn't automatically enabled in 1.8.8 because it required fontconfig (in fact, you can see that fontconfig didn't appear at all in 1.8.8 font backends).
> Which leads to out of the box compilation errors, as it can't link to a
> proper freettype library.
On my laptop (running 10.5) the compilation is successful.
Since right now I'm unable to reproduce, I think it could be caused by missing headers on your machine. Can you please check the output of "freetype-config --cflags --libs" (and the content of the directories it prints)?
Please post more details about the compilation failure and/or check the content of /usr/X11/include and /usr/X11/lib. If they contain freetype and fontconfig headers and libraries, you should even be able to get a (working) cairo build with freetype and fontconfig enabled, simply by adding the following additional variables in your environment:
FONTCONFIG_CFLAGS="-I/usr/X11/include"
FONTCONFIG_LIBS="-L/usr/X11/lib -lfontconfig"
Comment 2 Andrea Canciani 2010-06-13 02:43:27 UTC
As per discussion on IRC (2010-04-13) this bugreport is probably not relevant anymore.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.