[tlbuild] xetex not being built

Peter Breitenlohner peb at mppmu.mpg.de
Wed May 13 11:09:55 CEST 2009


On Tue, 12 May 2009, Jukka Salmi wrote:

> unfortunately it still doesn't; not because of fontconfig but because
> the path to the FreeType 2 headers is passed to g++ after a path
> containing FreeType 1 headers is passed (I configured with both
> `--with-system-freetype2' and `--with-system-freetype'):

Hi Jukka,

the `--with-system-freetype' is not used for xetex, the offending includes
come from `--with-system-libpng' and from `--with-fontconfig' (using
pkg-config for the fontconfig flags wouldn't have changed anything).

> g++ -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./.. -I/a/src/texlive/Build/source/Work/texk -I/a/src/texlive/Build/source/texk -DU_STATIC_IMPLEMENTATION -I../../../texk/web2c/xetexdir -I/a/src/texlive/Build/source/Work/libs/icu/icu-build/common -I/a/src/texlive/Build/source/libs/icu/icu-xetex/common -I/a/src/texlive/Build/source/libs/icu/icu-xetex/layout -I/a/src/texlive/Build/source/libs/teckit/source/Public-headers  -DXETEX_OTHER -DPDF_PARSER_ONLY -I/a/src/texlive/Build/source/Work/libs/xpdf -I/a/src/texlive/Build/source/Work/libs/xpdf/goo -I/a/src/texlive/Build/source/Work/libs/xpdf/xpdf -I/usr/pkg/include -I/usr/pkg/include -DXETEX_GRAPHITE -I/a/src/texlive/Build/source/libs/graphite/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/freetype -I/usr/pkg/include  -g -O2 -MT libxetex_a-XeTeXFontInst_FT2.o -MD -MP -MF .deps/libxetex_a-XeTeXFontInst_FT2.Tpo -c -o libxetex_a-XeTeXFontInst_FT2.o `test -f 'xe
 t!
> exdir/XeTeXFontInst_FT2.cpp' || echo '../../../texk/web2c/'`xetexdir/XeTeXFontInst_FT2.cpp
> In file included from ../../../texk/web2c/xetexdir/XeTeXFontInst_FT2.cpp:41:
> /usr/pkg/include/freetype2/freetype/tttables.h:28:2: error: #error "freetype.h of FreeType 1 has been loaded!"
> /usr/pkg/include/freetype2/freetype/tttables.h:29:2: error: #error "Please fix the directory search order for header files"
> /usr/pkg/include/freetype2/freetype/tttables.h:30:2: error: #error "so that freetype.h of FreeType 2 is found first."

What a freetype1/freetype2 mess, but at least one gets a decent error
message.

> LIBPNG_INCLUDES = -I/usr/pkg/include
> FONTCONFIG_INCLUDES = -I/usr/pkg/include
> FREETYPE2_INCLUDES = -I/usr/pkg/include/freetype2 -I/usr/pkg/include
> am__append_21 = [...] $(LIBPNG_INCLUDES) $(FONTCONFIG_INCLUDES)
> xetex_cppflags = [...] $(am__append_21) [...] $(FREETYPE2_INCLUDES)
> libxetex_a_CPPFLAGS = $(xetex_cppflags)
> libxetex_a-XeTeXFontInst_FT2.o:
> 	$(CXX) [...] $(libxetex_a_CPPFLAGS) [...]
>
> Moving $(FREETYPE2_INCLUDES) before $(am__append_21) in the assignement
> to xetex_cppflags works around the problem.

I have changed xetexdir/am/xetex.am (where all this comes from) accordingly
(r13073). Hope this now works.

Regards
Peter


More information about the tlbuild mailing list