INSTALL.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. 1. REQUIREMENTS:
  2. 1. Python 2.4 or higher (http://www.python.org/)
  3. - Tested with Python 2.7 (2.6 on earlier builds)
  4. 2. Cython 0.14.1** or higher (http://cython.org/)
  5. - Tested with Cython 0.15 (0.14.1 on earlier builds)
  6. 3. ODE shared*** library (or static with -fPIC)
  7. - See the notes on building ODE below.
  8. 4. pkg-config (http://www.freedesktop.org/wiki/Software/pkg-config)
  9. - Windows executable (and GLib dependency) can be downloaded from
  10. http://www.gtk.org/download/win32.php
  11. - If you used premake to configure ODE, you may need to create an ode.pc file
  12. in your PKG_CONFIG_PATH manually. See <ODE_DIR>/ode.pc.in
  13. 2. BUILDING ODE
  14. On certain systems (*nix) there is a requirement that a shared library
  15. (such as the python module) contains only position-independent code
  16. (PIC). In those cases, ODE needs to be either compiled as a shared library
  17. too (--enable-shared), or as a static library with PIC (-fPIC).
  18. Once ODE is built and installed in your desired destination, proceed with
  19. building the wrapper.
  20. 3a. BUILDING WITH Visual Studio (Windows)
  21. python setup.py build_ext
  22. 3b. BUILDING WITH MINGW (Windows)
  23. python setup.py build_ext -c mingw32
  24. 3c. BUILDING WITH GCC/G++ (Linux, OS X, etc.)
  25. python setup.py build_ext
  26. 4. INSTALLATION
  27. 4a. For system-wide installation (needs administrator privileges):
  28. python setup.py install
  29. 4b. For user installation:
  30. python setup.py install --user
  31. 5. DEMOS and DOCUMENTATION
  32. Try running the tutorials in the 'demos' directory. The tutorials were taken
  33. from the PyODE website (http://pyode.sourceforge.net/).
  34. For usage documentation, please refer to the PyODE API documentation at
  35. http://pyode.sourceforge.net/api-1.2.0/index.html.