Building Paraview "from scratch" in order to use a custom plugin

It does not.

Then, you are right, the pvserver solution won’t work. Qt + mesa seems indeed to be the way to go.

I just tried a superbuild with gcc compiler 4.8.5 enabling mesa, qt5, python2 & mpi.

With superbuild 5.6.0, I run into this error (seems mpi related).

[ 89%] Linking CXX shared library …/…/…/lib/libvtkPVServerManagerDefault-pv5.6.so
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMRepresentationProxyClientServer.cxx.o
[ 89%] Built target vtkPVServerManagerDefault
Scanning dependencies of target vtkLegacyColorMapXMLToJSON
[ 89%] Building CXX object Utilities/LegacyColorMapXMLToJSON/CMakeFiles/vtkLegacyColorMapXMLToJSON.dir/vtkLegacyColorMapXMLToJSON.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMRepresentationTypeDomainClientServer.cxx.o
[ 89%] Linking CXX executable …/…/bin/vtkLegacyColorMapXMLToJSON
…/…/lib/libIceTMPI.so: undefined reference to ompi_mpi_comm_null'** **../../lib/libIceTMPI.so: undefined reference to ompi_mpi_short’
…/…/lib/libIceTMPI.so: undefined reference to ompi_mpi_byte'** **../../lib/libIceTMPI.so: undefined reference to ompi_request_null’
…/…/lib/libIceTMPI.so: undefined reference to ompi_mpi_int'** **../../lib/libIceTMPI.so: undefined reference to ompi_mpi_double’
…/…/lib/libIceTMPI.so: undefined reference to `ompi_mpi_float’
collect2: error: ld returned 1 exit status
gmake[5]: *** [bin/vtkLegacyColorMapXMLToJSON] Error 1
gmake[4]: *** [Utilities/LegacyColorMapXMLToJSON/CMakeFiles/vtkLegacyColorMapXMLToJSON.dir/all] Error 2
gmake[4]: *** Waiting for unfinished jobs…
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMRepresentedArrayListDomainClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMSaveScreenshotProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMScalarBarWidgetRepresentationProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMSelectionHelperClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMSelectionLinkClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMSpreadSheetRepresentationProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMSpreadSheetViewProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMTextWidgetRepresentationProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMTransferFunctionManagerClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMTransferFunctionPresetsClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMTransferFunctionProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMUtilitiesClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMViewLayoutProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMViewProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMViewProxyInteractorHelperClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMViewResolutionDomainClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMWidgetRepresentationProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMPythonViewProxyClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkSMParaViewPipelineControllerWithRenderingClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkPVServerManagerRenderingObjectFactoryClientServer.cxx.o
[ 89%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkPVServerManagerRenderingCS.dir/vtkPVServerManagerRenderingCSInit.cxx.o
[ 89%] Linking CXX static library …/…/lib/libvtkPVServerManagerRenderingCS-pv5.6.a
[ 89%] Built target vtkPVServerManagerRenderingCS
gmake[3]: *** [all] Error 2
CMake Error at /usr/local/usrapps/iabolotn/june_superbuild_5.6.0_gcc/build/superbuild/sb-paraview-build.cmake:47 (message):
Failed with exit code 2

**make[2]: *** [superbuild/paraview/stamp/paraview-build] Error 1
make[1]: *** [superbuild/CMakeFiles/paraview.dir/all] Error 2
make: *** [all] Error 2

With super build 5.8.0 the build compiles and installs without any obvious error messages, but then when I try to run the paraview, I get this message, which also looks mpi-related.

[3:18] npillai2@vclhpc26:~ $ /usr/local/usrapps/iabolotn/install/superbuild_gnu_5.8.0/bin/paraview --mesa
/usr/local/usrapps/iabolotn/install/superbuild_gnu_5.8.0/bin/paraview: symbol lookup error: /usr/local/usrapps/iabolotn/install/superbuild_gnu_5.8.0/lib/libvtkParallelMPI-pv5.8.so.1: undefined symbol: ompi_mpi_op_sum

I don’t quite know what it means or whether it has to do with the build or the environment it was run in - @mwestphal do you see anything I may have done wrong/ a step I missed? (or do you need more information?)

I defer to @ben.boeckel

I get the same error … Unable to get working server build for GPU based rendering through EGL