[Image-SIG] Compile problem with 1.1.4 and freetype2

Theo. Sean Schulze tschulze at nuthole.de
Mon Apr 5 16:28:32 EDT 2004

OK, I think I have been able to fix this.  Looking at the error message 
again, it seemed that I needed to add an #include statement in 
_imagingtf.c.  So, I added "#include <ft2build.h>" just before line 18 
in _imagingtf.c, and it seems to have compiled.

Theo. Sean Schulze wrote:

> Hello,
> I am trying to build PIL 1.1.4 on a Slackware-current system running 
> kernel 2.6.4.  gcc is 3.3.3.  I have freetype2 2.1.7 installed from 
> source with --prefix=/usr set during configuration.  libImaging seems 
> to build ok, at least it does not produce any errors when it compiles 
> after the make command.  I then change to the base directory 
> Imaging-1.1.4 and issue the command `python setup.py build`.  Whether 
> I issue the command as a user or as root, I get the following output:
> building '_imagingft' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=i486 -mcpu=i686 
> -fPIC -IlibImaging -I/usr/include/freetype2 -I/usr/include/python2.3 
> -c _imagingft.c -o build/temp.linux-i686-2.3/_imagingft.o
> 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 
> error: command 'gcc' failed with exit status 1
> Can someone offer me some advice as to how to fix this?
> TIA,
> Sean
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig

More information about the Image-SIG mailing list