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

**URL:** https://discourse.paraview.org/t/building-paraview-from-scratch-in-order-to-use-a-custom-plugin/4233
**Category:** ParaView Support
**Created:** [May 1, 2020, 7:50am UTC](https://discourse.paraview.org/t/building-paraview-from-scratch-in-order-to-use-a-custom-plugin/4233 "2020-05-01T07:50:12Z")
**Posts on this page:** 5
**Page:** 3

<div class="post-metadata">

### Author: ![Lisa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lisa/32/4068_2.png) [@Lisa](https://discourse.paraview.org/u/Lisa)
#### Post date: [June 17, 2020, 12:14pm UTC](https://discourse.paraview.org/t/building-paraview-from-scratch-in-order-to-use-a-custom-plugin/4233/41 "2020-06-17T12:14:21Z")

</div>

It does not.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 18, 2020, 7:55am UTC](https://discourse.paraview.org/t/building-paraview-from-scratch-in-order-to-use-a-custom-plugin/4233/42 "2020-06-18T07:55:16Z")

</div>

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

---

<div class="post-metadata">

### Author: ![npillai2](https://discourse.paraview.org/user_avatar/discourse.paraview.org/npillai2/32/5857_2.png) [@npillai2](https://discourse.paraview.org/u/npillai2)
#### Post date: [June 22, 2020, 7:49am UTC](https://discourse.paraview.org/t/building-paraview-from-scratch-in-order-to-use-a-custom-plugin/4233/43 "2020-06-22T07:49:10Z")

</div>

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?)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 22, 2020, 7:52am UTC](https://discourse.paraview.org/t/building-paraview-from-scratch-in-order-to-use-a-custom-plugin/4233/44 "2020-06-22T07:52:16Z")

</div>

I defer to @ben.boeckel

---

<div class="post-metadata">

### Author: ![bastian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bastian/32/7513_2.png) [@bastian](https://discourse.paraview.org/u/bastian)
#### Post date: [August 31, 2021, 11:47am UTC](https://discourse.paraview.org/t/building-paraview-from-scratch-in-order-to-use-a-custom-plugin/4233/45 "2021-08-31T11:47:22Z")

</div>

> [@npillai2](#):
>
> 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.

I get the same error … [Unable to get working server build for GPU based rendering through EGL](https://discourse.paraview.org/t/server-build-for-gpu-usage-produces-undefined-symbol-ompi-mpi-comm-null/7891)

[Previous page](https://discourse.paraview.org/t/building-paraview-from-scratch-in-order-to-use-a-custom-plugin/4233.md?page=2)
