How to Compile PV 5.9 with OSPRay Material Library Loaded

Hey there, anyone know the CMake commands to compile 5.9 with the OSPRay material library loaded by default?

This is the branch I need to include.

https://gitlab.kitware.com/paraview/materials

In the precompiled super build it comes preloaded but we are having issues compiling it in ourselves.

Thanks

You shouldn’t have to compile it specially per se, just put the specific material library you want in the right place for the ParaView client side binary to find and load it at startup.

As to what the right place is, it is either whatever the environment variable PV_MATERIALS_PATH says, or if not there then “near” the client executable paraview.exe. The exact definition of “near” is depends on the Operating system. See
https://gitlab.kitware.com/paraview/paraview/-/blob/master/Remoting/Views/vtkPVMaterialLibrary.cxx#L42

hth

Perfect, that helps a lot Dave. I had put it in the correct folder structure but didn’t have the env path loaded.

Thanks,