I didn't manage to successfully make a debug version of wxPython on
Linux.
I've built a debugging version of wxGTK with:
./configure --with-libpng --with-libjpeg --with-libtiff --with-opengl --with-regex --with-zlib --enable-debug --prefix=/usr/local/wxgtkd
Then, I just put /usr/local/wxgtkd/bin in the path and built wxPython.
Alas, trying to run any wxPython app results in a segault. It appears to
be related to the wxApp object.
Here's the backtrace:
#0 0x00000000 in ?? ()
#1 0x404c81f5 in wxapp_pending_callback () at ./src/gtk/app.cpp:176
#2 0x4082e4fa in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#3 0x4082d4d8 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#4 0x4082dae3 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#5 0x4082db95 in g_main_iteration () from /usr/lib/libglib-1.2.so.0
#6 0x40751a4a in gtk_main_iteration () from /usr/lib/libgtk-1.2.so.0
#7 0x404c8128 in wxApp::Yield (this=0x84e5bb0, onlyIfNeeded=false) at
./src/gtk/app.cpp:125
#8 0x405dc2df in wxYield () at ./src/common/utilscmn.cpp:1343
#9 0x401f53ec in _wrap_wxYield (self=0x0, args=0x80fce84, kwargs=0x0)
at src/gtk/misc.cpp:569
#10 0x080c453a in PyCFunction_Call ()
#11 0x080a6c90 in PyObject_Call ()
#12 0x08079109 in PyEval_EvalCode ()
#13 0x08076024 in _PyExc_Fini ()
...
Environment: Debian woody, wxGTK 2.3.2, wxPython 2.3.2.1.
The wxGTK demos run fine in debug mode.
It doesn't seem to make a difference if I build wxPython with "python
setup.py build --debug" instead.
I've now successfully rebuilt wxGTK and wxPython in release mode, but I
really need a debug version of these.
How do I build a debugging version of wxPython on Linux?
TIA,
Gerhard
···
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))