OGS Configuration on WSL fails
Description
Configuring ogs fails for me on Ubuntu (native or WSL) with:
Click to expand
CPM: adding package Eigen3@0 (9441d94dccccd5db8d64179516fdc5b53994a047) CPM: using local package Boost@1.69.0 CPM: adding package LibXml2@2.9.12 (v2.9.12) CPM: adding package xmlpatch@0.4.2 (v0.4.2) CPM: adding package nlohmann_json@3.6.1 (3.6.1) CMake Error at /root/opengeosys/release/_deps/vtk-build/lib/cmake/vtk-9.1/vtk-config.cmake:138 (include): include could not find requested file: /root/opengeosys/release/_deps/vtk-build/lib/cmake/vtk-9.1/VTK-targets.cmake
Call Stack (most recent call first): /root/opengeosys/release/vtk-config.cmake:1 (include) scripts/cmake/Dependencies.cmake:279 (find_package) CMakeLists.txt:89 (include)
CMake Error at /root/opengeosys/release/_deps/vtk-build/lib/cmake/vtk-9.1/vtk-config.cmake:139 (include): include could not find requested file:
/root/opengeosys/release/_deps/vtk-build/lib/cmake/vtk-9.1/VTK-vtk-module-properties.cmake
Call Stack (most recent call first): /root/opengeosys/release/vtk-config.cmake:1 (include) scripts/cmake/Dependencies.cmake:279 (find_package) CMakeLists.txt:89 (include)
CMake Error at /root/opengeosys/release/_deps/vtk-build/lib/cmake/vtk-9.1/vtk-config.cmake:150 (include): include could not find requested file:
/root/opengeosys/release/_deps/vtk-build/lib/cmake/vtk-9.1/VTK-vtk-module-find-packages.cmake
Call Stack (most recent call first): /root/opengeosys/release/vtk-config.cmake:1 (include) scripts/cmake/Dependencies.cmake:279 (find_package) CMakeLists.txt:89 (include)
CPM: adding package VTK@9.1.0 (v9.1.0)
CMake Error at /root/opengeosys/release/_deps/vtk-src/CMake/patches/99/FindHDF5.cmake:565 (get_target_property): get_target_property() called with non-existent target "hdf5_hl-shared". Call Stack (most recent call first): /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4397 (find_package) /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4997 (vtk_module_find_package) /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4868 (vtk_module_third_party_external) /root/opengeosys/release/_deps/vtk-src/ThirdParty/hdf5/CMakeLists.txt:3 (vtk_module_third_party)
CMake Error at /root/opengeosys/release/_deps/vtk-src/CMake/patches/99/FindHDF5.cmake:567 (get_target_property): get_target_property() called with non-existent target "hdf5_hl-shared". Call Stack (most recent call first): /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4397 (find_package) /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4997 (vtk_module_find_package) /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4868 (vtk_module_third_party_external) /root/opengeosys/release/_deps/vtk-src/ThirdParty/hdf5/CMakeLists.txt:3 (vtk_module_third_party)
CMake Error at /root/opengeosys/release/_deps/vtk-src/CMake/patches/99/FindHDF5.cmake:569 (get_target_property): get_target_property() called with non-existent target "hdf5_hl-shared". Call Stack (most recent call first): /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4397 (find_package) /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4997 (vtk_module_find_package) /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4868 (vtk_module_third_party_external) /root/opengeosys/release/_deps/vtk-src/ThirdParty/hdf5/CMakeLists.txt:3 (vtk_module_third_party)
Could NOT find HDF5 (missing: HL) (found version "1.12.2")
CMake Error at /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4403 (message): Could not find the HDF5 external dependency. Call Stack (most recent call first): /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4997 (vtk_module_find_package) /root/opengeosys/release/_deps/vtk-src/CMake/vtkModule.cmake:4868 (vtk_module_third_party_external) /root/opengeosys/release/_deps/vtk-src/ThirdParty/hdf5/CMakeLists.txt:3 (vtk_module_third_party)
Configuring incomplete, errors occurred!
So VTK 9.1 seems to be the problem. At least previous to !4021 (merged) it configured just fine. @bilke could reproduce it once under WSL but for unknown reason he got it resolve in his system. Building and installling a local version of the current vtk is a workaround for this problem. But the original issue is still not solved.
Specifications
- Platform: WSL2 Ubuntu 20.04.4 LTS