Unable to find paraview library installed from source

Hi everyone.

I am having some problems finding the library paraview from others libraries. I installed paraview library from source, but other libraries don’t find it. This is the error provided:

CMake Error at paraview_wrapping/CMakeLists.txt:3 (find_package):
By not providing "FindParaView.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "ParaView",
but CMake did not find one.

Could not find a package configuration file provided by "ParaView" with any
of the following names:

  ParaViewConfig.cmake
  paraview-config.cmake

Add the installation prefix of "ParaView" to CMAKE_PREFIX_PATH or set
"ParaView_DIR" to a directory containing one of the above files.  If
"ParaView" provides a separate development package or SDK, be sure it has
been installed.

However, when I indicate explicitly the path of the source code build folder (where the file ParaViewConfig.cmake has been created), it find the file, but some targets seems undefined:

CMake Error at /home/robotronics/Libs/paraview/build/ParaViewTargets.cmake:41 (message):
Some (but not all) targets in this export set were already defined.

Targets not yet defined:

vtkProbeOpenGLVersion;vtkGUISupportQt; ...  ;vtkWrapClientServer;protoc_compiler;kwProcessXML

Could anyone help me find the problem?

Thanks a lot in advance,
Carlos.

What do you mean by that ?

The problem is that when I try to build another library with paraview dependence, it doesn’t find it. I followed the installation tutorial of paraview and it works, but the library is not found externally by others. Any idea how to find the library path?

Which one ?
Which steps do you take ?

I followed this tutorial for Ubuntu 18.04 LTS: https://github.com/Kitware/ParaView/blob/master/Documentation/dev/build.md

Executing:

    git clone --recursive https://gitlab.kitware.com/paraview/paraview.git
    mkdir paraview_build
    cd paraview_build
    cmake -GNinja -DPARAVIEW_USE_PYTHON=ON -DPARAVIEW_USE_MPI=ON -DVTK_SMP_IMPLEMENTATION_TYPE=TBB -DCMAKE_BUILD_TYPE=Release ../paraview
    ninja
    sudo ninja install

And testing that the library is properly installed running ./bin/paraview
The problem is finding the library from another.

Are you able to build one of the example plugin from ParaView source ?

Yes, it is possible to do

Then you have a problem in the CMakeLists.txt you are using.