Hi. With all the great help from this forum, I have managed to write a usable VTK volume rendering C++ code. I want to use this code on a supercomputer with no X display server or root privileges. The main thing that I want to do is render without opening a window. Upon googling a lot, I found that I need to build VTK with OSMESA. I have tried a lot but I am having hard time building VTK on our cluster with OSMESA support. I keep running into some variation of “library not found” errors. I tried the instructions on the following paraview wiki page as well
The problem with these instructions is that I couldn’t execute the make install command (permission denied) for llvm driver. Because of this, I think, when I configure mesa, I get the llvm-config not found error. Also, apparently mesa swrast doesn’t support the latest VTK (as discussed in the paraview wiki page).
I have also tried running the OffScreenRendering example on VTK Examples website but it doesn’t work for the current version of VTK.
It would be very helpful if someone here could show a self-contained way of building VTK on a system without X and what code I should add to my VTK volume rendering code to render without opening a window. I am also wondering if we even need OSMESA.
I am a physics student and so please forgive my ignorance.
Thank you and best regards.