Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

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

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.schellart@...287...> 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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Also, you may want to try the make.osx script which lives beside
setup.py. See the associated README.osx file.

JDH

···

On Tue, May 25, 2010 at 10:10 AM, George Nurser <gnurser@...287...> wrote:

Hi,
Installing pkg-config sorted things out for me.

http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz

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 <jdh2358@...287...>:

On Tue, May 25, 2010 at 10:10 AM, George Nurser <gnurser@...287...> 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

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

···

On Tue, May 25, 2010 at 10:45 AM, Pim Schellart <p.schellart@...287...> wrote:

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 <jdh2358@...287...> wrote:

On Tue, May 25, 2010 at 10:45 AM, Pim Schellart <p.schellart@...287...> 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

Hi John and George,

I did of course rtfm :slight_smile:
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 :slight_smile:

Kind regards,

Pim Schellart

2010/5/25 George Nurser <gnurser@...287...>:

···

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 <jdh2358@...287...> wrote:

On Tue, May 25, 2010 at 10:45 AM, Pim Schellart <p.schellart@...287...> 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

Hi John and George,

I did of course rtfm :slight_smile:
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 :slight_smile:

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

···

On Wed, May 26, 2010 at 5:18 AM, Pim Schellart <p.schellart@...287...> wrote:

2010/5/25 Pim Schellart <p.schellart@...287...>:

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