From: John H. <jdh...@ac...> - 2005-09-08 13:47:24
|
>>>>> "Nils" == Nils Wagner <nw...@me...> writes: Nils> Hi all, I am trying to build matplotlib from cvs on SuSE Nils> 9.1. Nils> python setup.py build results in Nils> src/_wxagg.cpp:55:34: wx/wxPython/wxPython.h: No such file Nils> or directory src/_wxagg.cpp: In member function `Py::Object Nils> _wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)': Nils> src/_wxagg.cpp:105: error: `wxPyConstructObject' undeclared Nils> (first use this function) src/_wxagg.cpp:105: error: (Each Nils> undeclared identifier is reported only once for each Nils> function it appears in.) src/_wxagg.cpp: In member function Nils> `Py::Object _wxagg_module::convert_agg_to_wx_bitmap(const Nils> Py::Tuple&)': src/_wxagg.cpp:129: error: Nils> `wxPyConstructObject' undeclared (first use this function) Nils> src/_wxagg.cpp: In function `void init_wxagg()': Nils> src/_wxagg.cpp:260: error: `wxPyCoreAPI_IMPORT' undeclared Nils> (first use this function) error: command 'gcc' failed with Nils> exit status 1 Nils> 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 |