trouble building wxPython 2.8.6.1

Jason Addison jraddison at gmail.com
Fri Nov 2 19:37:27 PDT 2007


My first problem had to do with wxListBase. I rebuilt wx with
disable-stl. This got me through that "problem". Now I get the
following:

$ python setup.py build_ext
WX_CONFIG=/home/jra/Build/wxPython-src-2.8.6.1/usr/bin/wx-config
BUILD_GLCANVAS=0
WARNING: WXWIN not set in environment. Assuming '..'
Preparing CORE...
Preparing STC...
Preparing GIZMOS...
running build_ext
building '_core_' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC
-DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE
-DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXGTK__ -Iinclude -Isrc
-I/home/jra/Build/wxPython-src-2.8.6.1/usr/lib/wx/include/gtk2-unicode-release-static-2.8
-I/home/jra/Build/wxPython-src-2.8.6.1/usr/include/wx-2.8
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/python2.5 -c src/helpers.cpp -o
build-gtk2.unicode/temp.linux-i686-2.5/src/helpers.o -pthread -O3
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC
-DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE
-DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXGTK__ -Iinclude -Isrc
-I/home/jra/Build/wxPython-src-2.8.6.1/usr/lib/wx/include/gtk2-unicode-release-static-2.8
-I/home/jra/Build/wxPython-src-2.8.6.1/usr/include/wx-2.8
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/python2.5 -c src/gtk/_core_wrap.cpp -o
build-gtk2.unicode/temp.linux-i686-2.5/src/gtk/_core_wrap.o -pthread
-O3
src/gtk/_core_wrap.cpp: In function 'bool wxSizer_Remove(wxSizer*, PyObject*)':
src/gtk/_core_wrap.cpp:4442: error: invalid conversion from 'wxWindow*' to 'int'
src/gtk/_core_wrap.cpp:4442: error:   initializing argument 1 of
'virtual bool wxSizer::Remove(int)'
src/gtk/_core_wrap.cpp: In function 'PyObject*
_wrap_GetAccelFromString(PyObject*, PyObject*, PyObject*)':
src/gtk/_core_wrap.cpp:33007: error: 'wxGetAccelFromString' was not
declared in this scope
src/gtk/_core_wrap.cpp: In function 'void init_core_()':
src/gtk/_core_wrap.cpp:62357: error: 'wxPROCESS_ENTER' was not
declared in this scope
src/gtk/_core_wrap.cpp:62358: error: 'wxPASSWORD' was not declared in this scope
src/gtk/_core_wrap.cpp:62658: error: 'WXK_PRIOR' was not declared in this scope
src/gtk/_core_wrap.cpp:62659: error: 'WXK_NEXT' was not declared in this scope
src/gtk/_core_wrap.cpp:62728: error: 'WXK_NUMPAD_PRIOR' was not
declared in this scope
src/gtk/_core_wrap.cpp:62730: error: 'WXK_NUMPAD_NEXT' was not
declared in this scope
error: command 'gcc' failed with exit status 1
j


The first error is:
invalid conversion from 'wxWindow*' to 'int'

I could probably fix this myself, but there are other errors that lead
me to believe that there is something more seriously wrong.

I configured wx like:

../configure --prefix=/home/jra/Build/wxPython-src-2.8.6.1/usr \
             --with-gtk \
             --disable-stl \
             --enable-optimise \
             --enable-unicode \
             --enable-geometry \
             --enable-graphics_ctx \
             --enable-mediactrl \
             --enable-display \
             --disable-shared \
             --disable-compat26 \
             --disable-debugreport \
             --enable-monolithic

Can anyone point me in the right direction? I'm building in Fedora 7.

Thanks, Jason




More information about the wxpython-users mailing list