Hi

Hi,

I am having troubles  getting matplotlib to install.  I have mac os X lion with 
Xcode 4.2.1 installed and  I have used git to get the latest version of 
matplotlib.  I am also running python 2.7.2 from the python.org site. The 
installation process was going fine based on the make.osx file supplied .  The 
only thing I had to do was add a symbolic link to map gcc-4.2 to gcc to get it 
to compile, the I hit the following problem:

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot 
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 
-DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
 -I. 
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/freetype2
 -I./freetype2 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.7/src/ft2font.o
In file included from src/ft2font.cpp:3:
src/ft2font.h:16:22: error: ft2build.h: No such file or directory
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>
src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME>
In file included from src/ft2font.cpp:3:
src/ft2font.h:34: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:86: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:86: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:131: error: ‘FT_Face’ does not name a type
src/ft2font.h:132: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:133: error: ‘FT_Vector’ does not name a type
src/ft2font.h:134: error: ‘FT_Error’ does not name a type
src/ft2font.h:135: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:135: error: template argument 1 is invalid
src/ft2font.h:135: error: template argument 2 is invalid
src/ft2font.h:136: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:136: error: template argument 1 is invalid
src/ft2font.h:136: error: template argument 2 is invalid
src/ft2font.h:141: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:51: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:116: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:116: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:116: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:117: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:118: error: ‘FT_Int’ was not declared in this scope
In file included from src/ft2font.cpp:3:
src/ft2font.h:16:22: error: ft2build.h: No such file or directory
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>
src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME>
In file included from src/ft2font.cpp:3:
src/ft2font.h:34: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:86: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:86: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:131: error: ‘FT_Face’ does not name a type
src/ft2font.h:132: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:133: error: ‘FT_Vector’ does not name a type
src/ft2font.h:134: error: ‘FT_Error’ does not name a type
src/ft2font.h:135: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:135: error: template argument 1 is invalid
src/ft2font.h:135: error: template argument 2 is invalid
src/ft2font.h:136: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:136: error: template argument 1 is invalid
src/ft2font.h:136: error: template argument 2 is invalid
src/ft2font.h:141: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:51: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:116: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:116: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:116: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:117: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:118: error: ‘FT_Int’ was not declared in this scope
lipo: can't figure out the architecture type of: 
/var/folders/2d/t8xdmbdj103bmcjbm72j49980000gp/T//ccOY6Ibr.out
error: command 'gcc-4.2' failed with exit status 1

Any thoughts on how to fix it?

thanks, Andrew
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to