install from svn on Linux not working for me

Thanks, but after installing libfreetype6-dev, I tried to install
matplotlib again and still get a lot of errors. Listed below.

Che

Ouput of install:

basedirlist is: ['/usr/local', '/usr']

···

---------- Forwarded message ----------
From: C M <cmpython@...287...>
Date: Mon, Apr 19, 2010 at 1:02 PM
Subject: Re: [Matplotlib-users] install from svn on Linux not working for me
To: Darren Dale <dsdale24@...287...>

On Mon, Apr 19, 2010 at 8:02 AM, Darren Dale <dsdale24@...287...> wrote:

On Mon, Apr 19, 2010 at 4:30 AM, LUK ShunTim <lukshuntim@...287...> wrote:

On 04/19/2010 01:52 PM, C M wrote:

My goal is to just get the lastest svn version of matplotlib, or, if
not that, just the 0.99 version, up and working on my Linux (Intrepid
Ibex) computer. I checked it matplotlib out from svn fine, and then,
as per the webpage, did:

cd matplotlib
python setup.py install

and that resulted in a very large amount of errors. I'll post them at
the bottom of this message, since there are many lines.

I previously had 0.98.x installed, via the Ubuntu repositories, but I
have uninstalled it. My version is:
Linux ubuntu 2.6.27-7-generic #1 SMP Fri Oct 24 06:40:41 UTC 2008
x86_64 GNU/Linux

Any help is appreciated. Thank you,
Che

Errors (starting from a few lines before):

creating build/temp.linux-x86_64-2.5/src
creating build/temp.linux-x86_64-2.5/CXX
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/include/python2.5 -c src/ft2font.cpp -o
build/temp.linux-x86_64-2.5/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
In file included from ./CXX/Extensions.hxx:37,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
./CXX/WrapPython.h:58:20: error: Python.h: No such file or directory

You seem not to have the development package of python installed.
Try "sudo apt-get install python-dev".

It looks like you are need to install libfreetype6-dev. Any time you
see missing .h files in your output, it means you need to install the
development headers for that package.

Darren

============================================================================
BUILDING MATPLOTLIB
matplotlib: 1.0.svn
python: 2.5.2 (r252:60911, Jan 20 2010, 23:33:04) [GCC
4.3.2]
platform: linux2

REQUIRED DEPENDENCIES
numpy: 1.1.1
freetype2: 9.18.3

OPTIONAL BACKEND DEPENDENCIES
libpng: found, but unknown version (no pkg-config)
* Could not find 'libpng' headers in any of
* '/usr/local/include', '/usr/include', '.'
Tkinter: no
* TKAgg requires Tkinter
wxPython: 2.8.10.1
* WxAgg extension not required for wxPython >= 2.8
pkg-config: looking for pygtk-2.0 gtk+-2.0
* Package pygtk-2.0 was not found in the pkg-config
* search path. Perhaps you should add the directory
* containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
* environment variable No package 'pygtk-2.0' found
* Package gtk+-2.0 was not found in the pkg-config
* search path. Perhaps you should add the directory
* containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH
* environment variable No package 'gtk+-2.0' found
* You may need to install 'dev' package(s) to
* provide header files.
Gtk+: no
* Could not find Gtk+ headers in any of
* '/usr/local/include', '/usr/include', '.'
Mac OS X native: no
Qt: no
Qt4: no
Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.4
pytz: 2008b

OPTIONAL USETEX DEPENDENCIES
dvipng: 1.11
ghostscript: 8.63
latex: 3.141592
pdftops: 3.00

[Edit setup.cfg to suppress the above messages]

pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units',
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1',
'mpl_toolkits.axisartist', 'matplotlib.sphinxext',
'matplotlib.numerix', 'matplotlib.numerix.mlab',
'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay']
running install
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/ft2font.cpp -o
build/temp.linux-x86_64-2.5/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/mplutils.cpp -o
build/temp.linux-x86_64-2.5/src/mplutils.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/cxxsupport.cxx -o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/cxx_extensions.cxx -o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/IndirectPythonInterface.cxx -o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/cxxextensions.c -o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/ft2font.o
build/temp.linux-x86_64-2.5/src/mplutils.o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o -L/usr/local/lib
-lfreetype -lz -lz -lstdc++ -lm -o
build/lib.linux-x86_64-2.5/matplotlib/ft2font.so
building 'matplotlib.ttconv' extension
creating build/temp.linux-x86_64-2.5/ttconv
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/_ttconv.cpp -o
build/temp.linux-x86_64-2.5/src/_ttconv.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c ttconv/pprdrv_tt.cpp -o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c ttconv/pprdrv_tt2.cpp -o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt2.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c ttconv/ttutil.cpp -o
build/temp.linux-x86_64-2.5/ttconv/ttutil.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/_ttconv.o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt.o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt2.o
build/temp.linux-x86_64-2.5/ttconv/ttutil.o -L/usr/local/lib -o
build/lib.linux-x86_64-2.5/matplotlib/ttconv.so
building 'matplotlib._cntr' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
src/cntr.c -o build/temp.linux-x86_64-2.5/src/cntr.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/cntr.o -L/usr/local/lib -o
build/lib.linux-x86_64-2.5/matplotlib/_cntr.so
building 'matplotlib._delaunay' extension
creating build/temp.linux-x86_64-2.5/lib
creating build/temp.linux-x86_64-2.5/lib/matplotlib
creating build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/_delaunay.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/_delaunay.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject*
nn_interpolate_unstructured_method(PyObject*, PyObject*)’:
lib/matplotlib/delaunay/_delaunay.cpp:469: warning: ‘intz’ may be 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’ may be used
uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘z’ may be used
uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘centers’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘nodes’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘neighbors’ may be
used uninitialized in this function
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*
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*
getMesh(int, double*, double*)’:
lib/matplotlib/delaunay/_delaunay.cpp:209: warning: ‘vertices’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:116: warning: ‘tri_nbrs’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:116: warning: ‘tri_edges’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject*
delaunay_method(PyObject*, PyObject*)’:
lib/matplotlib/delaunay/_delaunay.cpp:667: warning: ‘y’ may be used
uninitialized in this function
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp: In member
function ‘bool VoronoiDiagramGenerator::voronoi(int)’:
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp:923: warning:
‘newintstar.Point::y’ may be used uninitialized in this function
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/delaunay_utils.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/delaunay_utils.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/natneighbors.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/natneighbors.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/_delaunay.o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/delaunay_utils.o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/natneighbors.o
-L/usr/local/lib -o build/lib.linux-x86_64-2.5/matplotlib/_delaunay.so
building 'matplotlib.nxutils' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
src/nxutils.c -o build/temp.linux-x86_64-2.5/src/nxutils.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/nxutils.o -L/usr/local/lib -o
build/lib.linux-x86_64-2.5/matplotlib/nxutils.so
building 'matplotlib._path' extension
creating build/temp.linux-x86_64-2.5/agg24
creating build/temp.linux-x86_64-2.5/agg24/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_curves.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_curves.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_bezier_arc.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_bezier_arc.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_trans_affine.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_trans_affine.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_vcgen_stroke.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_stroke.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
src/agg_py_transforms.cpp -o
build/temp.linux-x86_64-2.5/src/agg_py_transforms.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c src/path_cleanup.cpp
-o build/temp.linux-x86_64-2.5/src/path_cleanup.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c src/path.cpp -o
build/temp.linux-x86_64-2.5/src/path.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/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++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/agg24/src/agg_curves.o
build/temp.linux-x86_64-2.5/agg24/src/agg_bezier_arc.o
build/temp.linux-x86_64-2.5/agg24/src/agg_trans_affine.o
build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_stroke.o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o
build/temp.linux-x86_64-2.5/src/agg_py_transforms.o
build/temp.linux-x86_64-2.5/src/path_cleanup.o
build/temp.linux-x86_64-2.5/src/path.o -L/usr/local/lib -lstdc++ -lm
-o build/lib.linux-x86_64-2.5/matplotlib/_path.so
building 'matplotlib.backends._backend_agg' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c agg24/src/agg_vcgen_dash.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_dash.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c agg24/src/agg_image_filters.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_image_filters.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/backend_agg.cpp -o
build/temp.linux-x86_64-2.5/src/backend_agg.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
src/backend_agg.cpp:3:17: error: png.h: No such file or directory
src/backend_agg.cpp: In member function ‘Py::Object
RendererAgg::draw_image(const Py::Tuple&)’:
src/backend_agg.cpp:824: warning: ‘h’ may be used uninitialized in this function
src/backend_agg.cpp:824: warning: ‘w’ may be used uninitialized in this function
error: command 'gcc' failed with exit status 1

As I posted before, I ran across precisely these same errors when
upgrading my Ubuntu box and the Python interpreter. You will need to
install other dependencies as the installation log shows (gtk-2.0+,
pygtk), including its development versions.

And yes, distributing a packaged Python application which uses
Matplotlib (either for Linux or Windows) is *not* an easy and simple
matter. But with patience, it is possible.

