Programming:Compiling Paraview 3.8.1 for OS X 10.6.4
Had to install xtools again, even though I thought I had already installed it. This gave me the correct C and C++ compilers.
Installed cmake binary, and actually used ccmake
Did *not* install separate version of VTK. VTK is bundled with Paraview source.
Installed Qt 4.6.2, as the latest version (4.7) was rejected by the compiler. Not sure how to override that.
Downloaded Paraview source code 3.8.1
created a new directory (ParaView-bin) beside the source
$ ls drwxr-xr-x@ 22 thunderrabbit staff 748 Oct 19 12:42 ParaView-3.8.1 -rw-r--r--@ 1 thunderrabbit staff 33123181 Oct 15 12:22 ParaView-3.8.1.tar.gz drwxr-xr-x 28 thunderrabbit staff 952 Oct 19 16:37 ParaView-bin
cd into the directory and run ccmake
$ cd ParaView-bin $ ccmake ../ParaView-3.8.1
CMake Variables
Taken from http://www.paraview.org/Wiki/ParaView:Build_And_Install#CMake_Variables, I used these values:
Variable | Value | Description |
BUILD_SHARED_LIBS | ON | Enables shared libraries (unless you are sure you want to do static builds) |
CMAKE_BUILD_TYPE | Release | Unless you want to end up with debug install, set this to Release |
PARAVIEW_USE_MPI | OFF | Unless you are taking extra steps to ensure that the clients have the required MPI libraries, set this to OFF, since ParaView does not include rules to package MPI. |
PARAVIEW_ENABLE_PYTHON | OFF | Unless you are taking extra steps to ensure that clients have the rquired python libraries/modules. |
PARAVIEW_GENERATE_PROXY_DOCUMENTATION | ON | To ensure that the html documentation for the sources/filters/readers/writes is generated and packed into the application, turn the following flag ON. |
PARAVIEW_INSTALL_DEVELOPMENT | ON | To package development files so that people can build plugins/custom-apps using the installation. |
PARAVIEW_BUILD_QT_GUI | ON | To enable building the Qt client |
building
c to configure g to generate and exit
$ make
and wait 3 hours.
extra plugin
$ ls -rw-r--r--@ 1 thunderrabbit staff 6148 Oct 15 20:18 .DS_Store drwxrwxr-x 3 thunderrabbit staff 102 Oct 19 09:11 CMakeFiles drwxr-xr-x@ 22 thunderrabbit staff 748 Oct 19 12:42 ParaView-3.8.1 -rw-r--r--@ 1 thunderrabbit staff 33123181 Oct 15 12:22 ParaView-3.8.1.tar.gz drwxr-xr-x 28 thunderrabbit staff 952 Oct 19 16:37 ParaView-bin
$ git clone git://git.cscs.ch/ArrowGlyph.git vtkArrowGlyph $ mkdir vtkArrowGlyph-bin
$ ls -rw-r--r--@ 1 thunderrabbit staff 6148 Oct 15 20:18 .DS_Store drwxrwxr-x 3 thunderrabbit staff 102 Oct 19 09:11 CMakeFiles drwxr-xr-x@ 22 thunderrabbit staff 748 Oct 19 12:42 ParaView-3.8.1 -rw-r--r--@ 1 thunderrabbit staff 33123181 Oct 15 12:22 ParaView-3.8.1.tar.gz drwxr-xr-x 28 thunderrabbit staff 952 Oct 19 16:37 ParaView-bin drwxr-xr-x 9 thunderrabbit staff 306 Oct 19 17:14 vtkArrowGlyph drwxrwxr-x 2 thunderrabbit staff 68 Oct 19 17:14 vtkArrowGlyph-bin
$ cd vtkArrowGlyph-bin $ ccmake ../vtkArrowGlyph
You should see a mostly white screen with Empty Cache at the top.
configure, setup path to PARAVIEW build directory when asked. configure/generate until no errors appear then from /path/to/different/build/vtkArrowGlyph
make
should take a minute to build, there is only one source file, plus plugin stuff
any errors you can’t fix, send me full output. I have everything setup here so I assume everyone knows how to build plugins.
Once compiled, run paraview, tool/manage plugins, load new, select “auto load” once loaded.
JB