Here’s the difference in the wxGLCanvas constructor APIs.
In 2.8:
wxGLCanvas(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
const wxString& name = wxPyGLCanvasNameStr,
int *attribList = NULL,
const wxPalette& palette = wxNullPalette);
In 2.9:
wxGLCanvas(wxWindow *parent,
wxWindowID id = -1,
const int *attribList = NULL,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxPyGLCanvasNameStr,
const wxPalette& palette = wxNullPalette);
So as you can see the position of the attribList parameter has changed. Changing the call in wxVTKRenderWindowInteractor to use keywords for all the args will probably allow it to work for both, however I’m not sure whether there will be other problems between 2.9 and vtk.
–
Robin Dunn
Software Craftsman
http://wxPython.org
Ok, looks like we’ve definitely nailed down the problem. I tried to start over and build wxWidgets2.8 and wxPython2.8. wxWidgets seemed to go fine. I ran into some problems trying to build wxPython.
It seems like I need to add
/opt/wx/2.8/lib/wx/include/gtk2-ansi-debug-2.8
and
/opt/wx/2.8/include/wx-2.8
to my CPLUS_INCLUDE_PATH because it was complaining that it couldn’t find things like “wx/setup.h”
After doing this, when I run:
python setup.py build_ext --inplace --debug
There are zillions of errors. I uploaded the output here: http://rpi.edu/~doriad/output.txt
My process was the following:
-
check out http://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH/ to ~/src/wxWidgets
-
check out http://svn.wxwidgets.org/svn/wx/wxPython/branches/WX_2_8_BRANCH/ to ~/src/wxPython
-
from ~/src/wxWidgets, run:
./configure --prefix=/opt/wx/2.8 --with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-debug_gdb --enable-geometry --enable-graphics_ctx --enable-sound --with-sdl --enable-mediactrl --enable-display
- put this in .make
make $* \
&& make -C contrib/src/gizmos $* \
&& make -C contrib/src/stc $*
-
chmod a+rwx .make
-
sudo ./.make
-
sudo ./.make install
-
from src/wxPython, run:
python setup.py build_ext --inplace --debug
Sorry to be such a pain, but maybe someone can tell from these errors what I’ve done wrong?
Thanks,
David