Menu

Notes3120

Featured (9)
Anonymous Bruno Santos

A copy of this wiki page is kept at: Notes.wiki at the repo paraview3120

Table of Contents

Changes

  • Had to update the SILO project for MSVC2008 manually.
    • Silo patches didn't work due to some strange reason...
  • Had to fix some MD5 sums.
  • Network related bugs (on my side):
    • Had to download freetype manually from http://sourceforge.net/projects/freetype/files/freetype2/2.4.6/freetype-2.4.6.tar.gz/download
    • Had to download Python 2.7.2 manually as well.
  • Added additional options for:
    • installing the development files:
    • define in CMAKE_INSTALL_PREFIX the path where it should be installed;
    • set ParaView_INSTALL_DEVELOPMENT to ON.
    • set ParaView_MPI_SUPERBUILD to OFF for using the System's MPI.
  • Also installs Open-MPI in the parent folder of the main installation, when it builds on Windows.
  • Commented out the packaging instructions for IceT, so it wouldn't get mixed in with ParaView's project list. But doesn't seem to fix the bigger packaging problem.

Steps

Windows

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

  • Install the MSVC 2008 version of Qt 4.6.3 from http://code.google.com/p/qt-msvc-installer/.
  • Configure the project with the CMake GUI. For each one, you'll probably have to hit the "Configure" button.
    • Properly define where to install by defining CMAKE_INSTALL_PREFIX.
    • Advice: use a two level path, e.g. c:\ParaViewBuilds\32bit\ParaView-3.12.0-win32-dev - this is because Open-MPI will be automatically installed at c:\ParaViewBuilds\32bit\OpenMPI-install
    • Also properly define where to place the SuperBuild building area, namely the "Where to build the binaries". E.g.: C:\ParaView-xxx-SuperBuild\
    • Point QT_QMAKE_EXECUTABLE to the full path to where qmake.exe from Qt 4.6.3 is.
    • Select the option ParaView_INSTALL_DEVELOPMENT.
    • If you want to spare yourself some grief, DO NOT use folder paths that have SPACES in them...
    • When done configuring it all, hit the "Generate" button.
  • To build them all, open the file ParaViewSuperBuild.sln with MSVC 2008 Express.
    • Choose the Release version, instead of the Debug version.
    • Menu Solution -> Build Solution.
    • There will be failures in the first run. Expected steps:
    • Problems with SILO:
      1. Open the solution file ParaView-xxx-SuperBuild\Silo\SiloWindows\MSVC8\SiloWindows.sln...
      2. and make MSVC upgrade the project.
      3. File -> Save all.
      4. Close solution.
    • Some packages might fail to download. You might need to download manually and place them at ParaView-xxx-SuperBuild\.
    • Build as many times as necessary, since there might be missing dependencies. Check the logs for errors.
  • When all built:
    1. Open the solution file ParaView-xxx-SuperBuild\ParaView-build\ParaView.sln.
    2. Select the Release build instead of the Debug one.
    3. To install, choose one of the following methods:
    4. For full install, right click on the project INSTALL and select Project only -> Build only INSTALL.
    5. For library interfaces and header files only:
      1. Right click on the project INSTALL and select Properties;
      2. Pick from the tree on the left Configuration Properties -> Build Events -> Post-Build Event;
      3. In the Command edit box, change the part
        -DBUILD_TYPE=$(OutDir) -P cmake_install.cmake
        to
        -DBUILD_TYPE=$(OutDir) -DCOMPONENT=Development -P cmake_install.cmake
      4. Apply and OK these new settings.
      5. 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:
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on OpenMPI-1.4.3-win32-r1.exe OpenMPI-1.4.3-win32
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.12.0-win32-dev-r1.exe ParaView-3.12.0-win32-dev
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on OpenMPI-1.4.3-win64-r1.exe OpenMPI-1.4.3-win64
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.12.0-win64-dev-r1.exe ParaView-3.12.0-win64-dev

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:

 OpenMPI-1.4.3-win32-r1.exe -o"C:\ParaViewDevs\"
 ParaView-3.12.0-win32-dev-r1.exe -o"C:\ParaViewDevs\"
 OpenMPI-1.4.3-win64-r1.exe -o"C:\ParaViewDevs\"
 ParaView-3.12.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.
    • need to hack the rule for PACKAGE in ParaView.
    • need PACKAGE and INSTALL entries in superbuild.
  • Option for VCBuild, so it can upgrade Silo more easily when using the Express editions. But vcbuild only comes with the PlatformSDK.

Related

Wiki: FrontPage

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.