GNOME Bugzilla – Bug 125548
freetype2 headers changed
Last modified: 2004-12-22 21:47:04 UTC
With cvs pango and cvs freetype2, I needed the following patch to compile: Index: opentype/pango-ot-info.c =================================================================== RCS file: /cvs/gnome/pango/pango/opentype/pango-ot-info.c,v retrieving revision 1.8 diff -u -r1.8 pango-ot-info.c --- opentype/pango-ot-info.c 16 Apr 2003 21:48:29 -0000^I1.8 +++ opentype/pango-ot-info.c 26 Oct 2003 18:32:21 -0000 @@ -22,7 +22,6 @@ #include "pango-ot-private.h" #include "fterrcompat.h" #include <freetype/internal/ftobjs.h> -#include <freetype/ftmodule.h> static void pango_ot_info_class_init (GObjectClass *object_class); static void pango_ot_info_finalize (GObject *object);
Looks like an incompatible change to FreeType to me, just mailed devel@freetype.org about it, and we'll see what they say.
Sat Nov 1 09:32:15 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-ot.h pango/pangofc-font.h modules/indic/indic-ot.h pango/pangoft2.c pango/opentype/pango-ot-info.c pango/opentype/pango-ot-ruleset.c pango/opentype/ottest.c pango/opentype/ftxopen.[ch] pango/opentype/ftxgdef.c pango/opentype/ftxgsub.c pango/opentype/ftxgpos.c: Switch over to recommended Freetype system of include ft2build.h then #include FT_FREETYPE_H. Fixes ftmodule.h problem with current Freetype CVS. (#125548)
Currently trying to compile version 1.2.5 on Mandrake Linux 10, and receive this error: In file included from pango-ot-private.h:25, from pango-ot-info.c:22: /usr/local/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /usr/local/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /usr/local/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /usr/local/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /usr/local/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" pango-ot-info.c:25:31: freetype/ftmodule.h: No such file or directory make[3]: *** [pango-ot-info.lo] Error 1 make[3]: Leaving directory `/home/losra/Software/pango-1.2.4/pango/opentype' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/losra/Software/pango-1.2.4/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/losra/Software/pango-1.2.4' make: *** [all-recursive-am] Error 2
last comment is about an obsolete version of Pango