I’m trying to build hdf5 with sz and zlib support, but I got very confused; I can’t figure out an easy way how to.
My main question probably is - can somebody point me to a tutorial or writeup where it is described how to easily build hdf5 with those two included on Windows? Preferrably from the CMake sources, since this is what I build on previously and have at least some familiarity with.
As a little context - for previous versions (1.10 and probably 1.12) hfd5 was built “out of the box” with sz and zlib support for me (when using the CMake sources). But shis seems to have stopped somehow. I can’t figure out how to configure the build such that it will build those libraries. There seem to be a variety of options of how to include them, with many involved settings in CMake, among them
- HDF5_ALLOW_EXTERNAL_SUPPORT
- HDF5_ENABLE_SZIP_SUPPORT
- HDF5_ENABLE_Z_LIB_SUPPORT
When I try to CMake-configure the build folder “manually”, those last two keep disabling themselves automatically, with no hint why, no matter what other settings I configure, except for the HDF5_ALLOW_EXTERNAL_SUPPORT
=NO case, where however I cannot figure out what tio set the SZIP_DIR nor ZLIB_DIR to - do these need to be separate builds of those libraries? Can hdf5 not automatically build these libraries within its build anymore (as I’m pretty sure it used to do for me at a previous point).
The CMake sources stilll do include the zlib sources (and libaec, which I think has something to do with sz, right?), but I can’t figure out why they are not built or used (or what I need to do to make them used).
My basic current workflow is downloading the CMake sources from Index of /ftp/HDF5/releases/hdf5-1.14/hdf5-1.14.3/src, adapting the HDF5options.cmake file (basically, disabling shared_libs build and disabling testing, examples, tools and utils since I really only need the static libraries).
Sorry if this is very basic stuff that is properly documented somewhere, I just really can’t find it / figure it out at the moment!