When I was building PIL on my Fedora Core 1
machine, I got the following error:

---------------------------------------
In file included from _imagingft.c:18:
/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
---------------------------------------


... so I added the line:

---------------------------------------
#include <ft2build.h>
---------------------------------------

to _imagingft.c (just before '#include <freetype/freetype.h>'),
and then it built and installed okay.

I don't know whether the error was caused by something
stupid I did, but just thought I'd share that in case
it wasn't.

Cheers,
Steve
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to