<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">Christopher,</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt"><br>
</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">I believe that this problem has to do with how you build the HDF5 library. Are you building it yourself</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt"><br>
</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">I fight with that same problem on Linux a couple of months ago, after an HDF5 update.</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt"><br>
</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">The solution was to include Zlib into the HDF5 building configuration. </span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt"><br>
</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">I don't have access to those machines anymore but on my OSX machine I am building HDF5 with those options:</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt"><br>
</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">$ ./configure<span> </span><b>--with-zlib=/usr/local/opt/zlib</b></span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">$ make</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">$ make install</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt"><br>
</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">You can get Zlib source code from zlib.net and do the same or better yet, get the HDF5 Windows installer from HDFGroup.org. That works fine for me.</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt"><br>
</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">Regards,</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt"><br>
</span></font></div>
<div style=" margin: 0px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; color: rgb(33, 33, 33); caret-color: rgb(33, 33, 33)">
<font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style=" margin: 0px; font-size: 12pt">Ivan</span></font></div>
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of Christopher Puda <cp2732@gmail.com><br>
<b>Sent:</b> Wednesday, July 25, 2018 4:02 PM<br>
<b>To:</b> gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> [gdal-dev] Trouble Building GDAL with HDF5</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div dir="ltr">I am trying to build GDAL with HDF5 usability on a Windows 7 64-bit computer using Visual Studio Community Edition 2017. I have followed a YouTube video (<a href="https://www.youtube.com/watch?v=Yf8rYOfvZjY">https://www.youtube.com/watch?v=Yf8rYOfvZjY</a>)
for getting the vcxproj files, but get stuck when trying to build the main project. The command I use is .\generate_vcxproj.bat 15.0 64 gdal_vs2017. Currently, I am getting six errors and 11 warnings. I have attached the nmake.opt file I use. I do not have
a nmake.local file currently. The errors are as follows:<br>
<br>
LNK1120 3 unresolved externals
<div>LNK2019 unresolved external symbol SZ_BufftoBuffCompress referenced in function H5Z_filter_szip</div>
<div>LNK2019 unresolved external symbol SZ_BufftoBuffDecompress referenced in function H5Z_filter_szip</div>
<div>LNK2019 unresolved external symbol SZ_encoder_enabled referenced in function H5Z_init_package</div>
<div>U1077 -> "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\link.EXE"' : return code '0x460'</div>
<div>MSB0373 The command "nmake -f <a href="http://makefile.vc">makefile.vc</a> MSVC_VER=1910 WIN64=1 DEBUG=1 WITH_PDB=1" exited with code 2.
<div>
<div><br>
</div>
<div>This warning could also be a clue:</div>
<div>LNK4098 defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library<br>
<br>
More details for this issue can be found on the YouTube video link above under the Comments section. Any help would be appreciated!
<div>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>