[wxPython-users] Building wxPython Progress

Robin Dunn robin at alldunn.com
Thu Sep 28 10:44:13 PDT 2006


James Stroud wrote:
> Hello All,
> 
> I have jumped through many hoops trying to build this and I think I've made 
> progress, getting the proper versions of SWIG and libxml2 and building and 
> installing those. I believe I have successfully re-built the swig generated 
> source and it has changed from that in the tarball (for what reasons I do not 
> know)--using the recommended version of SWIG of 1.3.27.

There should be no need to tun SWIG, unless you are planning on making 
changes to the .i files or making your own extension modules.

> 
> My new issue, if anyone knows, is that I am getting the error below when 
> building wxpython. I believe this has to do with my using the wrong version 
> of gcc. Does anyone know which version of gcc will build wxpython 
> successfully?
> 
> I have tried gcc 3.4.2 and gcc 4.0.1 with the same error. I will attempt the 
> newest version of gcc, but I fear the results.

> -I/data10/users/jstroud/Programs/include/python2.5 -c src/gtk/_core_wrap.cpp 
> -o build-gtk2/temp.linux-i686-2.5/src/gtk/_core_wrap.o -O3
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
> Ada/C/ObjC but not for C++
> src/gtk/_core_wrap.cpp: In function ‘int SWIG_Python_ConvertPtr(PyObject*, 
> void**, swig_type_info*, int)’:
> src/gtk/_core_wrap.cpp:1231: error: invalid conversion from ‘const char*’ to 
> ‘char*’
> src/gtk/_core_wrap.cpp: In function ‘void SWIG_Python_FixMethods(PyMethodDef*, 
> swig_const_info*, swig_type_info**, swig_type_info**)’:
> src/gtk/_core_wrap.cpp:49058: error: invalid conversion from ‘const char*’ to 
> ‘char*’

It's not a GCC problem.  It's a change in the Python 2.5 header files 
that makes the code generated by SWIG have this error.  I've got a new 
version of my SWIG patch in CVS that deals with this.

http://cvs.wxwidgets.org/viewcvs.cgi/*checkout*/wxWidgets/wxPython/SWIG/swig-1.3.27.patch?rev=1.1.2.4

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list