wxPython build: "parse error before" during Python setup
Posted on 2004-10-12
I am in the process of installing wxPython on Solaris 9. I was able to do a good configure and a successful make...however, the last step is to run a python setup, to integrate the wxPython tools with the Python install. This is where I am having difficulty. Here are the steps so far...
#./configure --prefix=$PREFIXDIR \
--enable-sound --with-sdl \
...resulted in the output of ...
Configured wxWindows 2.5.1 for `sparc-sun-solaris2.9'
Which GUI toolkit should wxWindows use? gtk
Should wxWindows be compiled into single library? no
Should wxWindows be compiled in debug mode? no
Should wxWindows be linked as a shared library? yes
Should wxWindows be compiled in Unicode mode? no
What level of wxWindows compatibility should be enabled?
wxWindows 2.2 no
wxWindows 2.4 yes
Which libraries should wxWindows use?
... I then ran the following "make" script ...
make $* \
&& make -C contrib/src/gizmos $* \
&& make -C contrib/src/ogl CXXFLAGS="-DwxUSE_DEPRECATED=0" $* \
&& make -C contrib/src/stc $* \
&& make -C contrib/src/xrc $*
...with apparently successful output ...
HOWEVER, the final command to integrate Python with wxPython is giving the following problems (output truncated to last few lines...)
#python2.3 setup.py BUILD_GLCANVAS=0 BUILD_OGL=0 BUILD_STC=0
_wrap_Display_ChangeMode(PyObject*, PyObject*, PyObject*)':
src/gtk/misc_wrap.cpp:27947: parse error before `)' token
src/gtk/misc_wrap.cpp: In function `PyObject*
_wrap_Display_ResetMode(PyObject*, PyObject*, PyObject*)':
src/gtk/misc_wrap.cpp:27987: parse error before `)' token
error: command '/opt/sfw/gcc-3.2/bin/gcc' failed with exit status 1