[Image-SIG] Imaging-1.1.5a3

Piers Lauder piers at cs.su.oz.au
Wed Jun 9 20:30:26 EDT 2004

(Apologies for the double post - hit send too soon).

I have a build problem on MandrakeLinux 10.0. I get the following when
executing "python setup.py build_ext -i" after building in libImaging:

	building '_imagingft' extension
	gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -IlibImaging -I/usr/include/freetype2 -I/usr/local/include/python2.3 -c _imagingft.c -o build/temp.linux-i686-2.3/_imagingft.o
	In file included from _imagingft.c:20:
	/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
	/usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
	/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
	/usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
	/usr/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
	error: command 'gcc' failed with exit status 1

This might be a bug in the Mandrake build for freetype2,
but just in case it isn't - it is fixed by putting:
	#include <ft2build.h>
just before the "#include <freetype/freetype.h>" in _imagingft.c.

More information about the Image-SIG mailing list