octave-maintainers
[Top][All Lists]
Advanced

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

configure not finding fontconfig on OSX


From: Richard Campbell
Subject: configure not finding fontconfig on OSX
Date: Mon, 14 Feb 2011 17:57:10 -0500

I did a find /usr | grep -i fontconfig and it returns, in part:

/usr/X11/include/fontconfig
/usr/X11/include/fontconfig/fcfreetype.h
/usr/X11/include/fontconfig/fcprivate.h
/usr/X11/include/fontconfig/fontconfig.h
/usr/X11/lib/libfontconfig.1.4.3.dylib
/usr/X11/lib/libfontconfig.1.dylib
/usr/X11/lib/libfontconfig.dylib
/usr/X11/lib/pkgconfig/fontconfig.pc
/usr/X11/lib/X11/fontconfig
/usr/X11/lib/X11/fontconfig/conf.avail
/usr/X11/lib/X11/fontconfig/conf.avail/05-osx-fonts.conf
/usr/X11/lib/X11/fontconfig/conf.avail/10-autohint.conf
...

When I do ./configure --disable-docs, the relevant parts of the output are:



checking for freetype-config... /usr/X11/bin/freetype-config
checking for FreeType -- version >= 9.0.3... yes
checking for FONTCONFIG... checking for fltk-config... no
...
 fontconfig CFLAGS:           
  fontconfig LIBS:             
  FT2_CFLAGS:                  -I/usr/X11/include/freetype2 -I/usr/X11/include
  FT2_LIBS:                    -L/usr/X11/lib -lfreetype -lz 
-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
...
configure: WARNING: Fontconfig library not found.  Native graphics will be 
disabled.
configure: WARNING: FLTK config script not found.  Native graphics will be 
disabled.

When I invoke cpp -v I get:

#include <...> search starts here:
 /Developer/usr/bin/../lib/gcc/i686-apple-darwin10/4.2.1/include
 /usr/local/include
 /usr/lib/gcc/i686-apple-darwin10/4.2.1/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)


So why is it finding freetype but not fontconfig? Neither are in the search 
paths, so I'm surprised it's finding freetype. I've tried defining CFLAGS and 
CXXFLAGS with -I/usr/X11/include and it doesn't seem to have an effect.

Campbell



reply via email to

[Prev in Thread] Current Thread [Next in Thread]