Best wishes,

2010/4/19 C M <cmpython@...287...>:

···

---------- Forwarded message ----------
From: C M <cmpython@...287...>
Date: Mon, Apr 19, 2010 at 1:02 PM
Subject: Re: [Matplotlib-users] install from svn on Linux not working for me
To: Darren Dale <dsdale24@...287...>

On Mon, Apr 19, 2010 at 8:02 AM, Darren Dale <dsdale24@...287...> wrote:

On Mon, Apr 19, 2010 at 4:30 AM, LUK ShunTim <lukshuntim@...287...> wrote:

On 04/19/2010 01:52 PM, C M wrote:

My goal is to just get the lastest svn version of matplotlib, or, if
not that, just the 0.99 version, up and working on my Linux (Intrepid
Ibex) computer. I checked it matplotlib out from svn fine, and then,
as per the webpage, did:

cd matplotlib
python setup.py install

and that resulted in a very large amount of errors. I'll post them at
the bottom of this message, since there are many lines.

I previously had 0.98.x installed, via the Ubuntu repositories, but I
have uninstalled it. My version is:
Linux ubuntu 2.6.27-7-generic #1 SMP Fri Oct 24 06:40:41 UTC 2008
x86_64 GNU/Linux

Any help is appreciated. Thank you,
Che

Errors (starting from a few lines before):

creating build/temp.linux-x86_64-2.5/src
creating build/temp.linux-x86_64-2.5/CXX
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/include/python2.5 -c src/ft2font.cpp -o
build/temp.linux-x86_64-2.5/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
In file included from ./CXX/Extensions.hxx:37,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
./CXX/WrapPython.h:58:20: error: Python.h: No such file or directory

You seem not to have the development package of python installed.
Try "sudo apt-get install python-dev".

It looks like you are need to install libfreetype6-dev. Any time you
see missing .h files in your output, it means you need to install the
development headers for that package.

Darren

Thanks, but after installing libfreetype6-dev, I tried to install
matplotlib again and still get a lot of errors. Listed below.

Che

Ouput of install:

basedirlist is: ['/usr/local', '/usr']

BUILDING MATPLOTLIB
matplotlib: 1.0.svn
python: 2.5.2 (r252:60911, Jan 20 2010, 23:33:04) [GCC
4.3.2]
platform: linux2

REQUIRED DEPENDENCIES
numpy: 1.1.1
freetype2: 9.18.3

OPTIONAL BACKEND DEPENDENCIES
libpng: found, but unknown version (no pkg-config)
* Could not find 'libpng' headers in any of
* '/usr/local/include', '/usr/include', '.'
Tkinter: no
* TKAgg requires Tkinter
wxPython: 2.8.10.1
* WxAgg extension not required for wxPython >= 2.8
pkg-config: looking for pygtk-2.0 gtk+-2.0
* Package pygtk-2.0 was not found in the pkg-config
* search path. Perhaps you should add the directory
* containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
* environment variable No package 'pygtk-2.0' found
* Package gtk+-2.0 was not found in the pkg-config
* search path. Perhaps you should add the directory
* containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH
* environment variable No package 'gtk+-2.0' found
* You may need to install 'dev' package(s) to
* provide header files.
Gtk+: no
* Could not find Gtk+ headers in any of
* '/usr/local/include', '/usr/include', '.'
Mac OS X native: no
Qt: no
Qt4: no
Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.4
pytz: 2008b

OPTIONAL USETEX DEPENDENCIES
dvipng: 1.11
ghostscript: 8.63
latex: 3.141592
pdftops: 3.00

[Edit setup.cfg to suppress the above messages]

pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units',
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1',
'mpl_toolkits.axisartist', 'matplotlib.sphinxext',
'matplotlib.numerix', 'matplotlib.numerix.mlab',
'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay']
running install
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/ft2font.cpp -o
build/temp.linux-x86_64-2.5/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/mplutils.cpp -o
build/temp.linux-x86_64-2.5/src/mplutils.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/cxxsupport.cxx -o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/cxx_extensions.cxx -o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/IndirectPythonInterface.cxx -o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/cxxextensions.c -o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/ft2font.o
build/temp.linux-x86_64-2.5/src/mplutils.o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o -L/usr/local/lib
-lfreetype -lz -lz -lstdc++ -lm -o
build/lib.linux-x86_64-2.5/matplotlib/ft2font.so
building 'matplotlib.ttconv' extension
creating build/temp.linux-x86_64-2.5/ttconv
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/_ttconv.cpp -o
build/temp.linux-x86_64-2.5/src/_ttconv.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c ttconv/pprdrv_tt.cpp -o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c ttconv/pprdrv_tt2.cpp -o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt2.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c ttconv/ttutil.cpp -o
build/temp.linux-x86_64-2.5/ttconv/ttutil.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/_ttconv.o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt.o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt2.o
build/temp.linux-x86_64-2.5/ttconv/ttutil.o -L/usr/local/lib -o
build/lib.linux-x86_64-2.5/matplotlib/ttconv.so
building 'matplotlib._cntr' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
src/cntr.c -o build/temp.linux-x86_64-2.5/src/cntr.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/cntr.o -L/usr/local/lib -o
build/lib.linux-x86_64-2.5/matplotlib/_cntr.so
building 'matplotlib._delaunay' extension
creating build/temp.linux-x86_64-2.5/lib
creating build/temp.linux-x86_64-2.5/lib/matplotlib
creating build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/_delaunay.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/_delaunay.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject*
nn_interpolate_unstructured_method(PyObject*, PyObject*)’:
lib/matplotlib/delaunay/_delaunay.cpp:469: warning: ‘intz’ may be 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’ may be used
uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘z’ may be used
uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘centers’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘nodes’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: ‘neighbors’ may be
used uninitialized in this function
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*
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*
getMesh(int, double*, double*)’:
lib/matplotlib/delaunay/_delaunay.cpp:209: warning: ‘vertices’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:116: warning: ‘tri_nbrs’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:116: warning: ‘tri_edges’ may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp: In function ‘PyObject*
delaunay_method(PyObject*, PyObject*)’:
lib/matplotlib/delaunay/_delaunay.cpp:667: warning: ‘y’ may be used
uninitialized in this function
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp: In member
function ‘bool VoronoiDiagramGenerator::voronoi(int)’:
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp:923: warning:
‘newintstar.Point::y’ may be used uninitialized in this function
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/delaunay_utils.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/delaunay_utils.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/natneighbors.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/natneighbors.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/_delaunay.o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/delaunay_utils.o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/natneighbors.o
-L/usr/local/lib -o build/lib.linux-x86_64-2.5/matplotlib/_delaunay.so
building 'matplotlib.nxutils' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
src/nxutils.c -o build/temp.linux-x86_64-2.5/src/nxutils.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/nxutils.o -L/usr/local/lib -o
build/lib.linux-x86_64-2.5/matplotlib/nxutils.so
building 'matplotlib._path' extension
creating build/temp.linux-x86_64-2.5/agg24
creating build/temp.linux-x86_64-2.5/agg24/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_curves.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_curves.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_bezier_arc.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_bezier_arc.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_trans_affine.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_trans_affine.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_vcgen_stroke.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_stroke.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
src/agg_py_transforms.cpp -o
build/temp.linux-x86_64-2.5/src/agg_py_transforms.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c src/path_cleanup.cpp
-o build/temp.linux-x86_64-2.5/src/path_cleanup.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c src/path.cpp -o
build/temp.linux-x86_64-2.5/src/path.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/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++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/agg24/src/agg_curves.o
build/temp.linux-x86_64-2.5/agg24/src/agg_bezier_arc.o
build/temp.linux-x86_64-2.5/agg24/src/agg_trans_affine.o
build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_stroke.o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o
build/temp.linux-x86_64-2.5/src/agg_py_transforms.o
build/temp.linux-x86_64-2.5/src/path_cleanup.o
build/temp.linux-x86_64-2.5/src/path.o -L/usr/local/lib -lstdc++ -lm
-o build/lib.linux-x86_64-2.5/matplotlib/_path.so
building 'matplotlib.backends._backend_agg' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c agg24/src/agg_vcgen_dash.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_dash.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c agg24/src/agg_image_filters.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_image_filters.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/backend_agg.cpp -o
build/temp.linux-x86_64-2.5/src/backend_agg.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
src/backend_agg.cpp:3:17: error: png.h: No such file or directory
src/backend_agg.cpp: In member function ‘Py::Object
RendererAgg::draw_image(const Py::Tuple&)’:
src/backend_agg.cpp:824: warning: ‘h’ may be used uninitialized in this function
src/backend_agg.cpp:824: warning: ‘w’ may be used uninitialized in this function
error: command 'gcc' failed with exit status 1

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Dr. Mauro J. Cavalcanti
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: maurobio@...287...
Web: http://sites.google.com/site/maurobio
Linux Registered User #473524 * Ubuntu User #22717

