[QGIS-Developer] Error with hdf5.dll on Windows build.

Martin Dobias wonder.sk at gmail.com
Mon Oct 1 02:19:56 PDT 2018

Hi Nathan

It looks like the CMake module to find HDF library is picking hdf5.dll
instead of hdf5.lib import library for some reason. Maybe as a
workaround you can manually set the HDF5_C_LIBRARIES variable to the
correct .lib file. We are using the standard CMake module to find HDF,
so if this issue persists, we may need to replace that cmake module
with our own version for windows. Or maybe Jurgen has some trick how
to make it work on Windows :-)


On Sat, Sep 29, 2018 at 6:56 AM Nathan Woodrow <madmanwoo at gmail.com> wrote:
> Hi,
> Trying to build on Windows for master I'm getting the following:
> C:\OSGeo4W\bin\hdf5.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0
> It looks like cmake is trying to use that in the scripts and not the lib file but I can't see why it wants to do that.
> Any thoughts?
> - Nathan
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

More information about the QGIS-Developer mailing list