Using MEDFILE_USE_SHARED_LIBS=OFF, MEDFILE_USE_STATIC_LIBS=ON and HDF5_LIBRARIES=...\libhdf5.lib. ->
gives some "reference to unresolved extern Symbol":
LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt mit anderen Bibliotheken; /NOD
EFAULTLIB:Bibliothek verwenden.
libhdf5.lib(H5Zdeflate.c.obj) : error LNK2019: Verweis auf nicht aufgel÷stes externes Symbol "inflate" in Funktion "H5Z_filter_deflate".
libhdf5.lib(H5Zdeflate.c.obj) : error LNK2019: Verweis auf nicht aufgel÷stes externes Symbol "inflateEnd" in Funktion "H5Z_filter_deflate".
libhdf5.lib(H5Zdeflate.c.obj) : error LNK2019: Verweis auf nicht aufgel÷stes externes Symbol "compress2" in Funktion "H5Z_filter_deflate".
libhdf5.lib(H5Zdeflate.c.obj) : error LNK2019: Verweis auf nicht aufgel÷stes externes Symbol "inflateInit_" in Funktion "H5Z_filter_deflate".
tools\mdump\mdump.exe : fatal error LNK1120: 4 nicht aufgel÷ste Externe
Using MEDFILE_USE_SHARED_LIBS=ON, MEDFILE_USE_STATIC_LIBS=OFF -> always tries to link the hdf5.dll from the bin dir.
looo wrote:Using MEDFILE_USE_SHARED_LIBS=OFF, MEDFILE_USE_STATIC_LIBS=ON and HDF5_LIBRARIES=...\libhdf5.lib. ->
gives some "reference to unresolved extern Symbol":
This is the errors we got before.
What version of CMake does conda use. I just tried to repeat my previous build from scratch and I can't get thru cmake (3.5.1)
If I configure and generate from my successful build directory, I get some policy warnings but it succeeds. I have upgraded cmake in the meantime, I don't remember the previous version.
cmake is version 3.7, so I don't think this is a problem.
With your suggestion I get this undefined references aswell. (inflate, compress2,...) Searching for this results in messages about zlib compile problems. So I looked into hdf5 and there zlib is enabled. "-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON"
First try gave: "cannot find fc_wrap_cpp"-macro. It seems this is defined in cMake/UseLibPackXX.cmake . So we have to create a new UseLibPackXX.cmake file to build with conda? or can we use an old one?