From: Andrew R. <and...@us...> - 2007-07-16 09:07:45
|
Orion, > [ 20%] Building C object drivers/CMakeFiles/gcw.dir/gcw.o > /usr/bin/gcc -Dgcw_EXPORTS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 > -march=i386 -mtune=generic -fasynchronous-unwind-tables -fPIC > -I/builddir/build/BUILD/plplot-5.7.3/include > -I/builddir/build/BUILD/plplot-5.7.3/fedora > -I/builddir/build/BUILD/plplot-5.7.3/fedora/include -DHAVE_CONFIG_H > -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2 > -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 > -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo > -o drivers/CMakeFiles/gcw.dir/gcw.o -c > /builddir/build/BUILD/plplot-5.7.3/drivers/gcw.c > In file included from > /builddir/build/BUILD/plplot-5.7.3/include/plfreetype.h:33, > from /builddir/build/BUILD/plplot-5.7.3/drivers/gcw.c:80: > /usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No > such file or directory > > Looks like -I${FREETYPE_INCLUDE_DIR} are not being added to gcw (and > other?) driver's includes. -I${FREETYPE_INCLUDE_DIR} is not explicitly included in the driver's includes. Each driver is supposed to set the xxx_COMPILE_FLAGS in the driver cmake module cmake/modules/xxx. For the case of gcw this is done in cmake/modules/gcw.cmake using pkg-config. Can you confirm what output you get from the command pkg-config libgnomeprintui-2.2 --cflags For my linux (Debian and Ubuntu) systems this includes -I/usr/include/freetype2 as required. It is possible that this is not always the case? Which other drivers fail (try disabling gcw and see how far you get)? psttf also uses pkg-config, while gd explicitly includes the required directories. Regards Andrew |