Menu

Notes3980

Featured (9)
Anonymous Bruno Santos

Table of Contents

Changes

  • Added additional options for:
    • SILO project is now upgradable manually when using MSVC2008 Express, if INTERACTIVE_UPGRADE is set to ON.
    • Installing the development files:
    • Set ParaView_INSTALL_DEVELOPMENT to ON, which will install the ParaView development files into the intermediate "install" folder. Additionally, it will install the ParaView development files only into a sibling folder of the target installation.
    • Set ParaView_INSTALL_FULL_DEVELOPMENT to ON, which will copy the intermediate "install" folder to a sibling folder of the target installation.
    • Set mpi_INSTALL_DEVELOPMENT to ON, which will install the Open-MPI build into a sibling folder of the target installation.
    • (Added on unofficial r2) Options for building with Java wrappers have been added, but it looks like VTK 6.0 isn't complete yet. You can try them for yourself, by turning on ParaView_MODULE_VTKWRAPPINGJAVA and ParaView_VTK_WRAP_JAVA.
  • Had to perform a couple more patches to Open-MPI 1.6.2's CMake source files, to avoid it trying to look up for a FORTRAN compiler, unless strictly requested.

Default options

Here is a list with the defaults used in CMake.

Windows

Assuming everything is referenced to P:/ParaView-3.98.0-sandbox/, here's an example for 32bit, along with the defaults:

  • SuperBuild source code folder: P:/ParaView-3.98.0-sandbox/ParaViewSuperBuild
  • Build folder: P:/ParaView-3.98.0-sandbox/pv32-build
  • CMake options:

    ~~~~~~
    CMAKE_CONFIGURATION_TYPES:STRING=Release
    CMAKE_CXX_FLAGS <- append /MP
    CMAKE_C_FLAGS <- append /MP
    CMAKE_INSTALL_PREFIX:STRING=P:/ParaView-3.98.0-sandbox/release-x64/ParaViewSuperBuild
    download_location:PATH=P:/ParaView-3.98.0-sandbox/downloads

    FTJAM_EXECUTABLE:PATH=P:/ParaView-3.98.0-sandbox/jam.exe
    GIT_EXECUTABLE:PATH=D:/Program Files (x86)/Git/bin/git.exe
    GITCOMMAND:PATH=D:/Program Files (x86)/Git/bin/git.exe
    QT_QMAKE_EXECUTABLE:PATH=Q:/4.8.2_x64/bin/qmake.exe
    DEVENV_PATH:PATH=d:/PROGRA~2/MICROS~1.0/Common7/IDE/VCExpress.exe

    This one is necessary only for MSVC Express

    INTERACTIVE_UPGRADE:BOOL=ON

    ParaView_INSTALL_DEVELOPMENT:BOOL=ON
    mpi_INSTALL_DEVELOPMENT:BOOL=ON
    ParaView_INSTALL_FULL_DEVELOPMENT:BOOL=ON

    ENABLE_acusolve:BOOL=OFF
    ENABLE_boost:BOOL=ON
    ENABLE_cgns:BOOL=ON
    ENABLE_freetype:BOOL=ON
    ENABLE_hdf5:BOOL=ON
    ENABLE_libxml2:BOOL=OFF
    ENABLE_manta:BOOL=OFF
    ENABLE_matplotlib:BOOL=ON
    ENABLE_mpi:BOOL=ON
    ENABLE_numpy:BOOL=ON
    ENABLE_paraview:BOOL=ON
    ENABLE_png:BOOL=ON
    ENABLE_python:BOOL=ON
    ENABLE_qt:BOOL=ON
    ENABLE_silo:BOOL=ON
    ENABLE_szip:BOOL=ON
    ENABLE_visitbridge:BOOL=ON
    ENABLE_vistrails:BOOL=OFF
    ENABLE_zlib:BOOL=ON
    ~~~~~~

Steps

