I am trying to compile MDAL against the current conda version of GDAL - 3.1.3 - and the conda versions of the deps.
It is mostly working - pace the testing issues I have raised. However I get a fatal error (shown below) when compiling against HDF5 - which in this case is v1.10.6.
This appears to be a known issue - for instance here
https://github.com/conda-forge/gdal-feedstock/issues/25 and other mentions. There seems to be a need for a compiler definition or flag and I have tried playing with this - but nothing works.
Does anyone have any idea of what I need to do? Or where to put the compiler definition?
mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_C_S1_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_hec2d.obj : error LNK2001: unresolved external symbol H5T_C_S1_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_NATIVE_INT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_flo2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_INT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_hec2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_INT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_NATIVE_FLOAT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_flo2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_FLOAT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_hec2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_FLOAT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_NATIVE_DOUBLE_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_flo2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_DOUBLE_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_NATIVE_UINT8_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
C:\Users\runes\Documents\GitHub\MDAL\build\mdal\Debug\mdal.dll : fatal error LNK1120: 5 unresolved externals [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]
I am trying to compile MDAL against the current conda version of GDAL - 3.1.3 - and the conda versions of the deps.
It is mostly working - pace the testing issues I have raised. However I get a fatal error (shown below) when compiling against HDF5 - which in this case is v1.10.6.
This appears to be a known issue - for instance here https://github.com/conda-forge/gdal-feedstock/issues/25 and other mentions. There seems to be a need for a compiler definition or flag and I have tried playing with this - but nothing works.
Does anyone have any idea of what I need to do? Or where to put the compiler definition?
mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_C_S1_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_hec2d.obj : error LNK2001: unresolved external symbol H5T_C_S1_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_NATIVE_INT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_flo2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_INT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_hec2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_INT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_NATIVE_FLOAT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_flo2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_FLOAT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_hec2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_FLOAT_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_NATIVE_DOUBLE_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_flo2d.obj : error LNK2001: unresolved external symbol H5T_NATIVE_DOUBLE_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] mdal_hdf5.obj : error LNK2001: unresolved external symbol H5T_NATIVE_UINT8_g [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj] C:\Users\runes\Documents\GitHub\MDAL\build\mdal\Debug\mdal.dll : fatal error LNK1120: 5 unresolved externals [C:\Users\runes\Documents\GitHub\MDAL\build\mdal\mdal.vcxproj]