From: Pim S. <p.s...@gm...> - 2010-05-25 15:03:42
|
Hi Everyone, I am attempting to compile matplotlib against a 64 bit version of Python 2.6 compiled and installed from source on OSX 10.6 (Snow Leopard). Numpy, scipy, freetype2 and libpng have been installed and work just fine, however I cannot get matplotlib to compile correctly. I get the following output: matplotlib-0.99.1.1 $ sudo python setup.py install ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.99.1.1 python: 2.6.5 (r265:79063, May 25 2010, 11:45:36) [GCC 4.2.1 (Apple Inc. build 5659)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.4.1 freetype2: found, but unknown version (no pkg-config) * WARNING: Could not find 'freetype2' headers in any * of '.', './freetype2'. OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) * Could not find 'libpng' headers in any of '.' Tkinter: Tkinter: 73770, Tk: 8.5, Tcl: 8.5 wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide adding pytz OPTIONAL USETEX DEPENDENCIES dvipng: 1.12 ghostscript: 8.70 latex: 3.1415926 [Edit setup.cfg to suppress the above messages] ============================================================================ pymods ['pylab'] packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] running install running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.6-intel-2.6/matplotlib/mpl-data copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.macosx-10.6-intel-2.6/matplotlib/mpl-data running build_ext building 'matplotlib.ft2font' extension gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.6/src/ft2font.o 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:13:22: error: ft2build.h: No such file or directory src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME> 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> In file included from src/ft2font.cpp:1: src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared src/ft2font.h:31: error: ‘FT_Int’ has not been declared src/ft2font.h:31: error: ‘FT_Int’ has not been declared src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with no type src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘&’ token src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with no type src/ft2font.h:122: error: ‘FT_Face’ does not name a type src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type src/ft2font.h:124: error: ‘FT_Vector’ does not name a type src/ft2font.h:125: error: ‘FT_Error’ does not name a type src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope src/ft2font.h:126: error: template argument 1 is invalid src/ft2font.h:126: error: template argument 2 is invalid src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope src/ft2font.h:127: error: template argument 1 is invalid src/ft2font.h:127: error: template argument 2 is invalid src/ft2font.h:133: error: ‘FT_BBox’ does not name a type src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type src/ft2font.cpp:96: error: variable or field ‘draw_bitmap’ declared void src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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:13:22: error: ft2build.h: No such file or directory src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME> 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> In file included from src/ft2font.cpp:1: src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared src/ft2font.h:31: error: ‘FT_Int’ has not been declared src/ft2font.h:31: error: ‘FT_Int’ has not been declared src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with no type src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘&’ token src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with no type src/ft2font.h:122: error: ‘FT_Face’ does not name a type src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type src/ft2font.h:124: error: ‘FT_Vector’ does not name a type src/ft2font.h:125: error: ‘FT_Error’ does not name a type src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope src/ft2font.h:126: error: template argument 1 is invalid src/ft2font.h:126: error: template argument 2 is invalid src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope src/ft2font.h:127: error: template argument 1 is invalid src/ft2font.h:127: error: template argument 2 is invalid src/ft2font.h:133: error: ‘FT_BBox’ does not name a type src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type src/ft2font.cpp:96: error: variable or field ‘draw_bitmap’ declared void src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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//ccrnooej.out error: command 'gcc' failed with exit status 1 It seems that freetype2 is not found which I tried to remedy by adding the following lines to the check_freetype function in setupext.py module.include_dirs.append('/usr/local/include') module.include_dirs.append('/usr/local/include/freetype2') This removes the warning about the header files but the compiling error remains (the pkg-config warning also remains). Any suggestions? Kind regards, Pim Schellart |
From: George N. <gn...@gm...> - 2010-05-25 15:10:17
|
Hi, Installing pkg-config sorted things out for me. http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz --George. On 25 May 2010 16:03, Pim Schellart <p.s...@gm...> wrote: > Hi Everyone, > > I am attempting to compile matplotlib against a 64 bit version of > Python 2.6 compiled and installed from source on OSX 10.6 (Snow > Leopard). > Numpy, scipy, freetype2 and libpng have been installed and work just > fine, however I cannot get matplotlib to compile correctly. > > I get the following output: > > matplotlib-0.99.1.1 $ sudo python setup.py install > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 0.99.1.1 > python: 2.6.5 (r265:79063, May 25 2010, 11:45:36) [GCC > 4.2.1 (Apple Inc. build 5659)] > platform: darwin > > REQUIRED DEPENDENCIES > numpy: 1.4.1 > freetype2: found, but unknown version (no pkg-config) > * WARNING: Could not find 'freetype2' headers in any > * of '.', './freetype2'. > > OPTIONAL BACKEND DEPENDENCIES > libpng: found, but unknown version (no pkg-config) > * Could not find 'libpng' headers in any of '.' > Tkinter: Tkinter: 73770, Tk: 8.5, Tcl: 8.5 > wxPython: no > * wxPython not found > Gtk+: no > * Building for Gtk+ requires pygtk; you must be able > * to "import gtk" in your build/install environment > Mac OS X native: yes > Qt: no > Qt4: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: matplotlib will provide > pytz: matplotlib will provide > adding pytz > > OPTIONAL USETEX DEPENDENCIES > dvipng: 1.12 > ghostscript: 8.70 > latex: 3.1415926 > > [Edit setup.cfg to suppress the above messages] > ============================================================================ > pymods ['pylab'] > packages ['matplotlib', 'matplotlib.backends', > 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', > 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', > 'matplotlib.numerix', 'matplotlib.numerix.mlab', > 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', > 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', > 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] > running install > running build > running build_py > copying lib/matplotlib/mpl-data/matplotlibrc -> > build/lib.macosx-10.6-intel-2.6/matplotlib/mpl-data > copying lib/matplotlib/mpl-data/matplotlib.conf -> > build/lib.macosx-10.6-intel-2.6/matplotlib/mpl-data > running build_ext > building 'matplotlib.ft2font' extension > gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk > -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 > -Wall -Wstrict-prototypes -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API > -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include > -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include/freetype2 > -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 > -c src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.6/src/ft2font.o > 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:13:22: error: ft2build.h: No such file or directory > src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME> > 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> > In file included from src/ft2font.cpp:1: > src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared > src/ft2font.h:31: error: ‘FT_Int’ has not been declared > src/ft2font.h:31: error: ‘FT_Int’ has not been declared > src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:122: error: ‘FT_Face’ does not name a type > src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type > src/ft2font.h:124: error: ‘FT_Vector’ does not name a type > src/ft2font.h:125: error: ‘FT_Error’ does not name a type > src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope > src/ft2font.h:126: error: template argument 1 is invalid > src/ft2font.h:126: error: template argument 2 is invalid > src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope > src/ft2font.h:127: error: template argument 1 is invalid > src/ft2font.h:127: error: template argument 2 is invalid > src/ft2font.h:133: error: ‘FT_BBox’ does not name a type > src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type > src/ft2font.cpp:96: error: variable or field ‘draw_bitmap’ declared void > src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope > src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope > src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope > src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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:13:22: error: ft2build.h: No such file or directory > src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME> > 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> > In file included from src/ft2font.cpp:1: > src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared > src/ft2font.h:31: error: ‘FT_Int’ has not been declared > src/ft2font.h:31: error: ‘FT_Int’ has not been declared > src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:122: error: ‘FT_Face’ does not name a type > src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type > src/ft2font.h:124: error: ‘FT_Vector’ does not name a type > src/ft2font.h:125: error: ‘FT_Error’ does not name a type > src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope > src/ft2font.h:126: error: template argument 1 is invalid > src/ft2font.h:126: error: template argument 2 is invalid > src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope > src/ft2font.h:127: error: template argument 1 is invalid > src/ft2font.h:127: error: template argument 2 is invalid > src/ft2font.h:133: error: ‘FT_BBox’ does not name a type > src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type > src/ft2font.cpp:96: error: variable or field ‘draw_bitmap’ declared void > src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope > src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope > src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope > src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/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//ccrnooej.out > error: command 'gcc' failed with exit status 1 > > It seems that freetype2 is not found which I tried to remedy by adding > the following lines to the check_freetype function in setupext.py > module.include_dirs.append('/usr/local/include') > module.include_dirs.append('/usr/local/include/freetype2') > This removes the warning about the header files but the compiling > error remains (the pkg-config warning also remains). > > Any suggestions? > > Kind regards, > > Pim Schellart > > ------------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: John H. <jd...@gm...> - 2010-05-25 15:30:48
|
On Tue, May 25, 2010 at 10:10 AM, George Nurser <gn...@gm...> wrote: > Hi, > Installing pkg-config sorted things out for me. > > http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz Also, you may want to try the make.osx script which lives beside setup.py. See the associated README.osx file. JDH |
From: Pim S. <p.s...@gm...> - 2010-05-25 15:45:20
|
Hi John and George, I tried both and although it now seems to find the libraries it still fails to link something. matplotlib-0.99.1.1 $ sudo python setup.py install ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.99.1.1 python: 2.6.5 (r265:79063, May 25 2010, 11:45:36) [GCC 4.2.1 (Apple Inc. build 5659)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.4.1 freetype2: 10.0.4 OPTIONAL BACKEND DEPENDENCIES libpng: 1.4.2 Tkinter: Tkinter: 73770, Tk: 8.5, Tcl: 8.5 wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide adding pytz OPTIONAL USETEX DEPENDENCIES dvipng: 1.12 ghostscript: 8.70 latex: 3.1415926 [Edit setup.cfg to suppress the above messages] ============================================================================ pymods ['pylab'] packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] running install running build running build_py creating build creating build/lib.macosx-10.6-intel-2.6 copying lib/pylab.py -> build/lib.macosx-10.6-intel-2.6 creating build/lib.macosx-10.6-intel-2.6/matplotlib copying lib/matplotlib/__init__.py -> build/lib.macosx-10.6-intel-2.6/matplotlib ... copying lib/dateutil/zoneinfo/zoneinfo-2008e.tar.gz -> build/lib.macosx-10.6-intel-2.6/dateutil/zoneinfo running build_ext building 'matplotlib.ft2font' extension creating build/temp.macosx-10.6-intel-2.6 creating build/temp.macosx-10.6-intel-2.6/src creating build/temp.macosx-10.6-intel-2.6/CXX gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.6/src/ft2font.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/mplutils.cpp -o build/temp.macosx-10.6-intel-2.6/src/mplutils.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxx_extensions.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/cxx_extensions.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxsupport.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/cxxsupport.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/IndirectPythonInterface.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/IndirectPythonInterface.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAYAUNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxextensions.c -o build/temp.macosx-10.6-intel-2.6/CXX/cxxextensions.o g++ -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.6-intel-2.6/src/ft2font.o build/temp.macosx-10.6-intel-2.6/src/mplutils.o build/temp.macosx-10.6-intel-2.6/CXX/cxx_extensions.o build/temp.macosx-10.6-intel-2.6/CXX/cxxsupport.o build/temp.macosx-10.6-intel-2.6/CXX/IndirectPythonInterface.o build/temp.macosx-10.6-intel-2.6/CXX/cxxextensions.o -L/usr/local/lib -lfreetype -lz -lstdc++ -lm -o build/lib.macosx-10.6-intel-2.6/matplotlib/ft2font.so ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libstdc++.dylib, file was built for unsupported file format which is not the architecture being linked (i386) building 'matplotlib.ttconv' extension creating build/temp.macosx-10.6-intel-2.6/ttconv gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/_ttconv.cpp -o build/temp.macosx-10.6-intel-2.6/src/_ttconv.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c ttconv/pprdrv_tt.cpp -o build/temp.macosx-10.6-intel-2.6/ttconv/pprdrv_tt.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c ttconv/pprdrv_tt2.cpp -o build/temp.macosx-10.6-intel-2.6/ttconv/pprdrv_tt2.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c ttconv/ttutil.cpp -o build/temp.macosx-10.6-intel-2.6/ttconv/ttutil.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ g++ -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.6-intel-2.6/src/_ttconv.o build/temp.macosx-10.6-intel-2.6/ttconv/pprdrv_tt.o build/temp.macosx-10.6-intel-2.6/ttconv/pprdrv_tt2.o build/temp.macosx-10.6-intel-2.6/ttconv/ttutil.o -o build/lib.macosx-10.6-intel-2.6/matplotlib/ttconv.so building 'matplotlib._cntr' extension gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/cntr.c -o build/temp.macosx-10.6-intel-2.6/src/cntr.o gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.6-intel-2.6/src/cntr.o -o build/lib.macosx-10.6-intel-2.6/matplotlib/_cntr.so building 'matplotlib._delaunay' extension creating build/temp.macosx-10.6-intel-2.6/lib creating build/temp.macosx-10.6-intel-2.6/lib/matplotlib creating build/temp.macosx-10.6-intel-2.6/lib/matplotlib/delaunay gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c lib/matplotlib/delaunay/_delaunay.cpp -o build/temp.macosx-10.6-intel-2.6/lib/matplotlib/delaunay/_delaunay.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* compute_planes_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:315: warning: ‘nodes’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:315: warning: ‘z’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:315: warning: ‘y’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* nn_interpolate_unstructured_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:469: warning: ‘intz’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* nn_interpolate_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘y’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘z’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘centers’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘nodes’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘neighbors’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* linear_interpolate_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:377: warning: ‘neighbors’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:377: warning: ‘nodes’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:377: warning: ‘y’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:377: warning: ‘planes’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* delaunay_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:209: warning: ‘vertices’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:116: note: ‘vertices’ was declared here lib/matplotlib/delaunay/_delaunay.cpp:116: warning: ‘tri_nbrs’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:116: note: ‘tri_nbrs’ was declared here lib/matplotlib/delaunay/_delaunay.cpp:116: warning: ‘tri_edges’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:116: note: ‘tri_edges’ was declared here lib/matplotlib/delaunay/_delaunay.cpp:667: warning: ‘y’ may be used uninitialized in this function cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* compute_planes_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:315: warning: ‘nodes’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:315: warning: ‘z’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:315: warning: ‘y’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* nn_interpolate_unstructured_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:469: warning: ‘intz’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* nn_interpolate_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘y’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘z’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘centers’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘nodes’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘neighbors’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* linear_interpolate_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:377: warning: ‘neighbors’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:377: warning: ‘nodes’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:377: warning: ‘y’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:377: warning: ‘planes’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject* delaunay_method(PyObject*, PyObject*)’: lib/matplotlib/delaunay/_delaunay.cpp:209: warning: ‘vertices’ is used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:116: note: ‘vertices’ was declared here lib/matplotlib/delaunay/_delaunay.cpp:116: warning: ‘tri_nbrs’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:116: note: ‘tri_nbrs’ was declared here lib/matplotlib/delaunay/_delaunay.cpp:116: warning: ‘tri_edges’ may be used uninitialized in this function lib/matplotlib/delaunay/_delaunay.cpp:116: note: ‘tri_edges’ was declared here lib/matplotlib/delaunay/_delaunay.cpp:667: warning: ‘y’ may be used uninitialized in this function gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp -o build/temp.macosx-10.6-intel-2.6/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c lib/matplotlib/delaunay/delaunay_utils.cpp -o build/temp.macosx-10.6-intel-2.6/lib/matplotlib/delaunay/delaunay_utils.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c lib/matplotlib/delaunay/natneighbors.cpp -o build/temp.macosx-10.6-intel-2.6/lib/matplotlib/delaunay/natneighbors.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ g++ -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.6-intel-2.6/lib/matplotlib/delaunay/_delaunay.o build/temp.macosx-10.6-intel-2.6/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o build/temp.macosx-10.6-intel-2.6/lib/matplotlib/delaunay/delaunay_utils.o build/temp.macosx-10.6-intel-2.6/lib/matplotlib/delaunay/natneighbors.o -o build/lib.macosx-10.6-intel-2.6/matplotlib/_delaunay.so building 'matplotlib.nxutils' extension gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/nxutils.c -o build/temp.macosx-10.6-intel-2.6/src/nxutils.o gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.6-intel-2.6/src/nxutils.o -o build/lib.macosx-10.6-intel-2.6/matplotlib/nxutils.so building 'matplotlib._path' extension creating build/temp.macosx-10.6-intel-2.6/agg24 creating build/temp.macosx-10.6-intel-2.6/agg24/src gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_curves.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_curves.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_bezier_arc.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_bezier_arc.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_trans_affine.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_trans_affine.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_vcgen_stroke.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_vcgen_stroke.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxx_extensions.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/cxx_extensions.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxsupport.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/cxxsupport.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/IndirectPythonInterface.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/IndirectPythonInterface.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxextensions.c -o build/temp.macosx-10.6-intel-2.6/CXX/cxxextensions.o gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/agg_py_transforms.cpp -o build/temp.macosx-10.6-intel-2.6/src/agg_py_transforms.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/path_cleanup.cpp -o build/temp.macosx-10.6-intel-2.6/src/path_cleanup.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/path.cpp -o build/temp.macosx-10.6-intel-2.6/src/path.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ src/path.cpp: In function ‘void clip_to_rect(PathIterator&, double, double, double, double, bool, std::vector<std::vector<XY, std::allocator<XY> >, std::allocator<std::vector<XY, std::allocator<XY> > > >&)’: src/path.cpp:821: warning: ‘y’ may be used uninitialized in this function src/path.cpp:821: warning: ‘x’ may be used uninitialized in this function cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ src/path.cpp: In function ‘void clip_to_rect(PathIterator&, double, double, double, double, bool, std::vector<std::vector<XY, std::allocator<XY> >, std::allocator<std::vector<XY, std::allocator<XY> > > >&)’: src/path.cpp:821: warning: ‘y’ may be used uninitialized in this function src/path.cpp:821: warning: ‘x’ may be used uninitialized in this function g++ -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.6-intel-2.6/agg24/src/agg_curves.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_bezier_arc.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_trans_affine.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_vcgen_stroke.o build/temp.macosx-10.6-intel-2.6/CXX/cxx_extensions.o build/temp.macosx-10.6-intel-2.6/CXX/cxxsupport.o build/temp.macosx-10.6-intel-2.6/CXX/IndirectPythonInterface.o build/temp.macosx-10.6-intel-2.6/CXX/cxxextensions.o build/temp.macosx-10.6-intel-2.6/src/agg_py_transforms.o build/temp.macosx-10.6-intel-2.6/src/path_cleanup.o build/temp.macosx-10.6-intel-2.6/src/path.o -lstdc++ -lm -o build/lib.macosx-10.6-intel-2.6/matplotlib/_path.so building 'matplotlib.backends._backend_agg' extension gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_trans_affine.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_trans_affine.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_bezier_arc.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_bezier_arc.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_curves.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_curves.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_vcgen_dash.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_vcgen_dash.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_vcgen_stroke.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_vcgen_stroke.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_image_filters.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_image_filters.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/mplutils.cpp -o build/temp.macosx-10.6-intel-2.6/src/mplutils.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/agg_py_transforms.cpp -o build/temp.macosx-10.6-intel-2.6/src/agg_py_transforms.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxx_extensions.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/cxx_extensions.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxsupport.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/cxxsupport.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/IndirectPythonInterface.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/IndirectPythonInterface.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxextensions.c -o build/temp.macosx-10.6-intel-2.6/CXX/cxxextensions.o gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/freetype2 -I/usr/local/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/backend_agg.cpp -o build/temp.macosx-10.6-intel-2.6/src/backend_agg.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ g++ -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.6-intel-2.6/agg24/src/agg_trans_affine.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_bezier_arc.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_curves.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_vcgen_dash.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_vcgen_stroke.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_image_filters.o build/temp.macosx-10.6-intel-2.6/src/mplutils.o build/temp.macosx-10.6-intel-2.6/src/agg_py_transforms.o build/temp.macosx-10.6-intel-2.6/CXX/cxx_extensions.o build/temp.macosx-10.6-intel-2.6/CXX/cxxsupport.o build/temp.macosx-10.6-intel-2.6/CXX/IndirectPythonInterface.o build/temp.macosx-10.6-intel-2.6/CXX/cxxextensions.o build/temp.macosx-10.6-intel-2.6/src/backend_agg.o -L/usr/local/lib -lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o build/lib.macosx-10.6-intel-2.6/matplotlib/backends/_backend_agg.so ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libstdc++.dylib, file was built for unsupported file format which is not the architecture being linked (i386) building 'matplotlib._image' extension gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/image.cpp -o build/temp.macosx-10.6-intel-2.6/src/image.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/mplutils.cpp -o build/temp.macosx-10.6-intel-2.6/src/mplutils.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_trans_affine.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_trans_affine.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_image_filters.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_image_filters.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c agg24/src/agg_bezier_arc.cpp -o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_bezier_arc.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxx_extensions.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/cxx_extensions.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxsupport.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/cxxsupport.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/IndirectPythonInterface.cxx -o build/temp.macosx-10.6-intel-2.6/CXX/IndirectPythonInterface.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c CXX/cxxextensions.c -o build/temp.macosx-10.6-intel-2.6/CXX/cxxextensions.o g++ -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -bundle -undefined dynamic_lookup build/temp.macosx-10.6-intel-2.6/src/image.o build/temp.macosx-10.6-intel-2.6/src/mplutils.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_trans_affine.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_image_filters.o build/temp.macosx-10.6-intel-2.6/agg24/src/agg_bezier_arc.o build/temp.macosx-10.6-intel-2.6/CXX/cxx_extensions.o build/temp.macosx-10.6-intel-2.6/CXX/cxxsupport.o build/temp.macosx-10.6-intel-2.6/CXX/IndirectPythonInterface.o build/temp.macosx-10.6-intel-2.6/CXX/cxxextensions.o -lstdc++ -lm -o build/lib.macosx-10.6-intel-2.6/matplotlib/_image.so building 'matplotlib._png' extension gcc -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include/libpng14 -I. -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/_png.cpp -o build/temp.macosx-10.6-intel-2.6/src/_png.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ src/_png.cpp: In member function ‘Py::Object _png_module::write_png(const Py::Tuple&)’: src/_png.cpp:125: warning: ‘jmpbuf’ is deprecated (declared at /usr/local/include/libpng14/png.h:1093) src/_png.cpp:125: warning: ‘jmpbuf’ is deprecated (declared at /usr/local/include/libpng14/png.h:1093) src/_png.cpp: In member function ‘Py::Object _png_module::read_png(const Py::Tuple&)’: src/_png.cpp:213: warning: ‘width’ is deprecated (declared at /usr/local/include/libpng14/png.h:636) src/_png.cpp:213: warning: ‘width’ is deprecated (declared at /usr/local/include/libpng14/png.h:636) src/_png.cpp:214: warning: ‘height’ is deprecated (declared at /usr/local/include/libpng14/png.h:637) src/_png.cpp:214: warning: ‘height’ is deprecated (declared at /usr/local/include/libpng14/png.h:637) src/_png.cpp:216: warning: ‘bit_depth’ is deprecated (declared at /usr/local/include/libpng14/png.h:648) src/_png.cpp:216: warning: ‘bit_depth’ is deprecated (declared at /usr/local/include/libpng14/png.h:648) src/_png.cpp:224: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:224: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:232: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:232: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:236: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:236: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:257: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:257: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:259: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:259: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:264: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:264: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:293: error: ‘png_infopp_NULL’ was not declared in this scope cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ src/_png.cpp: In member function ‘Py::Object _png_module::write_png(const Py::Tuple&)’: src/_png.cpp:125: warning: ‘jmpbuf’ is deprecated (declared at /usr/local/include/libpng14/png.h:1093) src/_png.cpp:125: warning: ‘jmpbuf’ is deprecated (declared at /usr/local/include/libpng14/png.h:1093) src/_png.cpp: In member function ‘Py::Object _png_module::read_png(const Py::Tuple&)’: src/_png.cpp:213: warning: ‘width’ is deprecated (declared at /usr/local/include/libpng14/png.h:636) src/_png.cpp:213: warning: ‘width’ is deprecated (declared at /usr/local/include/libpng14/png.h:636) src/_png.cpp:214: warning: ‘height’ is deprecated (declared at /usr/local/include/libpng14/png.h:637) src/_png.cpp:214: warning: ‘height’ is deprecated (declared at /usr/local/include/libpng14/png.h:637) src/_png.cpp:216: warning: ‘bit_depth’ is deprecated (declared at /usr/local/include/libpng14/png.h:648) src/_png.cpp:216: warning: ‘bit_depth’ is deprecated (declared at /usr/local/include/libpng14/png.h:648) src/_png.cpp:224: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:224: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:232: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:232: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:236: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:236: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:257: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:257: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:259: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:259: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:264: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:264: warning: ‘color_type’ is deprecated (declared at /usr/local/include/libpng14/png.h:650) src/_png.cpp:293: error: ‘png_infopp_NULL’ was not declared in this scope lipo: can't figure out the architecture type of: /var/tmp//cc42NVrj.out error: command 'gcc' failed with exit status 1 However when I check the architectures of the libraries (including libpng and freetype) I get: lipo -info /usr/local/lib/*.dylib Architectures in the fat file: /usr/local/lib/libfreetype.6.dylib are: i386 x86_64 Architectures in the fat file: /usr/local/lib/libfreetype.dylib are: i386 x86_64 Architectures in the fat file: /usr/local/lib/libgcc_ext.10.4.dylib are: x86_64 i386 Architectures in the fat file: /usr/local/lib/libgcc_ext.10.5.dylib are: x86_64 i386 Architectures in the fat file: /usr/local/lib/libgcc_s.1.dylib are: x86_64 i386 Architectures in the fat file: /usr/local/lib/libgcc_s.10.4.dylib are: x86_64 i386 Architectures in the fat file: /usr/local/lib/libgcc_s.10.5.dylib are: x86_64 i386 Architectures in the fat file: /usr/local/lib/libgcc_s_ppc64.1.dylib are: x86_64 i386 Architectures in the fat file: /usr/local/lib/libgcc_s_x86_64.1.dylib are: x86_64 i386 Architectures in the fat file: /usr/local/lib/libpng.dylib are: i386 x86_64 Architectures in the fat file: /usr/local/lib/libpng14.14.dylib are: i386 x86_64 Architectures in the fat file: /usr/local/lib/libpng14.dylib are: i386 x86_64 Non-fat file: /usr/local/lib/libgfortran.3.dylib is architecture: x86_64 Non-fat file: /usr/local/lib/libgfortran.dylib is architecture: x86_64 Non-fat file: /usr/local/lib/libgomp.1.dylib is architecture: x86_64 Non-fat file: /usr/local/lib/libgomp.dylib is architecture: x86_64 Non-fat file: /usr/local/lib/libssp.0.dylib is architecture: x86_64 Non-fat file: /usr/local/lib/libssp.dylib is architecture: x86_64 Non-fat file: /usr/local/lib/libstdc++.6.dylib is architecture: x86_64 Non-fat file: /usr/local/lib/libstdc++.dylib is architecture: x86_64 Is there a way to tell setup.py to only compile x86_64 so I can be sure the problem is in the 64 bit binaries? Kind regards, Pim Schellart 2010/5/25 John Hunter <jd...@gm...>: > On Tue, May 25, 2010 at 10:10 AM, George Nurser <gn...@gm...> wrote: >> Hi, >> Installing pkg-config sorted things out for me. >> >> http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz > > Also, you may want to try the make.osx script which lives beside > setup.py. See the associated README.osx file. > > JDH > |
From: Friedrich R. <fri...@gm...> - 2010-05-27 08:11:19
|
2010/5/25 Pim Schellart <p.s...@gm...>: > I tried both and although it now seems to find the libraries it still > fails to link something. > > src/_png.cpp:293: error: ‘png_infopp_NULL’ was not declared in this scope > src/_png.cpp:293: error: ‘png_infopp_NULL’ was not declared in this scope I compiled matplotlib-0.99.1.2 just yesterday fine on Snow Leopard from source without being aware of make.osx (with freetype2-2.3.12, libpng-1.4.1). The problem I'm citing here, which seems to be actually also your problem, is due to an API change in linbpng from 1.3 to 1.4. I soon ago pointed this out on the list but there were no responses. One can add #defines for the missing things in src/_png.cpp to fix it. I don't know if you would run into some more problems but this one is solvable. But I also modified setupext.py to find my libraries in /usr/local. Friedrich |
From: John H. <jd...@gm...> - 2010-05-25 15:58:22
|
On Tue, May 25, 2010 at 10:45 AM, Pim Schellart <p.s...@gm...> wrote: > Hi John and George, > > I tried both and although it now seems to find the libraries it still > fails to link something. > > matplotlib-0.99.1.1 $ sudo python setup.py install According to the README I pointed you too, this isn't the command you should be running. Rather, Example usage:: PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install But I advise you work from the svn trunk if you want to go this route, as I have made some updates for 64bit/python2.6 OSX there > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib JDH |
From: George N. <gn...@gm...> - 2010-05-25 16:55:03
|
If what John suggests doesn't work, and you really only need 64 bit, then the nuclear option is to remove all occurrences of -arch i386 from the makefile (assuming you have a framework build) at /Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/config/Makefile This should only generate x86_64. Obviously, save the current one, so you can go back to it. HTH, George. On 25 May 2010 16:58, John Hunter <jd...@gm...> wrote: > On Tue, May 25, 2010 at 10:45 AM, Pim Schellart <p.s...@gm...> wrote: >> Hi John and George, >> >> I tried both and although it now seems to find the libraries it still >> fails to link something. >> >> matplotlib-0.99.1.1 $ sudo python setup.py install > > According to the README I pointed you too, this isn't the command you > should be running. Rather, > > Example usage:: > > PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install > > But I advise you work from the svn trunk if you want to go this route, > as I have made some updates for 64bit/python2.6 OSX there > > > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib > matplotlib > > JDH > |
From: Pim S. <p.s...@gm...> - 2010-05-26 10:18:37
|
Hi John and George, I did of course rtfm :) However when I do this for the latest svn checkout I get: matplotlib $ PREFIX=/usr/local sudo make -f make.osx fetch deps mpl_install Password: python2.6 -c 'import urllib; urllib.urlretrieve("http://www.zlib.net/zlib-1.2.3.tar.gz", "zlib-1.2.3.tar.gz")' &&\ python2.6 -c 'import urllib; urllib.urlretrieve("http://downloads.sourceforge.net/project/libpng/libpng-stable/1.2.39/libpng-1.2.39.tar.gz", "libpng-1.2.39.tar.gz")' &&\ python2.6 -c 'import urllib; urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-2.3.11.tar.bz2", "freetype-2.3.11.tar.bz2")' export PKG_CONFIG_PATH="/lib/pkgconfig" &&\ rm -rf zlib-1.2.3 &&\ tar xvfj zlib-1.2.3.tar.gz &&\ cd zlib-1.2.3 &&\ export MACOSX_DEPLOYMENT_TARGET=10.6 &&\ export CFLAGS="-arch i386 -arch x86_64 -I/include -I/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" &&\ export LDFLAGS="-arch i386 -arch x86_64 -L/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" &&\ ./configure --prefix=&&\ MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch i386 -arch x86_64 -I/include -I/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" LDFLAGS="-arch i386 -arch x86_64 -L/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" make -j3 install&& \ unset MACOSX_DEPLOYMENT_TARGET tar: Unrecognized archive format: Inappropriate file type or format tar: Error exit delayed from previous errors. make: *** [zlib] Error 1 However I would prefer to use my independently installed freetype2 and libpng libraries, rather than installing them again. Does anyone have an idea where the architecture error comes from, or how to check this? Also, why is a separate make.osx file needed? Could the same functionality not have been integrated into the setup.py script? This is not a rant, just a question :) Kind regards, Pim Schellart 2010/5/25 George Nurser <gn...@gm...>: > If what John suggests doesn't work, and you really only need 64 bit, > then the nuclear option is to remove all occurrences of > -arch i386 > from the makefile (assuming you have a framework build) at > > /Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/config/Makefile > > This should only generate x86_64. > > Obviously, save the current one, so you can go back to it. > > HTH, George. > > On 25 May 2010 16:58, John Hunter <jd...@gm...> wrote: >> On Tue, May 25, 2010 at 10:45 AM, Pim Schellart <p.s...@gm...> wrote: >>> Hi John and George, >>> >>> I tried both and although it now seems to find the libraries it still >>> fails to link something. >>> >>> matplotlib-0.99.1.1 $ sudo python setup.py install >> >> According to the README I pointed you too, this isn't the command you >> should be running. Rather, >> >> Example usage:: >> >> PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install >> >> But I advise you work from the svn trunk if you want to go this route, >> as I have made some updates for 64bit/python2.6 OSX there >> >> > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib >> matplotlib >> >> JDH >> > |
From: John H. <jd...@gm...> - 2010-05-26 12:50:10
|
On Wed, May 26, 2010 at 5:18 AM, Pim Schellart <p.s...@gm...> wrote: > Hi John and George, > > I did of course rtfm :) > However when I do this for the latest svn checkout I get: > > matplotlib $ PREFIX=/usr/local sudo make -f make.osx fetch deps mpl_install > Password: > python2.6 -c 'import urllib; > urllib.urlretrieve("http://www.zlib.net/zlib-1.2.3.tar.gz", > "zlib-1.2.3.tar.gz")' &&\ > python2.6 -c 'import urllib; > urllib.urlretrieve("http://downloads.sourceforge.net/project/libpng/libpng-stable/1.2.39/libpng-1.2.39.tar.gz", > "libpng-1.2.39.tar.gz")' &&\ > python2.6 -c 'import urllib; > urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-2.3.11.tar.bz2", > "freetype-2.3.11.tar.bz2")' > export PKG_CONFIG_PATH="/lib/pkgconfig" &&\ > rm -rf zlib-1.2.3 &&\ > tar xvfj zlib-1.2.3.tar.gz &&\ > cd zlib-1.2.3 &&\ > export MACOSX_DEPLOYMENT_TARGET=10.6 &&\ > export CFLAGS="-arch i386 -arch x86_64 -I/include > -I/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" &&\ > export LDFLAGS="-arch i386 -arch x86_64 -L/lib > -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" &&\ > ./configure --prefix=&&\ > MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch i386 -arch x86_64 > -I/include -I/include/freetype2 -isysroot > /Developer/SDKs/MacOSX10.6.sdk" LDFLAGS="-arch i386 -arch x86_64 > -L/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" make -j3 install&& > \ Looks like a bug in the makefile -- when un-tarring zlib, it should be 'tar xvfz' not 'tar xvfj'. I was recently tinkering with bz bs gz files and looks like the flags got out of whack. I've patched this in svn so you can 'svn up' and try again. > unset MACOSX_DEPLOYMENT_TARGET > tar: Unrecognized archive format: Inappropriate file type or format > tar: Error exit delayed from previous errors. > make: *** [zlib] Error 1 > > However I would prefer to use my independently installed freetype2 and > libpng libraries, rather than installing them again. > Does anyone have an idea where the architecture error comes from, or > how to check this? > Also, why is a separate make.osx file needed? > Could the same functionality not have been integrated into the setup.py script? > This is not a rant, just a question :) You could hack through make.osx to find your own libs. We do it this way to build distributable binaries where we can't count on targets having the right png/freetype on their os x systems. distutils is limited as a configure system so it is difficult to hack this kind of stuff into setup.py. Not that what we are doing is ideal, but we have been striving for "works" over "perfect". The former is hard enough on OS X. Any improvements you can make to make this more general are of course welcome. JDH |
From: Pim S. <p.s...@gm...> - 2010-05-26 15:48:19
|
Dear John and George, I am happy to report that everything is now working! The latest SVN patch fixed the fetch problem and a complete removal of my custom compiled libpng and libfreetype2 followed by: sudo make -f make.osx fetch deps mpl_build mpl_install sudo python setup.py install did the rest. Thank you for all your help! Kind regards, Pim Schellart P.S. I am looking forward to seeing 64 binaries for Python 2.6/2.7 and numpy/scipy/matplotlib on OSX 10.6 at some point in the future :) 2010/5/26 John Hunter <jd...@gm...>: > On Wed, May 26, 2010 at 8:20 AM, John Hunter <jd...@gm...> wrote: >> On Wed, May 26, 2010 at 8:14 AM, Pim Schellart <p.s...@gm...> wrote: >>> I still get the error (after svn up to revision 8336) but strangely >>> when I try to decompress manually I get: >>> >>> matplotlib $ gunzip zlib-1.2.3.tar.gz >>> >>> gzip: zlib-1.2.3.tar.gz: not in gzip format >> >> I'm getting that too -- looks like the target has moved. When I cat >> the file I see > > OK, I think I have this fixed. I can now fetch valid files: > > jdhunter@uqbar:mpl> make -f make.osx clean > rm -rf zlib-1.2.3.tar.gz libpng-1.2.39.tar.bz2 \ > freetype-2.3.11.tar.bz2 bdist_mpkg-.tar.gz \ > bdist_mpkg- \ > zlib-1.2.3 libpng-1.2.39 freetype-2.3.11 \ > build > jdhunter@uqbar:mpl> make -f make.osx fetch > python2.6 -c 'import urllib; > urllib.urlretrieve("http://superb-sea2.dl.sourceforge.net/project/libpng/zlib/1.2.3/zlib-1.2.3.tar.gz", > "zlib-1.2.3.tar.gz")' &&\ > python2.6 -c 'import urllib; > urllib.urlretrieve("http://sourceforge.net/projects/libpng/files/libpng-stable/1.2.39/libpng-1.2.39.tar.gz/download", > "libpng-1.2.39.tar.gz")' &&\ > python2.6 -c 'import urllib; > urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-2.3.11.tar.bz2", > "freetype-2.3.11.tar.bz2")' > jdhunter@uqbar:mpl> tar xvfz zlib-1.2.3.tar.gz|head > zlib-1.2.3/ > zlib-1.2.3/adler32.c > zlib-1.2.3/algorithm.txt > zlib-1.2.3/amiga/ > zlib-1.2.3/amiga/Makefile.pup > zlib-1.2.3/amiga/Makefile.sas > zlib-1.2.3/as400/ > zlib-1.2.3/as400/bndsrc > zlib-1.2.3/as400/compile.clp > zlib-1.2.3/as400/readme.txt > jdhunter@uqbar:mpl> tar xvfz libpng-1.2.39.tar.gz |head > libpng-1.2.39/ > libpng-1.2.39/pngpread.c > libpng-1.2.39/pngnow.png > libpng-1.2.39/README > libpng-1.2.39/config.guess > libpng-1.2.39/TODO > libpng-1.2.39/pngrtran.c > libpng-1.2.39/pngwutil.c > libpng-1.2.39/configure > libpng-1.2.39/pngtest.c > jdhunter@uqbar:mpl> tar tvfj freetype-2.3.11.tar.bz2 |head > tar: Record size = 8 blocks > drwxr-xr-x wl/users 0 2009-10-10 11:37 freetype-2.3.11/ > -rw-r--r-- wl/users 35819 2009-03-14 06:45 freetype-2.3.11/vms_make.com > -rw-r--r-- wl/users 91573 2009-03-14 06:45 freetype-2.3.11/ChangeLog.20 > -rw-r--r-- wl/users 236 2009-03-14 06:45 freetype-2.3.11/version.sed > -rw-r--r-- wl/users 1469 2009-03-14 06:45 freetype-2.3.11/Jamrules > -rw-r--r-- wl/users 5687 2009-10-10 11:21 freetype-2.3.11/Jamfile > -rwxr-xr-x wl/users 3573 2009-07-03 06:28 freetype-2.3.11/configure > drwxr-xr-x wl/users 0 2009-10-10 11:37 freetype-2.3.11/docs/ > -rw-r--r-- wl/users 1260 2009-03-14 06:45 freetype-2.3.11/docs/LICENSE.TXT > drwxr-xr-x wl/users 0 2009-10-10 11:37 freetype-2.3.11/docs/reference/ > |
From: John H. <jd...@gm...> - 2010-05-26 15:49:51
|
On Wed, May 26, 2010 at 10:47 AM, Pim Schellart <p.s...@gm...> wrote: > Dear John and George, > > I am happy to report that everything is now working! > The latest SVN patch fixed the fetch problem and a complete removal of > my custom compiled libpng and libfreetype2 followed by: > > sudo make -f make.osx fetch deps mpl_build mpl_install > sudo python setup.py install > > did the rest. > > Thank you for all your help! > > Kind regards, > > Pim Schellart > > P.S. I am looking forward to seeing 64 binaries for Python 2.6/2.7 and > numpy/scipy/matplotlib on OSX 10.6 at some point in the future :) Well, now you can make them yourself :-) > make -f make.osx binaries But we will try to get some official ones out in the near future. JDH |
From: Pim S. <p.s...@gm...> - 2010-05-27 12:28:28
|
Dear Friedrich, sorry for the confusion. It may very well be that I misinterpreted part of the problem as I am no expert either. The problem came to be as follows. At first I used the binaries for the latest stable releases of Python 2.6 + numpy + matplotlib from the respected websites. But in order to compile a custom library I needed Python to be compiled 64 bit. This worked for Python, numpy and scipy but not for matplotlib. I used to be able to compile matplotlib with a simple "sudo python setup.py install" but when I tried to do this after the change to 64 bit the build failed with some errors which seemed to me to be related to freetype not being compiled 64 bit (these errors, which I unfortunately did not save clearly indicated that the linker could not find some symbols and when I checked the architecture of the libs it was i386 only). I tried to fix this by first compiling freetype 64 bit, and later libpng as well. The problem now was that setupext.py did not look in the right location for my new libpng build. After I installed pkgtool this was also solved, however now the reported error occurred. I also could not use the make.osx script from the latest svn checkout because of a bug in the fetching of zlib which John fixed. Finally removing my custom installations of freetype and libpng and using make.osx to fetch and build them solved the problem. Oh and somewhere in all this mess I also managed to build it but then got a malloc error when loading so I tried the removing of i386 but this did not solve the problem so I changed it back. I guess the conclusion is that the current svn works, but only with the make.osx approach. If I had the time I would try it again on a fresh install to see where the bug is that prevents setup.py from working with a custom compiled freetype and libpng but for now I am happy that it finally works :) Kind regards, Pim Schellart 2010/5/27 Friedrich Romstedt <fri...@gm...>: > 2010/5/27 Pim Schellart <p.s...@gm...>: >> thank you for the tip, I'll try and see if the stable release works as >> well with this adjustment. >> The problem however was not just in compiling on Snow Leopard, but >> compiling specifically against a custom compiled 64 bit only version >> of python. >> This now works with the make.osx file and the latest svn release, >> although I agree this is an ugly solution and would prefer the same >> build system on every OS. > > Pim, > > I must confess that I'm lost a bit in all this details and all this > patches ... I hope that I'm not alone with this ... Can you maybe give > a short summary on the list? > > First I don't understand why you compiled a "64 bit only" version of > your Python. I.e., what am I missing, when I compile my Python 2.6 > the usual way? (I also have a 64 bit machine.) > > Then, your first error seems to originate from: >> src/ft2font.h:13:22: error: ft2build.h: No such file or directory > > I don't know, but I guess it's due to not finding the correct include > directory for you self-compiled freetype2? If it is like this, I > fixed it in setupext.py (the "darwin" section, not the "darwin_" > section). The search path list is empty for "darwin", and I added > "/usr/local" into it. Actually I don't remember precisely what the > error was making me fixing this ... And it's true, I simply ignored > the "# So I'm pointing to ..." comment in setupext.py ... > > Then the next error you reported was clearly related to libpng API > change, so again nothing with 32/64 bit issues. > > So, I don't understand your conclusion that at all you have problems > due to your 64bit-only built Python? Sorry, maybe I miss something > obvious? I think people have been trusting you that it's a 64bit > issue, and gave suggestions based on that, but maybe it isn't at all? > Just a whacky thought! I simply cannot find an error pointing towards > this root! I now went throught it again finally, and I found that > magically John mentioned his "work for 64bit Python on the make.osx > file", and then there was some "remove all -arch i386" recommendation, > but it's all a bit unclear to me ... Sorry, I'm not an expert at all, > my intention is just to track the problem /not to the false root/ > down. > > My explanation is: You downloaded by using make.osx an older version > of libpng (1.2) and additionally a freetype version in local > directory, so all the -Is are working respectively. This solved both > your freetype problem and your libpng problem. I need some advice > what else was solved by make.osx? > > Of course this path is good for creating binaries with libpng and > freetype2 hardlinked, but I don't see the clue for your case. > > Friedrich > |
From: Friedrich R. <fri...@gm...> - 2010-05-27 13:25:44
|
Dear Pim, 2010/5/27 Pim Schellart <p.s...@gm...>: > At first I used the binaries for the latest stable releases of Python > 2.6 + numpy + matplotlib from the respected websites. > But in order to compile a custom library I needed Python to be compiled 64 bit. For me this was the same with PIL ... though I didn't need 64bit for that. And I agree, for a new Mac user it's a mess. > This worked for Python, numpy and scipy but not for matplotlib. > I used to be able to compile matplotlib with a simple "sudo python > setup.py install" but when I tried to do this after the change to 64 > bit the build failed with some errors which seemed to me to be related > to freetype not being compiled 64 bit (these errors, which I > unfortunately did not save clearly indicated that the linker could not > find some symbols and when I checked the architecture of the libs it > was i386 only). > I tried to fix this by first compiling freetype 64 bit, and later > libpng as well. > The problem now was that setupext.py did not look in the right > location for my new libpng build. > After I installed pkgtool this was also solved, however now the > reported error occurred. And this error was due to the API change. > I also could not use the make.osx script from the latest svn checkout > because of a bug in the fetching of zlib which John fixed. > Finally removing my custom installations of freetype and libpng and > using make.osx to fetch and build them solved the problem. > Oh and somewhere in all this mess I also managed to build it but then > got a malloc error when loading so I tried the removing of i386 but > this did not solve the problem so I changed it back. This I don't understand. > I guess the conclusion is that the current svn works, but only with > the make.osx approach. I cannot agree currently. I can try to do my first contact with svn, but for the stable release, it works as said before with some tweaking in setupext.py and src/_png.cpp too. Also we seem to have quite similar machines and prerequisites. The setupext.py tweak may be omittable by using pkgtool. So my conclusion is that with using pkgtool and the change in src/_png.cpp matplotlib should be buildable from sources with setup.py. John, shouldn't we finally fix this ugly src/_png.cpp problem? More and more people run into problems when using the recent libpng-1.4. The lines to be added to _png.cpp are: #define png_infopp_NULL (png_infopp)NULL #define int_p_NULL (int*)NULL Maybe libpng defines some constant to make use of in determining whether the build is with libpng-1.2 or 1.4. > If I had the time I would try it again on a fresh install to see where > the bug is that prevents setup.py from working with a custom compiled > freetype and libpng but for now I am happy that it finally works :) I can understand you and I'm facing the same problem. Friedrich |