pytroll / aggdraw

Python package wrapping AGG2 drawing functionality

Home Page:https://aggdraw.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal error: 'ft2build.h' file not found on OSX 10.10

nvcken opened this issue · comments

Cloning into 'aggdraw'...
remote: Counting objects: 293, done.
remote: Total 293 (delta 0), reused 0 (delta 0), pack-reused 293
Receiving objects: 100% (293/293), 348.74 KiB | 133.00 KiB/s, done.
Resolving deltas: 100% (108/108), done.
Checking connectivity... done.
running build_ext
building 'aggdraw' extension
creating build
creating build/temp.macosx-10.10-intel-2.7
creating build/temp.macosx-10.10-intel-2.7/agg2
creating build/temp.macosx-10.10-intel-2.7/agg2/src
creating build/temp.macosx-10.10-intel-2.7/agg2/font_freetype
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c aggdraw.cxx -o build/temp.macosx-10.10-intel-2.7/aggdraw.o
In file included from aggdraw.cxx:69:
agg2/font_freetype/agg_font_freetype.h:23:10: fatal error: 'ft2build.h' file not found
#include <ft2build.h>
         ^
1 error generated.
error: command 'cc' failed with exit status 1
Traceback (most recent call last):
  File "selftest.py", line 5, in <module>
    from PIL import Image
ImportError: No module named PIL
running install
running build
running build_ext
building 'aggdraw' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/include -I/usr/include/freetype2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c aggdraw.cxx -o build/temp.macosx-10.10-intel-2.7/aggdraw.o
In file included from aggdraw.cxx:69:
agg2/font_freetype/agg_font_freetype.h:23:10: fatal error: 'ft2build.h' file not found
#include <ft2build.h>
         ^
1 error generated.

@nvcken This repo was forked originally to provide support for CentOS. If it doesn't work with OS X you should try to find another fork, update this fork yourself and make a PR, or try to find another way of installing aggdraw (maybe https://gist.github.com/jsundram/6022938 will help).

Craig.