Difference between revisions of "Building From Source"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
* Graphviz http://www.graphviz.org | * Graphviz http://www.graphviz.org | ||
* Qt 4.2.0 (or above) Open Source Edition http://www.trolltech.com/products/qt/index.html | * Qt 4.2.0 (or above) Open Source Edition http://www.trolltech.com/products/qt/index.html | ||
* PyQt4 (v4. | * PyQt4 (v4.2)http://www.riverbankcomputing.co.uk/pyqt/index.php and SIP (4.6) http://www.riverbankcomputing.co.uk/sip/index.php | ||
* ctypes http://python.net/crew/theller/ctypes/ (or from [http://sourceforge.net/projects/ctypes/ sourceforge]) | * ctypes http://python.net/crew/theller/ctypes/ (or from [http://sourceforge.net/projects/ctypes/ sourceforge]) | ||
Line 14: | Line 14: | ||
* VTK http://www.vtk.org (vtk) | * VTK http://www.vtk.org (vtk) | ||
* scipy http://www.scipy.org (scipy) | * scipy http://www.scipy.org (scipy) | ||
* matplotlib http://matplotlib.sourceforge.net/ (pylab) | |||
'''Instructions''' | '''Instructions''' | ||
Line 62: | Line 63: | ||
*** Download and install numpy [http://numpy.scipy.org] | *** Download and install numpy [http://numpy.scipy.org] | ||
*** Download and install scipy [http://www.scipy.org] | *** Download and install scipy [http://www.scipy.org] | ||
* Install matplotlib | |||
** Windows | |||
*** matplot lib is included in the Enthought Scipy Python package (see above) | |||
** Linux | |||
*** Files are available [http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 here] | |||
* Install ctypes | * Install ctypes | ||
** The source is avalable [http://python.net/crew/theller/ctypes here] | ** The source is avalable [http://python.net/crew/theller/ctypes here] |
Revision as of 16:32, 2 July 2007
Requirements Base requirements:
- Python 2.4 http://www.python.org
- Graphviz http://www.graphviz.org
- Qt 4.2.0 (or above) Open Source Edition http://www.trolltech.com/products/qt/index.html
- PyQt4 (v4.2)http://www.riverbankcomputing.co.uk/pyqt/index.php and SIP (4.6) http://www.riverbankcomputing.co.uk/sip/index.php
- ctypes http://python.net/crew/theller/ctypes/ (or from sourceforge)
For running various not-required packages and features (packages are listed last, in parentheses):
- PyXML http://pyxml.sourceforge.net (web services)
- fpconst http://www.warnes.net/rwndown/~warnes/fpconst (or from the Cheese Shop) (web services)
- SOAPpy http://pywebsvcs.sourceforge.net (web services)
- MySQLdb http://sourceforge.net/projects/mysql-python (execution logging)
- VTK http://www.vtk.org (vtk)
- scipy http://www.scipy.org (scipy)
- matplotlib http://matplotlib.sourceforge.net/ (pylab)
Instructions
Click here for Specific Instructions for Mac Intel
- Install Graphviz
- Install Python
- On most Linux distributions it comes by default.
- On Windows: Get the msi release here
- Add the installation directory to the PATH variable
- Install Python Extensions
- PyXml is needed for web services and is available here. There's a binary package for Mac here
- To install it from source, download the .tar.gz file and uncompress it
- Then inside the uncompressed folder, type: python setup.py build and later sudo python setup.py install
- fpconst and SOAPpy are also required for using web services. fpconst is available here. SOAPpy is available here
- For WINDOWS & LINUX: we need ctypes available here
- PyXml is needed for web services and is available here. There's a binary package for Mac here
- Install VTK CVS version (if you want to 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 are ON and VTK_USE_QVTK is OFF
- It is recommended to create a environment variable called PYTHONPATH
- PYTHONPATH=<path/to/vtk_build>/Wrapping/Python:<path/to/vtk_build>/bin:.
- Install Qt 4.2.0 or above (Qt 4.2.3 recommended)
- You can get the open source version for all platforms here
- When installing on windows, Qt requires the mingw compiler. It will also offer to download and install automatically for you
- After installing you need to build the Qt library:
- (Skip this step if you're not a windows user) Run the Qt 4.2.x Command Prompt located in the Qt Program Folder (it will set all the environment variables to build the library for you).
- Run configure then make
- 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. On WIndows type python configure.py -p win32-g++. On 64-bit Linux type python configure.py -d /usr/lib64/python2.4/site-packages/. Then make and make install
- Install PyQt4
- Install MySQLdb (Python library allowing MySQL databases access)
- The file is available here
- Install scipy (Necessary for the SciPy package)
- Windows
- Download and install the Enthought Scipy Python package [1]
- Linux
- Download and install BLAS [2] - Note: Most package managers allow easy download and installation through the native interface however; you must also get the source code and set the environment variable BLAS_SRC
- Download and install LAPACK [3] - Note: Most package managers allow easy download and installation through the native interface however; you must also get the source code and set the environment variable LAPACK_SRC
- Download and install numpy [4]
- Download and install scipy [5]
- Windows
- Install matplotlib
- Windows
- matplot lib is included in the Enthought Scipy Python package (see above)
- Linux
- Files are available here
- Windows
- Install ctypes
- The source is avalable here