Hi all, I am trying to build matplotlib from cvs on SuSE
> 9.1.
> python setup.py build results in
> src/_wxagg.cpp:55:34: 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:105: error: `wxPyConstructObject' undeclared
> (first use this function) src/_wxagg.cpp:105: error: (Each
> undeclared identifier is reported only once for each
> function it appears in.) src/_wxagg.cpp: In member function
> `Py::Object _wxagg_module::convert_agg_to_wx_bitmap(const
> Py::Tuple&)': src/_wxagg.cpp:129: error:
> `wxPyConstructObject' undeclared (first use this function)
> src/_wxagg.cpp: In function `void init_wxagg()':
> src/_wxagg.cpp:260: error: `wxPyCoreAPI_IMPORT' undeclared
> (first use this function) error: command 'gcc' failed with
> exit status 1
> Where can I find wxPython.h ?
Nils, if you don't specifically want the wxagg animated blit
functionality (as described here
http://www.scipy.org/wikis/topical_software/Animations), you can set
'BUILD_WXAGG = 0' in setup.py. Otherwise, you'll need to get the
devel headers as others have suggested.
Kevin, Do you think it would be possible to make the BUILD_WXAGG logic
a little smarter so that it doesn't kill the build process? Or
perhaps set BUILD_WXAGG to False by default. I'm afraid this one will
bite a lot of people who have wxpython installed but not the devel
headers (as noted in previous discussions, the debian devel packages
appear broken with respect to wxPython.h).
JDH