hdf4 libraries not found that&#39;s what the log says :)<br> do a <br>locate libhdf4 <br>to see where the library is<br><br><br><div class="gmail_quote">On Tue, Apr 19, 2011 at 10:24 AM, Knut-Frode Dagestad <span dir="ltr">&lt;<a href="mailto:knutfrodesoppel@hotmail.com">knutfrodesoppel@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I am trying to compile GDAL from source with support for HDF4 with:<br>
<br>
./configure --with-hdf4<br>
<br>
but get complaints about missing libraries, see extract from config.log:<br>
<br>
ld: library not found for -lmfhdfalt<br>
...<br>
ld: library not found for -lmfhdf<br>
...<br>
ld: library not found for -lhdf4<br>
...<br>
ld: library not found for -lmfhdf<br>
configure:19940: checking for SDreaddata in -lmfhdf<br>
configure:19965: gcc -o conftest -g -O2   conftest.c -lmfhdf -ldf -lsz -ljpeg -lz -lz -lpthread -ldl  &gt;&amp;5<br>
ld: library not found for -lmfhdf<br>
configure:20009: error: HDF4 support requested with arg &quot;yes&quot;, but neither hdf4 nor mfhdf lib found<br>
<br>
<br>
Similar errors are also reported by others, e.g. this one using mapserver: <a href="http://osgeo-org.1803224.n2.nabble.com/cannot-find-lmfhdf-td5286909.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/cannot-find-lmfhdf-td5286909.html</a><br>

<br>
I have tried with various versions of HDF4, both binaries and compiled from source. The link above (and also <a href="http://trac.osgeo.org/gdal/wiki/BuildingOnUnix" target="_blank">http://trac.osgeo.org/gdal/wiki/BuildingOnUnix</a>) suggests to try a &quot;hdf-dev&quot; version. But where can I find such &quot;dev-versions&quot;, in my case for Mac OS X 10.6.7?<br>

<br>
Would it be possible to update GDAL to work with standard HDF4 libraries?<br>
<br>
<br>
Best regards from Knut-Frode<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>