I’m having some rather extreme difficulty getting HDF5 1.8.7 to build from source in Visual Studio 10. I need to add the thread-safety feature to the library, which according to the FAQ was added in v1.8.6, but not on by default.
I’ve manually added a “#define H5_HAVE_THREADSAFE 1” line in the h5pubconf.h file in both the /windows/src and /src folders (as I couldn’t figure out where I needed to change it in the VS solution itself)
Does anybody have any have any recommendations? Thanks!
HDF5 is using CMake to generate a correct build system on various platforms.
It has a Visual Studio 10 generator.
You don’t have to edit any source file yourself.
You should install CMake, choose the Visual Studio 10 generator, and turn on the threadsafe build option. It will generate a Visual Studio 10 project ready to be built.