[vtkusers] Compiling VTK on X11-less system

Robert Sawko robertsawko at gmail.com
Tue Feb 6 04:11:10 EST 2018


Thanks Dan, I was actually aware of that article, but I misread it as ParaView
only.

For anyone looking for a similar build, this is what worked for me at VTK
version 8.1.0 on RHEL with NVIDIA drivers installed. I also required MPI:

#!/bin/bash

rm -rf build/*
cd build
install_path=~/apps/vtk/8.1.0

cmake \
    -DVTK_OPENGL_HAS_EGL=YES \
    -DVTK_USE_X=NO \
    -DVTK_Group_MPI=ON \
    -DVTK_RENDERING_BACKEND=OpenGL2 \
    -DEGL_LIBRARY=/usr/lib64/nvidia/libEGL.so \
    -DEGL_opengl_LIBRARY=/usr/lib64/nvidia/libOpenGL.so \
    -DCMAKE_INSTALL_PREFIX=$install_path \
    ../

Best wishes,
Robert
-- 
Lucy in the sky
http://www.cfa.harvard.edu/news/archive/pr0407.html
http://news.bbc.co.uk/1/hi/sci/tech/3492919.stm


More information about the vtkusers mailing list