SMTK Master cannot find vtkPVClientServer / vtkPVServerManager


The latest SMTK master branch fails to build with the following error when compiling against ParaView 5.5 and greater.

/usr/bin/ld: cannot find -lvtkPVClientServer
/usr/bin/ld: cannot find -lvtkPVServerManager
collect2: error: ld returned 1 exit status
thirdparty/smtk/smtk/extension/paraview/server/CMakeFiles/smtkPVServerExt.dir/build.make:435: recipe for target 'lib/' failed
make[2]: *** [lib/] Error 1
CMakeFiles/Makefile2:5030: recipe for target 'thirdparty/smtk/smtk/extension/paraview/server/CMakeFiles/smtkPVServerExt.dir/all' failed
make[1]: *** [thirdparty/smtk/smtk/extension/paraview/server/CMakeFiles/smtkPVServerExt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Problem comes from smtk/extension/paraview/server/CMakeLists.txt. vtkPVClientServer and vtkPVServerManager need to be replaced with vtkPVClientServerCoreDefault and vtkPVServerManagerCore

Here is a patch I created that fixes the issue but probably doesn’t resolve it if compiling against older versions of ParaView:

--- smtk/extension/paraview/server/CMakeLists.txt         2018-07-16 13:49:24.912851751 -0500
+++ smtk-new/extension/paraview/server/CMakeLists.txt   2018-07-16 16:23:16.983636338 -0500
@@ -63,8 +63,8 @@
 -    vtkPVClientServer
 -    vtkPVServerManager
 +    vtkPVClientServerCoreDefault
 +    vtkPVServerManagerCore
      vtkSMTKReaderExt # vtkLIDARReader
      vtkSMTKFilterExt # vtkTerrainExtractionFilter, vtkLIDARElevationFilter


Hi Corey,

CMB is currently building off of a shar on ParaView’s master branch that is later than ParaView 5.5.2 by about a month - what version of ParaView were you compiling against?


Robert M. O’Bara, MEng.
Assistant Director of Scientific Computing

Kitware Inc.
28 Corporate Drive
Suite 101
Clifton Park, NY 12065

Phone: (518) 881- 4931

Hi Bob,

Using commit id 86ceeb070d4c9df8648151ddcb910c70c58a7093

Please note I am not using the superbuild of either CMB or PV.



Hi Corey,

Would you be willing to share (or grant access to) your build configuration with us?


EDIT: I mean the repository you have for building SMTK & CMB.

Attached are my two basic build scripts for CMB and Paraview. (2.7 KB) (2.2 KB)

Please note I changed the file extensions since you don’t allow text files or shell scripts to .smtk. Feel free to remove if I violated a guideline.

I built directly against for VTK / ParaView and for CMB / SMTK.

I can give you the secondary tools I compiled against but I don’t think those are the issue (nlohmann_json, opencv, vxl, etc, etc)


This is still occuring for me with the latest paraview-5.6.0. I suspect you don’t see it because you are masking it with the Superbuild and I don’t build with the superbuild. @ben.boeckel adding you to review as I know you look at some build / cmake fun.

The non-working names seem to be kits. Will be addressed once ParaView is exporting proper targets everywhere.