I have been using h5py for a while and I just tried installing the hdf5 library for making programs in C. (hdf5-1.12.0). I need some help setting it up properly. I am using Linux (via Windows WSL 2).
My understanding is that I can compile programs using the h5cc program. But when I try:
h5cc -o h5ex.out h5ex_d_chunk.c
h5cc cannot find any of the headers.
But as far as I can tell, hdf5 was installed to \usr\local\hdf5
Also, I tied fixing the include file problem but h5cc seems to be looking for the following directory for library files:
gcc: error: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.a: No such file or directory
gcc: error: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a: No such file or directory
Do you install the 1.12 binary yourself?
There will be a 1.12.1 release soon (release candidate this week).
h5cc internal details depends on the build system used to build the release.
I installed the programs using the make script as described in the included INSTALL text file.
I did some more digging, and it seems like I had several h5cc programs installed, one by Python, one by myself, and one I don’t know where it came from. It seems this final one is configured to look for directories that don’t exist.
I was able to fix it by directly calling a different h5cc program.