How to build headless paraview in local?

Hi all,

Now I use ubuntu 18.04 + openfoam 4.1 + paraview 5.0.1 (compile installation), and I can run the python script using pvpython XX.py, but the interactive window would appear during the running.

So I want to use the headless version of paraview, I find some methods to build it, like directly download headless version form offical website, or compile the headless version by yourself using EGL or OSMESA. But I am still confused about how to use it.

Does anyone give me some suggestion? My local graphics device is NVIDIA GeForce GTX 1660.

Thanks!

Hi @Ying ,

Super old, please use the last release from https://www.paraview.org/download/

I want to use the headless version of paraview,

No, you want to use offscreen rendering, with the latest paraview this is pvpython --force-offscreen-rendering

Hi @mwestphal,

Thanks for your information! My current paraview 5.0.1 is compiled installed together with openfoam 4.1 in ubuntu 18.04. Can I just upgrade it? Or I need to download the latest version paraview and reinstall it in linux?

Thanks!

I dont think so. There is no reason to use the version of ParaView built with openfoam anyway.

Thanks! I will download the latest version from official website.

No, you want to use offscreen rendering, with the latest paraview this is pvpython --force-offscreen-rendering

By saying this sentence, do you mean the headless paraview (without graphics and X server) and the paraview with --force-offscreen-rendering is the same thing?

I mean that they are not the same thing at all. Read this:

https://kitware.github.io/paraview-docs/v5.9.0/cxx/Offscreen.html