Mac Intel Instructions
Jump to navigation
Jump to search
- Make sure you have xcode installed. If you don't have it, get it here (You'll need a Mac Developer Account)
- Install Python
- Mac Intel comes with Python 2.3.5. We need Python 2.4. There is a Universal Binary available here
- Maybe your path variable was not updated. Using Finder, go to Applications > MacPython 2.4 . There is a script there called Update Shell Profile.command that adds the new Python to your .bash_profile.
- You can test the installation typing python -V in the shell. You should see Python 2.4.3
- Install Python Extensions
- Install VTK CVS version (Skip this step if you won't use VTK)
- First you'll need CMake: get the latest release here
- Then you can get vtk: follow the instructions to download the CVS source code on this page
- To compile VTK follow the instructions in the file README.html in the root of VTK directory tree
- On configuring CMake, make sure that the variables VTK_WRAP_PYTHON, VTK_USE_GUISUPPORT, VTK_USE_DISPLAY, VTK_USE_CARBON are ON and VTK_USE_QVTK, VTK_USE_COCOA, VTK_USE_X are OFF
- It is recommended to create a environment variable called PYTHONPATH
- export PYTHONPATH=<path/to/vtk_build>/Wrapping/Python:<path/to/vtk_build>/bin:.
- Install Qt 4.2.0 or above
- You can get the open source version for MAC here
- Uncompress the file and inside the uncompressed directory run configure then make and finally sudo make install
- Add the usr/local/Trolltech/Qt-4.1.4/bin to the PATH variable
- Install GraphViz
- There are Mac OS X builds of nightly snapshots here
- Install SIP