Skip to content

Paraview Linking error while tring to build from superbuild.

Hi, I was trying to build Paraview-5.7 from the source files of Superbuild. I got the following error while making Paraview: undefined reference to del_curterm@ncurses6_tinfo...

I found the problem was coming from a build.make files at paraview-build/superbuild/paraview/build/CommandLineExecutables/CMakeFiles I corrected the problem by modifying link.txt file in each of the folders at paraview-build/superbuild/paraview/build/CommandLineExecutables/CMakeFiles/{pvbatch.dir, pvrenderserver.dir, pvdataserver.dir, pvserver.dir, pvpython.dir} In each of the link.txt file, I added -ltinfo along with whatever other library linkings were. This solved the issue and I was able to compile Paraview.

While running install make I again got another error which I found was because of a typo in a file located at paraview-build/install/lib/cmake/paraview-5.7/vtk/VTK-targets.cmake In this file there is a line which goes as follows:

set_target_properties(VTK::vtkxdmfcore PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/paraview-5.7/vtkxdfm3/core"
  INTERFACE_LINK_LIBRARIES "VTK::libxml2;Boost::boost"
)

This is a typo and vtkxdfm3 in the above code must be replaced with vtkxdmf3. After I corrected this, I was able to successfully run a make install

Can anyone suggest a way to circumvent this manual intervention?

Edited by Alankar Dutta