Op dinsdag 27-01-2009 om 18:12 uur [tijdzone +0100], schreef Farkas
Levente:
but unfortunately none of these option have for pango
--disable-xlib
--disable-xcb
--enable-win32
--disable-ft
and without freetype i've got dozens of errors like this:
------------------------------------------
i686-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/freetype2
-I . -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
--param=ssp-buffer-size=4 -mms-bitfields -mms-bitfields -MT
harfbuzz-dump-main.o -MD -MP -MF .deps/harfbuzz-dump-main.Tpo -c -o
harfbuzz-dump-main.o harfbuzz-dump-main.c
In file included from harfbuzz-dump.c:27:
harfbuzz-impl.h:29:22: error: ft2build.h: No such file or directory
harfbuzz-impl.h:30:10: error: #include expects "FILENAME" or <FILENAME>
harfbuzz-impl.h:31:10: error: #include expects "FILENAME" or <FILENAME>
In file included from harfbuzz-impl.h:33,
from harfbuzz-dump.c:27:
harfbuzz-global.h:32:10: error: #include expects "FILENAME" or
<FILENAME>
------------------------------------------
ft2build.h is in freetype package.
Hi,
This error is caused by a native copy of freetype (as the
folder /usr/include/freetype2 is part of the compiler flags). This is
only a problem for local builds because freetype isn't installed in a
mock builroot.
The real cause is pkg-config. Even if we override the PKG_CONFIG_PATH,
pkg-config also searches in %{_libdir}/pkgconfig, as can be read in the
man page:
By default, pkg-config looks in the directory prefix/lib/pkgconfig
for these files; it will also look in the colon-separated (on
Windows, semicolon-separated) list of directories specified by
the PKG_CONFIG_PATH environment variable.
I think the best way to solve this problem is by asking the pkg-config
maintainer if an extra environment variable can be added (something like
PKG_CONFIG_IGNORE_NATIVE=1) which ignores any files in
%{_libdir}/pkgconfig
Regards,
Erik van Pienbroek