Difference between revisions of "Building From Source"

From VistrailsWiki
Jump to navigation Jump to search
Line 1: Line 1:
'''Requirements'''
'''Requirements'''


* Python 2.4 or 2.5 http://www.python.org
* Python 2.5 http://www.python.org
* Qt 4.2.0 (or above) Open Source Edition http://www.trolltech.com/products/qt/index.html
* Qt 4.3.0 (or above) Open Source Edition http://www.trolltech.com/products/qt/index.html
* PyQt4 (v4.2 or above) http://www.riverbankcomputing.com/software/pyqt and SIP (4.6 or above) http://www.riverbankcomputing.co.uk/software/sip
* PyQt4 (v4.4 or above) http://www.riverbankcomputing.com/software/pyqt and SIP (4.7 or above) http://www.riverbankcomputing.co.uk/software/sip
* ctypes http://python.net/crew/theller/ctypes/ (or from [http://sourceforge.net/projects/ctypes/ sourceforge]) (Note: if you have Python 2.5, ctypes in installed by default)
* ctypes http://python.net/crew/theller/ctypes/ (or from [http://sourceforge.net/projects/ctypes/ sourceforge]) (Note: if you have Python 2.5, ctypes in installed by default)
* cElementTree and ElementTree http://effbot.org/downloads (Note: if you have Python 2.5, these libraries are already installed)
* cElementTree and ElementTree http://effbot.org/downloads (Note: if you have Python 2.5, these libraries are already installed)
Line 29: Line 29:
*** Then inside the uncompressed folder, type: ''python setup.py build'' and later ''sudo python setup.py install''
*** Then inside the uncompressed folder, type: ''python setup.py build'' and later ''sudo python setup.py install''
** Install [http://sourceforge.net/project/showfiles.php?group_id=26590&package_id=30660&release_id=551193 ZSI] if you plan to use web services package  
** Install [http://sourceforge.net/project/showfiles.php?group_id=26590&package_id=30660&release_id=551193 ZSI] if you plan to use web services package  
** If you are using Python 2.4: install [http://effbot.org/downloads/#elementtree ElementTree] and [http://effbot.org/downloads/#celementtree cElementTree]
** If you are using Python 2.4:  
** '''For WINDOWS & LINUX:'''  we need ctypes available [http://sourceforge.net/project/showfiles.php?group_id=71702&package_id=71318 here]  
*** Install [http://effbot.org/downloads/#elementtree ElementTree] and [http://effbot.org/downloads/#celementtree cElementTree]
*** '''For WINDOWS & LINUX:'''  we need ctypes available [http://sourceforge.net/project/showfiles.php?group_id=71702&package_id=71318 here]  
* Install VTK CVS version (if you want to use VTK)
* Install VTK CVS version (if you want to use VTK)
** First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
** First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
Line 39: Line 40:
** It is recommended to create a environment variable called PYTHONPATH
** It is recommended to create a environment variable called PYTHONPATH
*** PYTHONPATH=''<path/to/vtk_build>''/Wrapping/Python:''<path/to/vtk_build>''/bin:.
*** PYTHONPATH=''<path/to/vtk_build>''/Wrapping/Python:''<path/to/vtk_build>''/bin:.
* Install Qt 4.2.0 or above (Qt 4.3.4 recommended)
* '''For Linux only''': Install Qt 4.3.0 or above (Qt 4.4.3 recommended)
** You can get the open source version for all platforms [http://www.trolltech.com/download/opensource.html here]
** You can get the open source version for all platforms [http://www.trolltech.com/download/opensource.html 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'''
** Run '''configure''' then '''make'''
* Install SIP
* '''For Linux only''': Install SIP
** Downloads available '''[http://www.riverbankcomputing.com/software/sip/download here]'''.
** Downloads available '''[http://www.riverbankcomputing.com/software/sip/download 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'''
** Uncompress the file, and inside the directory, type '''python configure.py'''.  On 64-bit Linux type '''python configure.py -d /usr/lib64/python2.5/site-packages/'''. Then '''make''' and '''make install'''
* Install PyQt4
* Install PyQt4
** Downloads of the latest stable release and latest snapshots are available '''[http://www.riverbankcomputing.com/software/pyqt/download here]'''.
** Downloads of the latest stable release and latest snapshots are available '''[http://www.riverbankcomputing.com/software/pyqt/download here]'''.
** Uncompress the file, and inside the directory, type '''python configure.py'''. On 64-bit Linux type '''python configure.py -d /usr/lib64/python2.4/site-packages/'''. Then '''make''' and '''make install'''
** '''Windows only''': Download the binary package that contains everything you need to run PyQt4. This will install SIP and Qt for you.
** '''For Linux only''': Uncompress the file, and inside the directory, type '''python configure.py'''. On 64-bit Linux type '''python configure.py -d /usr/lib64/python2.5/site-packages/'''. Then '''make''' and '''make install'''
 
* Install MySQLdb (Python library allowing MySQL databases access)
* Install MySQLdb (Python library allowing MySQL databases access)
** The file is available [http://sourceforge.net/project/showfiles.php?group_id=22307&package_id=15775 here]
** The file is available [http://sourceforge.net/project/showfiles.php?group_id=22307&package_id=15775 here]
* Install SciPy
* Install SciPy
** Windows
** Windows
*** First download and install  [http://prdownloads.sourceforge.net/numpy/numpy-1.0.3.win32-py2.4.exe?download NumPy] and then  [http://prdownloads.sourceforge.net/scipy/scipy-0.5.2.win32-py2.4.exe?download SciPy]
*** First download and install  [http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103 NumPy] and then  [http://sourceforge.net/project/showfiles.php?group_id=27747 SciPy]
** Linux
** Linux
*** Download and install BLAS [http://www.netlib.org/blas] - 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 BLAS [http://www.netlib.org/blas] - 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
Line 63: Line 63:
* Install matplotlib
* Install matplotlib
** Windows
** Windows
*** Get it [http://downloads.sourceforge.net/matplotlib/matplotlib-0.90.1.win32-py2.4.exe?use_mirror=superb-west here]
*** Get it [http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 here]
** Linux
** Linux
*** Files are available [http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 here]
*** Files are available [http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 here]
* Install ctypes if you are using python 2.4
** The source is avalable [http://python.net/crew/theller/ctypes here]

Revision as of 05:45, 4 February 2009

Requirements

For running various not-required packages and features (packages are listed last, in parentheses):

Instructions

Click here for Specific Instructions for Mac OS X

  • 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
    • Install ZSI if you plan to use web services package
    • If you are using Python 2.4:
  • 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:.
  • For Linux only: Install Qt 4.3.0 or above (Qt 4.4.3 recommended)
    • You can get the open source version for all platforms here
    • Run configure then make
  • For Linux only: Install SIP
    • Downloads available here.
    • Uncompress the file, and inside the directory, type python configure.py. On 64-bit Linux type python configure.py -d /usr/lib64/python2.5/site-packages/. Then make and make install
  • Install PyQt4
    • Downloads of the latest stable release and latest snapshots are available here.
    • Windows only: Download the binary package that contains everything you need to run PyQt4. This will install SIP and Qt for you.
    • For Linux only: Uncompress the file, and inside the directory, type python configure.py. On 64-bit Linux type python configure.py -d /usr/lib64/python2.5/site-packages/. Then make and make install
  • Install MySQLdb (Python library allowing MySQL databases access)
    • The file is available here
  • Install SciPy
    • Windows
    • Linux
      • Download and install BLAS [1] - 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 [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 LAPACK_SRC
      • Download and install numpy [3]
      • Download and install scipy [4]
  • Install matplotlib
    • Windows
    • Linux
      • Files are available here