On Debian/Ubuntu-like systems with apt-get, you can get all of the development headers required for matplotlib in one fell swoop with:

  sudo apt-get build-dep python-matplotlib

Mike

Mauro Cavalcanti wrote:

···

As I posted before, I ran across precisely these same errors when
upgrading my Ubuntu box and the Python interpreter. You will need to
install other dependencies as the installation log shows (gtk-2.0+,
pygtk), including its development versions.

And yes, distributing a packaged Python application which uses
Matplotlib (either for Linux or Windows) is *not* an easy and simple
matter. But with patience, it is possible.

Best wishes,

2010/4/19 C M <cmpython@...287...>:
  

---------- Forwarded message ----------
From: C M <cmpython@...287...>
Date: Mon, Apr 19, 2010 at 1:02 PM
Subject: Re: [Matplotlib-users] install from svn on Linux not working for me
To: Darren Dale <dsdale24@...287...>

On Mon, Apr 19, 2010 at 8:02 AM, Darren Dale <dsdale24@...287...> wrote:
    

On Mon, Apr 19, 2010 at 4:30 AM, LUK ShunTim <lukshuntim@...287...> wrote:
      

On 04/19/2010 01:52 PM, C M wrote:
        

My goal is to just get the lastest svn version of matplotlib, or, if
not that, just the 0.99 version, up and working on my Linux (Intrepid
Ibex) computer. I checked it matplotlib out from svn fine, and then,
as per the webpage, did:

cd matplotlib
python setup.py install
            

and that resulted in a very large amount of errors. I'll post them at
the bottom of this message, since there are many lines.

I previously had 0.98.x installed, via the Ubuntu repositories, but I
have uninstalled it. My version is:
Linux ubuntu 2.6.27-7-generic #1 SMP Fri Oct 24 06:40:41 UTC 2008
x86_64 GNU/Linux

Any help is appreciated. Thank you,
Che

Errors (starting from a few lines before):

creating build/temp.linux-x86_64-2.5/src
creating build/temp.linux-x86_64-2.5/CXX
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/include/python2.5 -c src/ft2font.cpp -o
build/temp.linux-x86_64-2.5/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
In file included from ./CXX/Extensions.hxx:37,
                 from src/ft2font.h:4,
                 from src/ft2font.cpp:1:
./CXX/WrapPython.h:58:20: error: Python.h: No such file or directory
          

You seem not to have the development package of python installed.
Try "sudo apt-get install python-dev".
        

It looks like you are need to install libfreetype6-dev. Any time you
see missing .h files in your output, it means you need to install the
development headers for that package.

Darren
      

Thanks, but after installing libfreetype6-dev, I tried to install
matplotlib again and still get a lot of errors. Listed below.

Che

Ouput of install:

basedirlist is: ['/usr/local', '/usr']

BUILDING MATPLOTLIB
           matplotlib: 1.0.svn
               python: 2.5.2 (r252:60911, Jan 20 2010, 23:33:04) [GCC
                       4.3.2]
             platform: linux2

REQUIRED DEPENDENCIES
                numpy: 1.1.1
            freetype2: 9.18.3

OPTIONAL BACKEND DEPENDENCIES
               libpng: found, but unknown version (no pkg-config)
                       * Could not find 'libpng' headers in any of
                       * '/usr/local/include', '/usr/include', '.'
              Tkinter: no
                       * TKAgg requires Tkinter
             wxPython: 2.8.10.1
                       * WxAgg extension not required for wxPython >= 2.8
           pkg-config: looking for pygtk-2.0 gtk+-2.0
                       * Package pygtk-2.0 was not found in the pkg-config
                       * search path. Perhaps you should add the directory
                       * containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
                       * environment variable No package 'pygtk-2.0' found
                       * Package gtk+-2.0 was not found in the pkg-config
                       * search path. Perhaps you should add the directory
                       * containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH
                       * environment variable No package 'gtk+-2.0' found
                       * You may need to install 'dev' package(s) to
                       * provide header files.
                 Gtk+: no
                       * Could not find Gtk+ headers in any of
                       * '/usr/local/include', '/usr/include', '.'
      Mac OS X native: no
                   Qt: no
                  Qt4: no
                Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
             datetime: present, version unknown
             dateutil: 1.4
                 pytz: 2008b

OPTIONAL USETEX DEPENDENCIES
               dvipng: 1.11
          ghostscript: 8.63
                latex: 3.141592
              pdftops: 3.00

[Edit setup.cfg to suppress the above messages]

pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units',
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1',
'mpl_toolkits.axisartist', 'matplotlib.sphinxext',
'matplotlib.numerix', 'matplotlib.numerix.mlab',
'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay']
running install
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/ft2font.cpp -o
build/temp.linux-x86_64-2.5/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/mplutils.cpp -o
build/temp.linux-x86_64-2.5/src/mplutils.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/cxxsupport.cxx -o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/cxx_extensions.cxx -o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/IndirectPythonInterface.cxx -o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c CXX/cxxextensions.c -o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/ft2font.o
build/temp.linux-x86_64-2.5/src/mplutils.o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o -L/usr/local/lib
-lfreetype -lz -lz -lstdc++ -lm -o
build/lib.linux-x86_64-2.5/matplotlib/ft2font.so
building 'matplotlib.ttconv' extension
creating build/temp.linux-x86_64-2.5/ttconv
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/_ttconv.cpp -o
build/temp.linux-x86_64-2.5/src/_ttconv.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c ttconv/pprdrv_tt.cpp -o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c ttconv/pprdrv_tt2.cpp -o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt2.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c ttconv/ttutil.cpp -o
build/temp.linux-x86_64-2.5/ttconv/ttutil.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/_ttconv.o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt.o
build/temp.linux-x86_64-2.5/ttconv/pprdrv_tt2.o
build/temp.linux-x86_64-2.5/ttconv/ttutil.o -L/usr/local/lib -o
build/lib.linux-x86_64-2.5/matplotlib/ttconv.so
building 'matplotlib._cntr' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
src/cntr.c -o build/temp.linux-x86_64-2.5/src/cntr.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/cntr.o -L/usr/local/lib -o
build/lib.linux-x86_64-2.5/matplotlib/_cntr.so
building 'matplotlib._delaunay' extension
creating build/temp.linux-x86_64-2.5/lib
creating build/temp.linux-x86_64-2.5/lib/matplotlib
creating build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/_delaunay.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/_delaunay.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
lib/matplotlib/delaunay/_delaunay.cpp: In function �PyObject*
nn_interpolate_unstructured_method(PyObject*, PyObject*)�:
lib/matplotlib/delaunay/_delaunay.cpp:469: warning: �intz� may be 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� may be used
uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: �z� may be used
uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: �centers� may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: �nodes� may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:592: warning: �neighbors� may be
used uninitialized in this function
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*
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*
getMesh(int, double*, double*)�:
lib/matplotlib/delaunay/_delaunay.cpp:209: warning: �vertices� may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:116: warning: �tri_nbrs� may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp:116: warning: �tri_edges� may be
used uninitialized in this function
lib/matplotlib/delaunay/_delaunay.cpp: In function �PyObject*
delaunay_method(PyObject*, PyObject*)�:
lib/matplotlib/delaunay/_delaunay.cpp:667: warning: �y� may be used
uninitialized in this function
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp: In member
function �bool VoronoiDiagramGenerator::voronoi(int)�:
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp:923: warning:
�newintstar.Point::y� may be used uninitialized in this function
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/delaunay_utils.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/delaunay_utils.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
lib/matplotlib/delaunay/natneighbors.cpp -o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/natneighbors.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/_delaunay.o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/delaunay_utils.o
build/temp.linux-x86_64-2.5/lib/matplotlib/delaunay/natneighbors.o
-L/usr/local/lib -o build/lib.linux-x86_64-2.5/matplotlib/_delaunay.so
building 'matplotlib.nxutils' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
src/nxutils.c -o build/temp.linux-x86_64-2.5/src/nxutils.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/src/nxutils.o -L/usr/local/lib -o
build/lib.linux-x86_64-2.5/matplotlib/nxutils.so
building 'matplotlib._path' extension
creating build/temp.linux-x86_64-2.5/agg24
creating build/temp.linux-x86_64-2.5/agg24/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_curves.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_curves.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_bezier_arc.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_bezier_arc.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_trans_affine.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_trans_affine.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
agg24/src/agg_vcgen_stroke.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_stroke.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c
src/agg_py_transforms.cpp -o
build/temp.linux-x86_64-2.5/src/agg_py_transforms.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c src/path_cleanup.cpp
-o build/temp.linux-x86_64-2.5/src/path_cleanup.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I. -I/usr/include/python2.5 -c src/path.cpp -o
build/temp.linux-x86_64-2.5/src/path.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/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++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/agg24/src/agg_curves.o
build/temp.linux-x86_64-2.5/agg24/src/agg_bezier_arc.o
build/temp.linux-x86_64-2.5/agg24/src/agg_trans_affine.o
build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_stroke.o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o
build/temp.linux-x86_64-2.5/src/agg_py_transforms.o
build/temp.linux-x86_64-2.5/src/path_cleanup.o
build/temp.linux-x86_64-2.5/src/path.o -L/usr/local/lib -lstdc++ -lm
-o build/lib.linux-x86_64-2.5/matplotlib/_path.so
building 'matplotlib.backends._backend_agg' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c agg24/src/agg_vcgen_dash.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_vcgen_dash.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c agg24/src/agg_image_filters.cpp -o
build/temp.linux-x86_64-2.5/agg24/src/agg_image_filters.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include -Isrc
-Iagg24/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.5 -c src/backend_agg.cpp -o
build/temp.linux-x86_64-2.5/src/backend_agg.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
src/backend_agg.cpp:3:17: error: png.h: No such file or directory
src/backend_agg.cpp: In member function �Py::Object
RendererAgg::draw_image(const Py::Tuple&)�:
src/backend_agg.cpp:824: warning: �h� may be used uninitialized in this function
src/backend_agg.cpp:824: warning: �w� may be used uninitialized in this function
error: command 'gcc' failed with exit status 1

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

