|
From: Paul K. <pki...@in...> - 2005-08-04 06:49:33
|
OK, some notes for Windows users wanting to recompile PyODE. You will
need a C compiler installed on your system. I use VC6.
1) Download ODE source. If you are using MSVC, open the ODE
workspace, and in the Project Settings for ODE, change "Use run-time
library" to Multithreaded (from Multithreaded DLL). Also with MSVC,
copy the appropriate config from the the _configs directory into the
include\ode directory (and rename that file to config.h). Compile.
2) Install Pyrex (I'm using version 0.9.3). I installed it under
the same main directory as ODE and PyODE.
3) Unzip the PyODE into a directory. Edit the setup.py file in
that directory and point ODE_BASE to you ODE directory (ie."..\ODE-0.5")
4) Because for some reason Python .py file will not run from a DOS
cmd line on my system, I also changed the "cmd = " line in setup.py to:
cmd = "\"\Program Files\Python22\python\"
..\pyrex-0.9.3\pyrexc.py -o ode.c -I. -Isrc src/ode.pyx"
5) Now go to DOS, and get to the PyODE directory. Type:
"\program files\python22\python" setup.py install
Interestingly, the recompiled pyd (PyODE1.1 and 1.0) crashes after about
30 collisions on my system (under a non-standard python installation).
It works fine running on Python22 or Python23. So there is some bug
tripping up my non-standard python install that is getting through the
standard version. The recompiled 0.35 works fine on my non-standard
python install. So I've ported across the trimesh code from 1.1 into
0.35.
|