Difference between revisions of "Mac Intel Instructions"

From VistrailsWiki
Jump to navigation Jump to search
Line 23: Line 23:
** You can get the open source version for MAC [http://www.trolltech.com/download/opensource.html here]
** You can get the open source version for MAC [http://www.trolltech.com/download/opensource.html here]
** Uncompress the file and inside the uncompressed directory run '''configure''' then '''make''' and finally '''sudo make install'''
** 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
** Add the '''usr/local/Trolltech/Qt-4.2.x/bin''' to the PATH variable


* Install GraphViz  
* Install GraphViz  

Revision as of 17:40, 16 April 2007

  • 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
    • To get memory information on mac, PyXml is needed and a binary package is available here
    • fpconst and SOAPpy are also required for using web services. fpconst is available here. SOAPpy is available here
    • In order to use the Log feature, you need to install MySQLdb (also available as a binary package)
  • 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
    • (Skip this step if you don't need to run CORIE workflows) Follow these instructions to add CORIE and other needed files to VTK.
    • 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.2.x/bin to the PATH variable
  • Install GraphViz
    • There are Mac OS X builds of nightly snapshots here
    • Add the usr/local/graphviz-version/bin to the PATH variable
  • Install SIP
    • Get the stable release version available here. (The latest snapshot version is here)
    • Uncompress the file, and inside the directory, type python configure.py. Then make and make install
  • Install PyQt4
    • Get the stable version, available here. (The latest snapshot version is here)
    • Uncompress the file, and inside the directory, type python configure.py. Then make and make install