Menu

Notes3141

Featured (9)
Anonymous Bruno Santos

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

Table of Contents

Changes

  • Had to update the SILO project for MSVC2008 manually.
    • Silo patches didn't work due to some strange reason...
  • Network related bugs (on my side):
    • Had to download freetype manually from http://sourceforge.net/projects/freetype/files/freetype2/2.4.8/freetype-2.4.8.tar.gz/download
  • 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.

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.14.1-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.
    • Problems with vtkNetCDF when building win32 with MSVC2008:
      1. The error message was paraview-3.14.1-superbuild\include\H5public.h(133) : error C2632: 'int' followed by 'int' is illegal.
      2. To fix this, go to the folder ParaView-xxx-SuperBuild\ParaView-build\VTK\Utilities\vtknetcdf and edit the file ncconfig.h.
      3. Go to the line that has:

    define ssize_t int

  • Comment it out:

    //#define ssize_t int

  • Save and close.

  • 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:

  • Open the solution file ParaView-xxx-SuperBuild\ParaView-build\ParaView.sln.

  • Select the Release build instead of the Debug one.
  • To install, choose one of the following methods:
    • For full install, right click on the project INSTALL and select Project only -> Build only INSTALL.
    • For library interfaces and header files only:
    • Right click on the project INSTALL and select Properties;
    • Pick from the tree on the left Configuration Properties -> Build Events -> Post-Build Event;
    • 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
    • Apply and OK these new settings.
    • 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.4-win32-r1.exe OpenMPI-1.4.4-win32
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.14.1-win32-dev-r1.exe ParaView-3.14.1-win32-dev
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on OpenMPI-1.4.4-win64-r1.exe OpenMPI-1.4.4-win64
    • 7z a -sfx -t7z -mx=9 -ms=on -mmt=on ParaView-3.14.1-win64-dev-r1.exe ParaView-3.14.1-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.4-win32-r1.exe -o"C:\ParaViewDevs\"
 ParaView-3.14.1-win32-dev-r1.exe -o"C:\ParaViewDevs\"
 OpenMPI-1.4.4-win64-r1.exe -o"C:\ParaViewDevs\"
 ParaView-3.14.1-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.
    • Actually, need something like this:
          ExternalProject_Add_Step(Silo CopySiloLib
            COMMAND ${CMAKE_COMMAND} -E copy_if_different ${Silo_source}/${silo_bin_dir}/silohdf5.lib ${Silo_install}/lib/silohdf5.lib
            DEPENDEES install
          )
      
  • 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.