If you have no X server, you will indeed need to build against osmesa. Setting the OffScreenRendering option in vtkRenderWindow
is not sufficient - that option still relies on X being present.
I recommend a couple options:
- Download and install ParaView 5.6.0 for linux built against osmesa. If you want to run Python scripts that use VTK, you can run
pvpython
and run
>>> import paraview.vtk as vtk
>>> from vtk import *
It isn’t the ideal way to import VTK, but it will get you running.