[Image-SIG] compilation include problems (fixed?)
Ron Ross
ronross at colba.net
Thu May 13 19:50:17 EDT 2004
Hi,
Compilation of the Python Imaging Library v. 1.1.4 terminated with 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
This is on Slackware-current (post-9.1), with Python 2.3 installed and
whatever version of Freetype comes with Xfree86 4.4.0.
Taking the hint from /usr/include/freetype2/freetype/freetype.h, in
_imagingft.c of the current PIL distribution I replaced
#include <freetype/freetype.h>
with
#include <ft2build.h>
#include FT_FREETYPE_H
Compilation was then successful.
PS. As I'm not subscribed to the list, if you require any additional
info please contact me directly.
All the best,
Ron
More information about the Image-SIG
mailing list