FS#72653 - [openvdb][vtk] Missing openvdb cmake config
Attached to Project:
Community Packages
Opened by bartus (bartus) - Sunday, 07 November 2021, 10:44 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 25 November 2021, 08:20 GMT
Opened by bartus (bartus) - Sunday, 07 November 2021, 10:44 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 25 November 2021, 08:20 GMT
|
Details
Description: Unable to link to `vtk:IOOpenVDB` because of
missing `openvdb` cmake configuration.
Additional info: * openvdb:8.1.0 vtk:9.1 Steps to reproduce: - create boilerplate CMakeLists.txt ``` project(test) find_package(VTK REQUIRED IOOpenVDB) ``` - call cmake . - excerpt from cmake error: ``` CMake Error at /usr/lib64/cmake/vtk/VTK-vtk-module-find-packages.cmake:603 (find_package): By not providing "FindOpenVDB.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenVDB", but CMake did not find one. Could not find a package configuration file provided by "OpenVDB" with any of the following names: OpenVDBConfig.cmake openvdb-config.cmake Add the installation prefix of "OpenVDB" to CMAKE_PREFIX_PATH or set "OpenVDB_DIR" to a directory containing one of the above files. If "OpenVDB" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /usr/lib64/cmake/vtk/vtk-config.cmake:150 (include) CMakeLists.txt:2 (find_package) ``` |
This task depends upon
Closed by Antonio Rojas (arojas)
Thursday, 25 November 2021, 08:20 GMT
Reason for closing: Fixed
Additional comments about closing: openvdb 9.0.0-4
Thursday, 25 November 2021, 08:20 GMT
Reason for closing: Fixed
Additional comments about closing: openvdb 9.0.0-4
```
list(INSERT CMAKE_MODULE_PATH 0 "/usr/lib/cmake/OpenVDB")
```
As a workaround, you can pass -DOpenVDB_CMAKE_PATH=/usr/lib/cmake/OpenVDB to cmake
Target `VTK:CommonCore` depends on `tbb+openmp` and is required for almost all targets provided in VTK alongside `VTK:vtkm` which handles parallelism and requires `fmt` beside `tbb+openmp`
Should I create a new bug report for that or just leave it here?
This seems mostly related to what looks like missing dependencies that are not installed together with vtk (or found - as the openmvdb one) but vtk is expecting them to be present at runtime and looks for them.
packages as postgresql ospray openvr python-mpi4py openmpi, adios2 (maybe others) which are not listed as dependencies are actually looked for by cmake at runtime.
Anyway, sorry for the not really useful report. Sven where did you pushed your changes? I´d like to test them out.
/usr/share/cmake-3.22/Modules/FindOpenVDB.cmake -> /build/openvdb/pkg/openvdb/usr/lib/cmake/OpenVDB/FindOpenVDB.cmake
but it should be
/usr/share/cmake-3.22/Modules/FindOpenVDB.cmake -> /usr/lib/cmake/OpenVDB/FindOpenVDB.cmake