Build instructions for windows 7 with shared libs

Is it possible for someone to add the instruction to add
H5_BUILT_AS_DYNAMIC_LIB to the preprocessor defs on the cmake build page
here https://support.hdfgroup.org/HDF5/release/cmakebuild.html.

I spent about 3 hours trying to track down this issue and think a small
note would be helpful to others.

Thank you,
Isaac

I would be curious as to what you are needing the variable for? I was the original author of that bit of code back when HDF5 did not ship with a reasonable way of figuring out if the HDF5 installation had been built as shared or static. With modern cmake versions and recent HDF5 versions (1.8.15 and forward) the HDF5 installation has the proper HDF5Config.cmake files that "find_packaage()" should be using. This assumes you append your CMAKE_MODULE_PATH with the path to that config file.

···

--
Michael A. Jackson
BlueQuartz Software, LLC
[e]: mike.jackson@bluequartz.net

Isaac Gerg wrote:

Is it possible for someone to add the instruction to add
H5_BUILT_AS_DYNAMIC_LIB to the preprocessor defs on the cmake build page
here https://support.hdfgroup.org/HDF5/release/cmakebuild.html.

I spent about 3 hours trying to track down this issue and think a small
note would be helpful to others.

Thank you,
Isaac

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

I am trying to build the shared libs with threadsafety in visual studio
2013. If i dont include H5_BUILT_AS_DYNAMIC_LIB, my probject wont link. I
get a bunch of H5T_some_native_data_type_g linking issues.

This link on the hdf website has the symbol.
https://support.hdfgroup.org/HDF5/release/obtain5.html

···

On Wed, Oct 5, 2016 at 10:05 AM, Michael Jackson < mike.jackson@bluequartz.net> wrote:

I would be curious as to what you are needing the variable for? I was the
original author of that bit of code back when HDF5 did not ship with a
reasonable way of figuring out if the HDF5 installation had been built as
shared or static. With modern cmake versions and recent HDF5 versions
(1.8.15 and forward) the HDF5 installation has the proper HDF5Config.cmake
files that "find_packaage()" should be using. This assumes you append your
CMAKE_MODULE_PATH with the path to that config file.

--
Michael A. Jackson
BlueQuartz Software, LLC
[e]: mike.jackson@bluequartz.net

Isaac Gerg wrote:

Is it possible for someone to add the instruction to add
H5_BUILT_AS_DYNAMIC_LIB to the preprocessor defs on the cmake build page
here https://support.hdfgroup.org/HDF5/release/cmakebuild.html.

I spent about 3 hours trying to track down this issue and think a small
note would be helpful to others.

Thank you,
Isaac

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5