As I posted before, I ran across precisely these same errors when
upgrading my Ubuntu box and the Python interpreter. You will need to
install other dependencies as the installation log shows (gtk-2.0+,
pygtk), including its development versions.

Can someone explain why I was able to have matplotlib 0.99 installed
previously, and can easily have 0.98 installed through Synaptic/Ubuntu
repositories, and yet have to hunt down the additional dependencies
myself if I install from svn? I can't recall if I installed 0.99
through a third party repository or how I got it, but the point is:
is the svn version going to be different than what one gets through a
repository?

Is this need to install dependencies usually the case when installing
from svn?--and if so, can I suggest that this be mentioned in the
online documentation? (perhaps it is and I didn't see it?).

And yes, distributing a packaged Python application which uses
Matplotlib (either for Linux or Windows) is *not* an easy and simple
matter. But with patience, it is possible.

On Windows I've found it is close to easy once you know to include
the matplotlib data files in your py2exe script (also, using GUI2Exe
helps with this a great deal). What are the (basic) steps for doing
this on Linux? I was thinking of using cx_freeze or something to
package everything up on Linux.

Thank you,
Che

···

On Mon, Apr 19, 2010 at 1:31 PM, Mauro Cavalcanti <maurobio@...287...> wrote:

2010/4/19 C M <cmpython@...287...>:

And yes, distributing a packaged Python application which uses
Matplotlib (either for Linux or Windows) is *not* an easy and simple
matter. But with patience, it is possible.

On Windows I've found it is close to easy once you know to include
the matplotlib data files in your py2exe script (also, using GUI2Exe
helps with this a great deal). What are the (basic) steps for doing
this on Linux? I was thinking of using cx_freeze or something to
package everything up on Linux.

With Python 2.5, I have success with bb_freeze (derived from
cx_freeze), however it is not compatible with Python 2.6. I'm right
now investigating PyInstaller (http://www.pyinstaller.org/), which
looks promising.

Hope this helps.

Best wishes,

···

--
Dr. Mauro J. Cavalcanti
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: maurobio@...287...
Web: http://sites.google.com/site/maurobio
Linux Registered User #473524 * Ubuntu User #22717

As I posted before, I ran across precisely these same errors when
upgrading my Ubuntu box and the Python interpreter. You will need to
install other dependencies as the installation log shows (gtk-2.0+,
pygtk), including its development versions.

Can someone explain why I was able to have matplotlib 0.99 installed
previously, and can easily have 0.98 installed through Synaptic/Ubuntu
repositories, and yet have to hunt down the additional dependencies
myself if I install from svn?

Because you have to have the development headers available in order to
*compile* the extension code in matplotlib. I tried to make clear in
my previous post that if you inspect the error messages and find
references to missing .h files, that means you need to install the
relevant development packages. In your most recent post, png.h is
missing, so you need to install libpng-dev (or whatever ubuntu calls
the development headers for the png library).

I can't recall if I installed 0.99
through a third party repository or how I got it, but the point is:
is the svn version going to be different than what one gets through a
repository?

Is this need to install dependencies usually the case when installing
from svn?

yes

--and if so, can I suggest that this be mentioned in the
online documentation? (perhaps it is and I didn't see it?).

The information is already available in the INSTALL file in the svn
sources, and I just added a comment which should eventually appear at
http://matplotlib.sourceforge.net/users/installing.html .

Darren

···

On Mon, Apr 19, 2010 at 1:51 PM, C M <cmpython@...287...> wrote:

On Mon, Apr 19, 2010 at 1:31 PM, Mauro Cavalcanti <maurobio@...287...> wrote:

C M wrote:

  

As I posted before, I ran across precisely these same errors when
upgrading my Ubuntu box and the Python interpreter. You will need to
install other dependencies as the installation log shows (gtk-2.0+,
pygtk), including its development versions.
    
Can someone explain why I was able to have matplotlib 0.99 installed
previously, and can easily have 0.98 installed through Synaptic/Ubuntu
repositories, and yet have to hunt down the additional dependencies
myself if I install from svn? I can't recall if I installed 0.99
through a third party repository or how I got it, but the point is:
is the svn version going to be different than what one gets through a
repository?
  

When building from source, you also need the header files (*.h files) of all of matplotlib's dependencies. When you install the matplotlib binary package (.deb file), these header files are not installed. Debian, Ubuntu and most other Linux distros separate the compiled binary libraries and header files into separate packages. The latter are usually named the same as the binary package but with a "-dev" suffix.

The "apt-get build-dep" command is designed specifically to install all of the header files required to build a particular package. Therefore "apt-get build-dep python-matplotlib" is a great shortcut to set up your machine for building matplotlib from source.

Is this need to install dependencies usually the case when installing
from svn?--and if so, can I suggest that this be mentioned in the
online documentation? (perhaps it is and I didn't see it?).
  

It sure can -- it was overlooked because this requirement is true of any compiled piece of software, not just matplotlib. Would you like to contribute a paragraph or two? I'd be happy to merge it into the docs.

Mike

···

On Mon, Apr 19, 2010 at 1:31 PM, Mauro Cavalcanti <maurobio@...287...> wrote:

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Michael and Darren (and others),

I've used svn before to download pure Python code, but never to get
anything that needed to be built. I'm fairly out to sea here, so
thanks for the patience.

When building from source, you also need the header files (*.h files) of all
of matplotlib's dependencies. When you install the matplotlib binary
package (.deb file), these header files are not installed. Debian, Ubuntu
and most other Linux distros separate the compiled binary libraries and
header files into separate packages. The latter are usually named the same
as the binary package but with a "-dev" suffix.

That's useful to know.

The "apt-get build-dep" command is designed specifically to install all of
the header files required to build a particular package. Therefore "apt-get
build-dep python-matplotlib" is a great shortcut to set up your machine for
building matplotlib from source.

I did that, and then did the setup.py install and, yes, it now all
works for me (not that you don't know that). I have mpl 1.0 installed
on that Ubuntu machine. (btw, Mauro, thanks for the tip on
Jaunty...I've been having random crashes with Intrepid now and may try
to start anew with Lucid Lynx when it comes out in a couple of weeks).

Is this need to install dependencies usually the case when installing
from svn?--and if so, can I suggest that this be mentioned in the
online documentation? (perhaps it is and I didn't see it?).

It sure can -- it was overlooked because this requirement is true of any
compiled piece of software, not just matplotlib.
Would you like to contribute a paragraph or two? I'd be happy to merge it into the docs.

I can at least try; let me know if what follows is a good approach to
take. The problem I've had today is that I didn't realize one has to
build matplotlib when getting it as source AND that there are a lot of
build requirements prior to installing. All that actually IS on a web
page, but my problem is when I skipped to the "install from svn" link,
I was then on a new page that didn't mention it, and, being new to
building, didn't realize it. And so, my suggestion would be that at
every place (1-3 places perhaps) where the docs mention doing the
following:

cd matplotlib
python setup.py build
python setup.py install

(such as on the "install from svn" page) ...there can be a) a small
note reminding newbies that in order to build you need to have the
build requirements satisfied or else the build will fail with numerous
errors, and in that note b) a link back to the "Build requirements"
paragraph already on this page, here:

http://matplotlib.sourceforge.net/users/installing.html

...and maybe c) the shortcut that you mentioned for Linux users. If
(c) doesn't belong there, it should at least be in the "Build
requirements" paragraph, something along the lines of this:

"Note: if you are building matplotlib on Linux, instead of manually
installing all of the build requirements (dependencies), you can
simply run this command:

apt-get build-dep python-matplotlib

It should take some time to finish, but you will then have built
matplotlib as well as everything needed to have it work. Afterward,
all you need do is install it with:

cd matplotlib
python setup.py install"

I hope this makes sense. I appreciate everyone's help here.

Che