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.
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.
Thank you for any help.
James
···
==
running build_ext
building '_core_' extension
creating build-gtk2/temp.linux-i686-2.5
creating build-gtk2/temp.linux-i686-2.5/src
creating build-gtk2/temp.linux-i686-2.5/src/gtk
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I/data10/users/jstroud/Programs/include
-I/data10/users/jstroud/Programs/qt/include -I/usr/include
-I/data10/users/jstroud/Programs/include/freetype2/freetype -fPIC
-DSWIG_TYPE_TABLE=_wxPython_table -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -Iinclude -Isrc
-I/data10/users/jstroud/Programs/lib/wx/include/gtk2-ansi-release-2.6
-I/data10/users/jstroud/Programs/include/wx-2.6
-I/data10/users/jstroud/Programs/include/gtk-2.0
-I/data10/users/jstroud/Programs/lib/gtk-2.0/include
-I/data10/users/jstroud/Programs/include/atk-1.0
-I/data10/users/jstroud/Programs/include/cairo
-I/data10/users/jstroud/Programs/include/pango-1.0
-I/data10/users/jstroud/Programs/include/glib-2.0
-I/data10/users/jstroud/Programs/lib/glib-2.0/include
-I/data10/users/jstroud/Programs/include/python2.5 -c src/helpers.cpp -o
build-gtk2/temp.linux-i686-2.5/src/helpers.o -O3
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
src/helpers.cpp: In destructor ‘wxPyCBInputStream::~wxPyCBInputStream()’:
src/helpers.cpp:1388: warning: ‘blocked’ may be used uninitialized in this
function
src/helpers.cpp: In destructor ‘virtual
wxPyCBInputStream::~wxPyCBInputStream()’:
src/helpers.cpp:1388: warning: ‘blocked’ may be used uninitialized in this
function
src/helpers.cpp: In destructor ‘virtual
wxPyCBInputStream::~wxPyCBInputStream()’:
src/helpers.cpp:1388: warning: ‘blocked’ may be used uninitialized in this
function
src/helpers.cpp: In static member function ‘static wxPyCBInputStream*
wxPyCBInputStream::create(PyObject*, bool)’:
src/helpers.cpp:1398: warning: ‘blocked’ may be used uninitialized in this
function
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I/data10/users/jstroud/Programs/include
-I/data10/users/jstroud/Programs/qt/include -I/usr/include
-I/data10/users/jstroud/Programs/include/freetype2/freetype -fPIC
-DSWIG_TYPE_TABLE=_wxPython_table -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -Iinclude -Isrc
-I/data10/users/jstroud/Programs/lib/wx/include/gtk2-ansi-release-2.6
-I/data10/users/jstroud/Programs/include/wx-2.6
-I/data10/users/jstroud/Programs/include/gtk-2.0
-I/data10/users/jstroud/Programs/lib/gtk-2.0/include
-I/data10/users/jstroud/Programs/include/atk-1.0
-I/data10/users/jstroud/Programs/include/cairo
-I/data10/users/jstroud/Programs/include/pango-1.0
-I/data10/users/jstroud/Programs/include/glib-2.0
-I/data10/users/jstroud/Programs/lib/glib-2.0/include
-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*’
error: command 'gcc' failed with exit status 1
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095