Personal tools

Installing trep (Mac OS X)

From RoboticsWiki

Jump to: navigation, search

The following are installation instructions for trep on Mac OS X.

Things you need to install:

  1. A standard distribution of X11 (e.g., including gcc)
  2. Python 2.5 installs from DMG (e.g., just double click and let it install)
  3. Pynum package, available from pythonmac.org in the Packages section (specifically in the Python2.5 Packages section. This also installs from DMG
  4. SetUpTools is needed. To set this up, use the command: sh setuptools-0.6c8-py2.5.egg; depending on permissions issues, you may need to use sudo sh setuptools-0.6c8-py2.5.egg for this.
  5. Python OpenGL bindings installs just like webpage says (after setuptools is installed). Use python2.5 setup.py build and sudo python2.5 install to install it.
  6. Ideally, gcc3.4 or higher (I put gcc4 on my machine, but then I couldn't replace standard gcc with it). It will still work with standard gcc, but you will need to do the next step. If you install gcc3.4 or higher, you can ignore the next step.
  7. You may get an error depending on the version of gcc you are using. If you do, comment out following line in the setup.py in the top directory extra_compile_args=['-fvisibility=hidden'],=
  8. Download the current release from Sourceforge
  9. unzip, untar the download and then type "make" in the home directory. Then type "sudo make intall" to install the package as a local python package.
  10. cd into demos, and then cd into a demo directory, like "scissors". Then type "python2.5scissors.py" and the demo should run.