[vtkusers] Build VTK without OpenGL and with MPI

Paul T. Bauman ptbauman at gmail.com
Fri Dec 9 10:36:20 EST 2016


Greetings,

I'm updating my build script for VTK. Ala the discussion in this thread,
http://public.kitware.com/pipermail/vtkusers/2016-December/097359.html I
would like to build VTK with MPI enabled. However, the (automated testing)
server I'm building VTK on does not have OpenGL on it (we're not doing
rendering or anything, just I/O of VTK formats for visualization using
ParaView). Previously, before needing MPI, the following CMake options got
the job done for me:

cmake \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_INSTALL_PREFIX:PATH=$VTK_DIR \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILD_EXAMPLES:BOOL=OFF \
-DBUILD_TESTING:BOOL=OFF \
-DVTK_BUILD_ALL_MODULES_FOR_TESTS:BOOL=OFF \
-DVTK_Group_Rendering:BOOL=OFF \
-DVTK_Group_StandAlone:BOOL=OFF \
-DModule_vtkCommonCore:BOOL=ON \
-DModule_vtkCommonDataModel:BOOL=ON \
$BUILDDIR/VTK-$VTK_VERSION

However, if I now add -DVTK_Group_MPI:BOOL=ON, then it seems to re-enable
OpenGL in my CMake build script. Anyway to have both?

Thanks for any suggestions.

Best,

Paul

P.S. I'm a CMake newb, so I'm happy to be pointed to a command to list the
options I can specify to the cmake command to try and figure it out for
myself without having to bug the list, i.e. an analog to Autotools
`configure --help`.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161209/fab780cb/attachment.html>


More information about the vtkusers mailing list