<div dir="ltr">I have the build environment set up from scratch on a new computer, and I'm getting the same error
building mdalprovider in the master branch (C:\OSGeo4W64\bin\<span class="gmail-il">hdf5</span>.<span class="gmail-il">dll</span> : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2F0). Is there maybe a problem with hdf5.dll from osgeo4w? I've tried downloading the source from <a href="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.11/src/">https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.11/src/</a> and building it, but even then I run into "CPack Error: Error when generating package: HDF5".<div><br></div><div>Has nobody else had any issues with hdf5.dll? Are the instructions for 4.1 at <a href="https://github.com/qgis/QGIS/blob/master/INSTALL">https://github.com/qgis/QGIS/blob/master/INSTALL</a> still accurate?</div><div><br></div><div>Kind regards,</div><div>Rudi</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 26 Jul 2018 at 10:34, Rudi von Staden <<a href="mailto:rudivs@gmail.com">rudivs@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<br><br>I'm trying to build qgis from source, but I'm getting a linking error in `mdalprovider`:<br><br><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">C:\OSGeo4W64\bin\hdf5.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2F0</blockquote><div><br></div><div>I have successfully built qgis before, so any idea why this would be causing a problem now?</div><div><br></div><div>As background, I'm trying to build a particular pull request to help with testing. The steps I took were:</div><div><br></div><div>1. git fetch origin pull/7396/head:rastercalc</div><div>2. git checkout rastercalc</div><div>3. delete directory build-qgis-test-x86_64 (in QGIS/ms-windows/osgeo4w)</div><div>4. run configonly.bat</div><div>5. run OSGeo4W-dev.bat (which executes `call C:\Users\rudi_000\Source\Repos\QGIS\ms-windows\osgeo4w\msvc-env.bat x86_64`)</div><div>6. run devenv from command prompt</div><div>7. open qgis.sln</div><div>8. build</div><div><br></div><div>I have tried cleaning and rebuilding mdalprovider, but get the same result. It could be that just repeating the process described above would resolve the issue (from point 3.), but since it takes several hours to build (I'm building on a pretty old laptop) I thought I'd ask in case I'm doing something wrong in the process.</div><div><br></div><div>Thanks,</div><div>Rudi</div><div><br></div></div>
</blockquote></div>