Apache OpenOffice (AOO) Bugzilla – Issue 82085
SRC680_m231: ft2build.h not included thus freetype is not happy...
Last modified: 2007-10-05 16:02:09 UTC
Hi, when building on SL9.0 based build machine with fontconfig 2.2.1 and freetype from the OOo CVS, I got this: In file included from /usr/include/fontconfig/fcfreetype.h:27, from /disk2/pavel/BuildDir/ooo_SRC680_m231_src/psprint/source/fontmanager/ fontconfig.cxx:41: /disk2/pavel/BuildDir/ooo_SRC680_m231_src/solver/680/unxlngi6.pro/inc/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /disk2/pavel/BuildDir/ooo_SRC680_m231_src/solver/680/unxlngi6.pro/inc/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /disk2/pavel/BuildDir/ooo_SRC680_m231_src/solver/680/unxlngi6.pro/inc/freetype/freetype.h:22:2: #error "Example:" /disk2/pavel/BuildDir/ooo_SRC680_m231_src/solver/680/unxlngi6.pro/inc/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /disk2/pavel/BuildDir/ooo_SRC680_m231_src/solver/680/unxlngi6.pro/inc/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" The simplest workaround is this: pavel@oo:~/BuildDir/ooo_SRC680_m231_src/psprint/source/fontmanager> diff -u fontconfig.cxx.orig fontconfig.cxx --- fontconfig.cxx.orig 2007-09-29 10:34:25.000000000 +0200 +++ fontconfig.cxx 2007-09-29 10:33:50.000000000 +0200 @@ -38,6 +38,7 @@ #ifdef ENABLE_FONTCONFIG #include <fontconfig/fontconfig.h> +#include <ft2build.h> #include <fontconfig/fcfreetype.h> // be compatible with fontconfig 2.2.0 release #ifndef FC_WEIGHT_BOOK pavel@oo:~/BuildDir/ooo_SRC680_m231_src/psprint/source/fontmanager>
pl->hdu: hr solved this by including ft2build.h in our version of fcfreetype.h; maybe the attached solution is better ?
Applied the patch for next master workspace (SRC680_m232). @pjanik: thanks for the patch!
Certainly the attached version is better ... our quick master fix didn't consider cases with system supplied fontconfig libraries.
@pjanik: please mark this issue as "verified" if ok
@pjanik: please mark this issue as verified if ok
Verified, closing.