Starting with 2020 I try to build paraview on a server without any GPU and running CentOS7. I found this tutorial https://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D but it seams very old and I’m not able to found mesa 13.x . Latest mesa is 19.x and building the osmesa library is completely different, using meson instead of configure.
Did some one build paraview with OSMesa and can provide some tutorial ? I’ve built llvm (the recomended 3.9.1 version of the tutorial and the latest 9.0.1 version) buts with OSMesa…I’m sttuck!
Thanks all
Patrick
Patrick,
On linux you can use spack to build paraview + osmesa. I used the following command to recently build it. Note that spack will build all dependent libraries, so the process will take a longer time.
An alternative to the SPACK path that Dan recommends, is to build osmesa via the paraview superbuild. The version we build is a year or so out of date with current mesa because we have yet to transition over mesa’s autotools->meson change but it will get you a production ready gpu-less paraview installation.
If you are constrained to building ParaView directly, it is still worthwhile to follow how the superbuild project builds osmesa, since the source is much more up to date than the wiki documentation.
Thanks Dan and Dave for these suggestions. At this time I’m testing spack but it seams that the software installed by this way is in the spack subtree and I need a system wide setup for all the users (I’m a sys admin). Is spack an alternative to nix tool ?
I will look at paraview superbuild too and try to setup mesa, building OSmesa is always one of the most difficult step in deploying Paraview on GPU free servers.
I was not able to use Spack as I got some conflicts with several gcc compiler version in Python modules… So I switch to paraview superbuild but again I had some troubles.
I’m using v5.7.0-RC4
now I have a problem with HDF5, compiled by paraview-superbuild. The HDF5_ROOT is properly set but is ignored by cmake and HDF5 is not detected when building Paraview.
CMake variable HDF5_ROOT is set to:
/home/begou/PARAVIEW/build/install
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
– HDF5: Using hdf5 compiler wrapper to determine C configuration
CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find HDF5 (missing: HDF5_HL_LIBRARIES)
Is there a way to solve this easily? This problem also broke netcdf build (I have disabled it).
Just a bad idea from me, Mathieu ! I went back to the master branch today and try to build Paraview. I would like to have pvserver and the paraview client on this server, even if it has no GPU, because I will use it for a workshop session outside of the lab in a few weeks. I ran:
Something is wrong with the Ubuntu X packages and linker behaviors that causes this. It’s seen occasionally, but many people have no issues. I haven’t been able to fix it or figure out what the root cause is so far .
Hi Ben,
I’m not using Ubuntu, but an up to date CentOS7 distro.
Actualy I have partialy solved the need to have paraview running on this server with a manual install of paraview 5.4 (and an old Mesa version 17.x) using an old procedure based on many advices received on this forum. It runs!
But i will enjoy to build the latest paraview version using superbuild setup…