These steps are for recreating the official builds of ParaView, as well as turn on the additional features presented in this unofficial project.

Windows

You'll have to do these steps once per architecture (x86 and x86_64):

  1. Install the MSVC 2008 version of Qt 4.8.2 (if in doubt, pick with Qt3) from http://code.google.com/p/qt-msvc-installer/.

  2. Install Git for Windows: http://msysgit.github.com/

  3. Download the source code for the ParaView SuperBuild using either one of the following:


    • Using git:
      git clone git://git.code.sf.net/p/unofficial-paraview-sdk/superbuild3980
      cd superbuild3980
      git checkout unofficial-r2

    • Or download and unpack a zip snapshot from the repository: unofficial-r2.zip - click on the "Download Snapshot" link.

  4. Configure the project with the CMake GUI. For each one, you'll probably have to hit the "Configure" button.

    1. Properly define where to install by defining CMAKE_INSTALL_PREFIX.
      a. Warning: use a two level path, e.g. c:/ParaViewBuilds/ParaView-3.98.0-win32. This is because the options *_INSTALL_DEVELOPMENT:BOOL=ON will install the development packages in the respective subfolders at c:/ParaViewBuilds/.

    2. Notes:
      a. Always use in your paths with CMake the slash character '/', as exemplified in the previous point.
      b. If you want to spare yourself some grief, DO NOT use folder paths that have SPACES in them...

    3. The remaining configuration variables are in the previous chapter Default options

    4. When done configuring it all, hit the "Configure" and/or "Generate" buttons.

  5. To build the project, open the file ParaViewSuperBuild.sln with MSVC 2008 (Express).

  6. Choose the Release version, instead of the Debug version.

  7. Menu Solution -> Build Solution.

  8. Build as many times as necessary, since there might be missing dependencies. Check the logs for errors.

  9. When all built and for installing, right click on the project INSTALL and select Project only -> Build only INSTALL.

Packaging

Creating the self-extractables:

  1. Have 7zip accessible from the command line and go to the base of the SuperBuild installations.
  2. Run for each respective package the following commands:
    • ParaView standard:
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.98.0-win32-r1.exe ParaView-3.98.0-Windows-32bit
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.98.0-win64-r1.exe ParaView-3.98.0-Windows-64bit
    • ParaView development files only:
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.98.0-win32-dev-r1.exe ParaView-3.98.0-Windows-32bit-dev
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.98.0-win64-dev-r1.exe ParaView-3.98.0-Windows-64bit-dev
    • ParaView complete development folder:
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.98.0-win32-complete_dev-r1.exe ParaView-3.98.0-Windows-32bit-complete_dev
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.98.0-win64-complete_dev-r1.exe ParaView-3.98.0-Windows-64bit-complete_dev
    • Open-MPI:
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on OpenMPI-1.6.2-win32-r1.exe OpenMPI-Windows-32bit
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on OpenMPI-1.6.2-win64-r1.exe OpenMPI-Windows-64bit

Installing

Currently they are self-extractable, not installers themselves. Either run where they are and place the resulting folder where you want... Or run each self-extractable like this:

 ParaView-3.98.0-win32-dev-r1.exe -o"C:\ParaViewDevs\"
 ParaView-3.98.0-win64-dev-r1.exe -o"C:\ParaViewDevs\"

TODO and Wish List

  • Add additional options for:

    • installing ParaView at the end of the SuperBuild process.
    • Actually, need something like this (source):

          ADD_CUSTOM_COMMAND(
              TARGET crysfml
              POST_BUILD
              COMMAND ${CMAKE_COMMAND} -E make_directory my_dir2
              COMMAND ${CMAKE_COMMAND} -E copy_directory my_dir1 my_dir2)
      
    • packaging with NSIS and/or ZIP the development version of ParaView.


Related

Wiki: FrontPage
Wiki: Notes410
Wiki: vtkPOFFReaderBuilds