[wxPython] CVS won't build

Hi,

Today's cvs won't build. I'm using linux/wxGTK from 2_4_BRANCH. It
appears that wxApp::OnAssert (all wxAssert stuff?) is only defined when
using__WXDEBUG__. So building a non debug wxGTK and wxPython gives me
the following error when compiling wxPython...

building 'wxc' extension
creating build/temp.linux-i686-2.2
creating build/temp.linux-i686-2.2/src
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -I/usr/include/python2.2 -c
src/helpers.cpp -o build/temp.linux-i686-2.2/src/helpers.o
-I/usr/lib/wx/include/gtk-2.3 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
src/helpers.cpp: In method `void wxPyApp::OnAssert (const wxChar *, int,
const wxChar *, const wxChar *)': src/helpers.cpp:218: no method
`wxApp::OnAssert' error: command 'gcc' failed with exit status 1

···

--
Ken Dowling

Kenneth J. Dowling wrote:

Hi,

Today's cvs won't build. I'm using linux/wxGTK from 2_4_BRANCH. It
appears that wxApp::OnAssert (all wxAssert stuff?) is only defined when
using__WXDEBUG__. So building a non debug wxGTK and wxPython gives me
the following error when compiling wxPython...

building 'wxc' extension
creating build/temp.linux-i686-2.2
creating build/temp.linux-i686-2.2/src
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -I/usr/include/python2.2 -c
src/helpers.cpp -o build/temp.linux-i686-2.2/src/helpers.o
-I/usr/lib/wx/include/gtk-2.3 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
src/helpers.cpp: In method `void wxPyApp::OnAssert (const wxChar *, int,
const wxChar *, const wxChar *)': src/helpers.cpp:218: no method
`wxApp::OnAssert' error: command 'gcc' failed with exit status 1

Thanks, fixed.

···

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