Building 2.4.2.4 on OSX [was Re: GetHandle() on OS/X ?

X-Sender-Ip: 144.92.164.204
Organization: Lycos Mail (http://www.mail.lycos.com:80)
Content-Type: text/plain; charset=us-ascii
Content-Language: en
Content-Length: 3561
Content-Transfer-Encoding: 7bit

Hi,

That worked, and I was able to compile both wxWindows and wxPython. However something is broken with that compile as the demo.py crashes, with an illegal instruction. Simple wxPython apps do work, so I suspect that the problem is to do with some specific component(s).

A crash log was generated, quoting a few lines from the top:

Command: Python
Path: /Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/PythonVersion: 2.3 (2.3)
PID: 26585
Thread: 0
Exception: EXC_BAD_INSTRUCTION (0x0002)Code[0]: 0x00000002Code[1]: 0x011c6ff0
Thread 0 Crashed:0 wxc.so 0x011c6ff0 0x1008000 + 0x1beff01 org.python.python 0x1000c66c PyObject_Call + 0x30 (abstract.c:1756)2 org.python.python 0x100778fc ext_do_call + 0x3e0 (ceval.c:3713)3 org.python.python 0x10074d5c eval_frame + 0x25d4 (ceval.c:2152)4 org.python.python 0x10075f80 PyEval_EvalCodeEx + 0x8f0 (ceval.c:2663)5 org.python.python 0x10025a1c function_call + 0x158 (funcobject.c:504)6 org.python.python 0x1000c66c PyObject_Call + 0x30 (abstract.c:1756)7 org.python.python 0x10015afc instancemethod_call + 0x314 (classobject.c:2433)8 org.python.python 0x1000c66c PyObject_Call + 0x30 (abstract.c:1756)

The complete log is available at http://www2.wcer.wisc.edu/Transana/crash.log

Do let me know if I need to change something while compiling wxPython. Also, should I try cleaning up the wx and wxPython directories in lib/site-packages before I install afresh?

Thank you,

Rajas Sambhare

Robin Dunn wrote:
Rajas Sambhare wrote:

I decided to redo everything. As a first step, I downloaded and installed Xcode 1.1

which should have fixed any gcc related bugs, and given me gcc 3.3.

Then I did the following:
1. Ungziped and untarred wxPython-2.4.2.4-src to wxPython.
2. cd to wxPython
3. mkdir build
4. cd build
5. ../configure --with-mac \
                   --with-opengl \
                   --enable-geometry \
                     --enable-optimise \
                   --with-libjpeg=builtin \
                   --with-libpng=builtin \
                   --with-libtiff=builtin
Configure worked without any problems
6. make
This successfully went past accel.cpp, meaning the previous error message related

to wcslen did not occur. However make did break and I got the followin message.

c++ -c -I./lib/wx/include/mac-2.4 -I../include -I../src/png -I../src/jpeg -I../src/tiff

-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -no-cpp-precomp -fpascal-strings -I../src/mac/morefile
-I/Developer/Headers/FlatCarbon -D__WXMAC__ -DWXMAKINGDLL -O2 -MMD -fno-common -Wall
-dynamic -fPIC -o dc.o ../src/mac/dc.cpp

../src/mac/dc.cpp:1259: error: parse error before `<<' token
../src/mac/dc.cpp:1263: error: parse error before `short'
make: *** [dc.o] Error 1

Peeking into ../src/mac/dc.cpp, it looks like Fixed is not being recognized as a type

(my guess).

Am I doing anything wrong? Thanks a lot.

It was due to a change in the Mac headers in Panther. The fix is
simple, the diff is here:

http://cvs.wxwindows.org/viewcvs.cgi/wxWindows/src/mac/dc.cpp.diff?r1=1.56.2.11&r2=1.56.2.12

···

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

____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages

Rajas Sambhare wrote:

That worked, and I was able to compile both wxWindows and wxPython. However something is broken with that compile as the demo.py crashes, with an illegal instruction. Simple wxPython apps do work, so I suspect that the problem is to do with some specific component(s).

I've seen something like that before, although I thought it had been fixed for some time now. It proabbly as to do with the splashscreen... You can probably edit Main.py so it skips the splash and just shows the main frame to begin with. Or you might want to try building the latest sources from CVS, either using the WX_2_4_BRANCH tag if you want to stick with the 2.4 series, or use cvs head to get the current 2.5 code.

···

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