2010/7/20 Tommy Grav <tg...@mac.com>: > I am trying to compile matplotlib for ActiveState 2.7.0.1 - 64bit on mac os x. > I have installed numpy 1.4.1 and scipy 0.8.0 from source. Compiling matplotlib > using > > sudo make -f make.osx fetch deps mpl_build mpl_install > > works fine, but > > sudo python setup.py build > > yields the error below. Anyone know how to fix this problem? > > Cheers > Tommy
> freetype2: found, but unknown version (no pkg-config) > * WARNING: Could not find 'freetype2' headers in any > * of '.', './freetype2'. This is the culprit, I think when issuing setup.py via the make.osx script it adds some sugar telling where to find libraries. You have to add at least '/usr/local' to the list in setupext.py where there is 'darwin' in front. > OPTIONAL BACKEND DEPENDENCIES > libpng: found, but unknown version (no pkg-config) > * Could not find 'libpng' headers in any of '.' Same thing. > src/ft2font.h:14:22: error: ft2build.h: No such file or directory Here you see it clearly. On my system ft2build.h resides in /usr/local/include, and that is where the make.osx build should put it too. > src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> blah blah blah > In file included from src/ft2font.cpp:1: > src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared blah blah blah ....... > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:137: error: ‘FT_Face’ does not name a type > src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type > src/ft2font.h:139: error: ‘FT_Vector’ does not name a type > src/ft2font.h:140: error: ‘FT_Error’ does not name a type > src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope > src/ft2font.h:141: error: template argument 1 is invalid > src/ft2font.h:141: error: template argument 2 is invalid > src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope > src/ft2font.h:142: error: template argument 1 is invalid > src/ft2font.h:142: error: template argument 2 is invalid > src/ft2font.h:148: error: ‘FT_BBox’ does not name a type > src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type > src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void > src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope > src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope > src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope > src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187: > warning: ‘int _import_array()’ defined but not used > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for > C/ObjC but not for C++ > In file included from src/ft2font.cpp:1: > src/ft2font.h:14:22: error: ft2build.h: No such file or directory Again. > src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> > In file included from src/ft2font.cpp:1: > src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:137: error: ‘FT_Face’ does not name a type > src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type > src/ft2font.h:139: error: ‘FT_Vector’ does not name a type > src/ft2font.h:140: error: ‘FT_Error’ does not name a type > src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope > src/ft2font.h:141: error: template argument 1 is invalid > src/ft2font.h:141: error: template argument 2 is invalid > src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope > src/ft2font.h:142: error: template argument 1 is invalid > src/ft2font.h:142: error: template argument 2 is invalid > src/ft2font.h:148: error: ‘FT_BBox’ does not name a type > src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type > src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void > src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope > src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope > src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope > src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187: > warning: ‘int _import_array()’ defined but not used > lipo: can't figure out the architecture type of: /var/tmp//cc1zVbyh.out > error: command 'gcc' failed with exit status 1 sure, it fails with bailing out after such a bunch of errors. But it tries hard to compile even without proper include files doesn't it :-) Friedrich ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users