$ python setup.py build ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98pre python: 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] platform: linux2 REQUIRED DEPENDENCIES numpy: 1.0.4 freetype2: 9.10.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.15beta5 Tkinter: Tkinter: 39220, Tk: 8.4, Tcl: 8.4 wxPython: 2.6.3.2 * Could not find wxPython headers in any of * '/usr/lib/wx/include/gtk2-unicode-release-2.6', * '/usr/include/wx-2.6' Gtk+: gtk+: 2.8.20, glib: 2.12.4, pygtk: 2.8.6, pygobject: [pre-pygobject] Qt: Qt: 3.3.6, PyQt: 3.16 Qt4: no Cairo: 1.2.0 OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: present, version unknown pytz: 2006p OPTIONAL USETEX DEPENDENCIES dvipng: 1.9 ghostscript: 8.15.3 latex: 3.141592 pdftops: 3.01 EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: matplotlib will provide [Edit setup.cfg to suppress the above messages] ============================================================================ running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-i686-2.4/matplotlib/mpl-data copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.linux-i686-2.4/matplotlib/mpl-data running build_ext building 'matplotlib.backends._wxagg' extension C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC compile options: '-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I/usr/include/libpng12 -I/usr/local/include -I/usr/include -I. -I/var/lib/python-support/python2.4/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/include/python2.4 -c' gcc: src/_wxagg.cpp cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ In file included from /usr/include/python2.4/Python.h:8, from ./CXX/WrapPython.h:47, from ./CXX/Extensions.hxx:48, from src/_backend_agg.h:8, from src/_wxagg.cpp:48: /usr/include/python2.4/pyconfig.h:851:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/include/string.h:26, from /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstring:52, from src/_wxagg.cpp:38: /usr/include/features.h:150:1: warning: this is the location of the previous definition src/_wxagg.cpp:55:34: error: wx/wxPython/wxPython.h: No such file or directory src/_wxagg.cpp: In member function 'Py::Object _wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)': src/_wxagg.cpp:103: error: 'wxPyConstructObject' was not declared in this scope src/_wxagg.cpp: In member function 'Py::Object _wxagg_module::convert_agg_to_wx_bitmap(const Py::Tuple&)': src/_wxagg.cpp:125: error: 'wxPyConstructObject' was not declared in this scope src/_wxagg.cpp: In function 'void init_wxagg()': src/_wxagg.cpp:253: error: 'wxPyCoreAPI_IMPORT' was not declared in this scope /var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h: At global scope: /var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h:943: warning: 'int _import_array()' defined but not used cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ In file included from /usr/include/python2.4/Python.h:8, from ./CXX/WrapPython.h:47, from ./CXX/Extensions.hxx:48, from src/_backend_agg.h:8, from src/_wxagg.cpp:48: /usr/include/python2.4/pyconfig.h:851:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/include/string.h:26, from /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstring:52, from src/_wxagg.cpp:38: /usr/include/features.h:150:1: warning: this is the location of the previous definition src/_wxagg.cpp:55:34: error: wx/wxPython/wxPython.h: No such file or directory src/_wxagg.cpp: In member function 'Py::Object _wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)': src/_wxagg.cpp:103: error: 'wxPyConstructObject' was not declared in this scope src/_wxagg.cpp: In member function 'Py::Object _wxagg_module::convert_agg_to_wx_bitmap(const Py::Tuple&)': src/_wxagg.cpp:125: error: 'wxPyConstructObject' was not declared in this scope src/_wxagg.cpp: In function 'void init_wxagg()': src/_wxagg.cpp:253: error: 'wxPyCoreAPI_IMPORT' was not declared in this scope /var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h: At global scope: /var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h:943: warning: 'int _import_array()' defined but not used error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I/usr/include/libpng12 -I/usr/local/include -I/usr/include -I. -I/var/lib/python-support/python2.4/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/include/python2.4 -c src/_wxagg.cpp -o build/temp.linux-i686-2.4/src/_wxagg.o" failed with exit status 1