osx - Installing pygame mac, python 2.7.9, issues with freetype and other dependencies -
i'm trying install pygame on mac, , i've been able install dependencies, i'm stuck @ step
pip install hg+http://bitbucket.org/pygame/pygame
the installation fails @ point:
fatal error: 'freetype/config/ftheader.h' file not found #include <freetype/config/ftheader.h>
how fix this, i'm pretty sure have freetype (see below)?
i noticed though installed dependencies, notifications these when compiling.
sdl : found 1.2.15 framework sdl not found font : found framework sdl_ttf not found image : found framework sdl_image not found mixer : found framework sdl_mixer not found smpeg : found 0.4.5 framework smpeg not found framework coremidi found framework quicktime found png : found jpeg : found portmidi: found freetype: found 2.5.3 avformat: not found swscale : not found
i ran similar problem , following worked me:
first, find location of systems freetype include files with
freetype-config --cflags
for me, first result looked like:
-i/users/username/anaconda/include/freetype2
now rerun pip install
environment variable cflags
set result of previous step. again, me, looked like:
cflags='-i/users/username/anaconda/include/freetype2 pip install hg+http://bitbucket.org/pygame/pygame
Comments
Post a Comment