[Fontconfig] current cvs version

Joachim Bauernberger joachim at bauernberger.org
Wed Jan 14 09:44:38 EST 2004

I just tried installing the current cvs fontconfig (same problenm persists 
with fontconfig-2.2.90) on my box and noticed that whatever I try results in:

[fontconfig-2.2.90][mozart]# make
make  all-recursive
make[1]: Entering directory `/usr/local/src/fontconfig-2.2.90'
Making all in fontconfig
make[2]: Entering directory `/usr/local/src/fontconfig-2.2.90/fontconfig'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/fontconfig-2.2.90/fontconfig'
Making all in fc-lang
make[2]: Entering directory `/usr/local/src/fontconfig-2.2.90/fc-lang'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I/usr/X11R6//include/freetype2 
/X11R6//include    -g -O2 -c fc-lang.c
In file included from ../fontconfig/fcfreetype.h:27,
                 from ../src/fcint.h:39,
                 from fc-lang.c:25:
/usr/X11R6/include/freetype2/freetype/freetype.h:20: #error "`ft2build.h' 
 been included yet!"
/usr/X11R6/include/freetype2/freetype/freetype.h:21: #error "Please always use 
acros to include FreeType header files."
/usr/X11R6/include/freetype2/freetype/freetype.h:22: #error "Example:"
#error "  #include <ft2build.h>"
#error "  #include FT_FREETYPE_H"
make[2]: *** [fc-lang.o] Error 1
make[2]: Leaving directory `/usr/local/src/fontconfig-2.2.90/fc-lang'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/fontconfig-2.2.90'
make: *** [all-recursive-am] Error 2

The recommended inclusion of
#include <ft2build.h>
#include FT_FREETYPE_H
in fontconfig/fcfreetype.h:29 fixes the issue.

Additionally I also had to comment out  the
#include <freetype/ftmodule.h>

in src/fcfreetype.c:53

Thanks and best regards,

mailto:joachim at bauernberger.org
Tel/Fax: +(49)-0-89/1588 3874
HP: +(49)-0-179/674 3611

More information about the Fontconfig mailing list