fatal error: vtk_hdf5.h: No such file or directory
I'm compiling vtk master with mingw from linux with hdf5 installed (hdf5 has to be patched to build with mingw) and it is not detected correctly:
-- Looking for H5free_memory
-- Looking for H5free_memory - not found
-- Looking for H5Pset_all_coll_metadata_ops
-- Looking for H5Pset_all_coll_metadata_ops - not found
-- Looking for H5Pset_libver_bounds
-- Looking for H5Pset_libver_bounds - not found
-- Looking for HDF5_PARALLEL
-- Looking for HDF5_PARALLEL - not found
Looking at build-i686-w64-mingw32/CMakeFiles/CMakeError.log:
build-i686-w64-mingw32/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10: fatal error: vtk_hdf5.h: No such file or directory
Now, if I set CMAKE_REQUIRED_INCLUDES in ThirdParty/netcdf/vtknetcdf/CMakeLists.txt:
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_BINARY_DIR}/ThirdParty/hdf5/;${CMAKE_SOURCE_DIR}/ThirdParty/hdf5/)
set(HAVE_HDF5_H 1)
check_symbol_exists("H5free_memory" "vtk_hdf5.h" HDF5_HAS_H5FREE)
check_symbol_exists("H5Pset_all_coll_metadata_ops" "vtk_hdf5.h" H5PSET_ALL_COLL_METADATA_OPS)
check_symbol_exists("H5Pset_libver_bounds" "vtk_hdf5.h" HDF5_HAS_LIBVER_BOUNDS)
check_symbol_exists("HDF5_PARALLEL" "vtk_hdf5.h" HDF5_PARALLEL)
cmake finds my hdf5 libs:
-- Looking for H5free_memory
-- Looking for H5free_memory - found
-- Looking for H5Pset_all_coll_metadata_ops
-- Looking for H5Pset_all_coll_metadata_ops - not found
-- Looking for H5Pset_libver_bounds
-- Looking for H5Pset_libver_bounds - found
-- Looking for HDF5_PARALLEL
-- Looking for HDF5_PARALLEL - not found
cc @ben.boeckel
Bonus question: it seems VTK_USE_SYSTEM_XXX options are gone, how do I choose to use system libs rather than compiling the bundled ones ?