I’ve got a VisIt database plugin that i’d like to add to Paraview (which I built from source with PARAVIEW_USE_VISITBRIDGE=ON and Boost_INCLUDE_DIR is set).
That example plugin has been commented out for a long time (last touched in 2012 and it was commented before that too). I suspect that ParaView is not making the required CMake API available to external consumers (likely true on master as well). However, on master, the required CMake code is a lot cleaner and we can look at making it available. This would involve some work since the code ultimately assumes that there is only one consumer of the global properties used by the API (which is not a valid assumption for installed CMake APIs).
I encounter the same problem.
I installed Paraview on Ubuntu 21 using sudo apt install paraview and then all the apt dev packages required by cmake. Then it fails on:
> CMake Deprecation Warning at /usr/lib/x86_64-linux-gnu/cmake/paraview-5.9/paraview-use-file-deprecated.cmake:1 (message):
> The `PARAVIEW_USE_FILE` is no longer used starting with 5.7.
> Call Stack (most recent call first):
> CMakeLists.txt:8 (INCLUDE)
>
>
> CMake Error at CMakeLists.txt:14 (ADD_VISIT_PLUGIN_READER):
> Unknown CMake command "ADD_VISIT_PLUGIN_READER".
>
>
> -- Configuring incomplete, errors occurred!
Then I tried to build paraview from sources (with an enhanced version of the paraview spack package.py). I failed to make the bridge:
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
BOOST_LIBRARY_DIR
BOOST_ROOT
Boost_INCLUDE_DIR
MPI_Fortran_COMPILER
PARAVIEW_ENABLE_EXAMPLES
PARAVIEW_QT_VERSION
PARAVIEW_USE_VISITBRIDGE
PYTHON_EXECUTABLE
SILO_INCLUDE_DIR
SILO_LIBRARY
SILO_LIBRARY_DIR
Is this feature abandoned or is there a pointer to a newer documentation ?
Thanks in advance.
Olivier Cessenat
Thanks for that but I failed to make it work still.
With 5.9.1 I get
CMake Warning:
Manually-specified variables were not used by the project:
BOOST_LIBRARY_DIR
BOOST_ROOT
Boost_INCLUDE_DIR
MPI_Fortran_COMPILER
PARAVIEW_ENABLE_EXAMPLES
PARAVIEW_ENABLE_VISIT_BRIDGE
PARAVIEW_QT_VERSION
PARAVIEW_USE_VISITBRIDGE
PYTHON_EXECUTABLE
SILO_INCLUDE_DIR
SILO_LIBRARY
SILO_LIBRARY_DIR
VISIT_BRIDGE_READER_Silo
1 error found in build log:
129 -- Looking for finite - found
130 -- Looking for fenv.h
131 -- Looking for fenv.h - found
132 -- Looking for feenableexcept
133 -- Looking for feenableexcept - found
134 -- Could NOT find ExprTk (missing: ExprTk_INCLUDE_DIR) (Required is at least version "2.7")
>> 135 CMake Error at VTK/CMake/vtkModule.cmake:4371 (message):
136 Could not find the ExprTk external dependency.
137 Call Stack (most recent call first):
138 VTK/CMake/vtkModule.cmake:4965 (vtk_module_find_package)
139 VTK/CMake/vtkModule.cmake:4836 (vtk_module_third_party_external)
140 VTK/ThirdParty/exprtk/CMakeLists.txt:1 (vtk_module_third_party)
141