Difference between revisions of "Building From Source"

From VistrailsWiki
Jump to navigation Jump to search
(New page: '''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 (...)
 
Line 10: Line 10:
* VTK (if you want to run vtk workflows) http://www.vtk.org
* VTK (if you want to run vtk workflows) http://www.vtk.org
* scipy http://www.scipy.org
* scipy http://www.scipy.org
'''Instructions'''
'''[[MacIntelInstructions|Click here for Specific Instructions for Mac Intel]]'''
* Install [http://www.graphviz.org/Download.php Graphviz]
* Install Python
** On most Linux distributions it comes by default.
** On Windows: Get the msi release [http://www.python.org/2.4.2/ here]
** Add the installation directory to the PATH variable
* Install Python Extensions
** PyXml is needed for web services and is available [http://sourceforge.net/project/showfiles.php?group_id=6473&package_id=6541 here]. There's a binary package for Mac [http://pythonmac.org/packages/py24-fat/mpkg/PyXML-0.8.4-py2.4-macosx10.4.mpkg.zip 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 [http://www.sci.utah.edu/~emanuele/files/fpconst-0.7.2.tar here]. SOAPpy is available [http://sourceforge.net/project/showfiles.php?group_id=26590&package_id=18246 here]
** '''For WINDOWS only:''' to access the Windows API, 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)
** First you'll need CMake: get the latest release [http://www.cmake.org/HTML/Download.html here]
** Then you can get vtk: follow the instructions to download the CVS source code on this [http://www.vtk.org/get-software.php page]
** Before compiling VTK, add CORIE and other needed files to VTK. Instructions [wiki:ExtraVTKFIles here]
** 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
** 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.1.0 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 availaable '''[http://www.riverbankcomputing.co.uk/sip/download.php here]'''. (The latest snapshot version is [http://www.riverbankcomputing.com/Downloads/Snapshots/sip4/ 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/PyQt4'''. Then '''make''' and '''make install'''
* Install PyQt4
** Get the stable version, available '''[http://www.riverbankcomputing.co.uk/pyqt/download.php here]'''.  (The latest snapshot version is [http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt4/ 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/PyQt4'''. Then '''make''' and '''make install'''
* 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]
* Install scipy (Necessary for the SciPy package)
** Windows
*** Download and install the Enthought Scipy Python package [http://code.enthought.com/enthon/]
** Linux
*** Download and install BLAS [http://www.netlib.org/blass] - 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 [http://www.netlib.org/lapack] - 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 [http://numpy.scipy.org]
*** Download and install scipy [http://www.scipy.org]

Revision as of 21:36, 12 January 2007

Requirements

Instructions

Click here for Specific Instructions for Mac Intel

  • 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 only: to access the Windows API, we need ctypes available 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
    • Before compiling VTK, add CORIE and other needed files to VTK. Instructions [wiki:ExtraVTKFIles here]
    • 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
    • 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.1.0 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 availaable 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/PyQt4. 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. On 64-bit Linux type python configure.py -d /usr/lib64/python2.4/site-packages/PyQt4. Then make and make install
  • 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]