Ok, to follow up I got it figured out -- I needed to configure --enable-shared for HDF4:
./configure --disable-fortran --disable-netcdf --enable-shared It turns out I have another piece of software that required the HDF4 fortran libraries (which can't exist along with a shared library install), so the two conflict with one another. I'll install two versions moving forward, unless someone has a better solution! Reference: http://www.hdfgroup.org/HDF-FAQ.html#11share --j On Tue, Oct 14, 2014 at 1:12 PM, Jonathan Greenberg <[email protected]> wrote: > Gdallers: > > I'm having some issues with a source-built GDAL's support of HDF4 on a > Linux box. I've repeated this with both GDAL 1.10.1 and 1.11.1. The > HDF is a landsat HDF: > > @server> gdalinfo "/pathro/lndsr.LT51950531990333ESA00.hdf" > ERROR 4: Failed to open HDF4 file > "/pathto/lndsr.LT51950531990333ESA00.hdf" for SDS reading. > > gdalinfo failed - unable to open '/pathto/lndsr.LT51950531990333ESA00.hdf'. > > What is weird is that the install of both HDF4 and GDAL appeared to > work correctly. Certainly gdalinfo --formats lists HDF4 as one of the > working formats. The configure script I used for HDF4 was: > > ./configure --prefix=/usr/apps/oa --with-pic > --with-jpeg=/usr/apps/oa/lib --with-zlib=/usr/apps/oa/lib > --disable-fortran --disable-netcdf > > And for GDAL: > ./configure --prefix=/usr/apps/oa/ --with-python --without-sqlite3 > > Any ideas? > > --j > > -- > Jonathan A. Greenberg, PhD > Assistant Professor > Global Environmental Analysis and Remote Sensing (GEARS) Laboratory > Department of Geography and Geographic Information Science > University of Illinois at Urbana-Champaign > 259 Computing Applications Building, MC-150 > 605 East Springfield Avenue > Champaign, IL 61820-6371 > Phone: 217-300-1924 > http://www.geog.illinois.edu/~jgrn/ > AIM: jgrn307, MSN: [email protected], Gchat: jgrn307, Skype: jgrn3007 -- Jonathan A. Greenberg, PhD Assistant Professor Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Department of Geography and Geographic Information Science University of Illinois at Urbana-Champaign 259 Computing Applications Building, MC-150 605 East Springfield Avenue Champaign, IL 61820-6371 Phone: 217-300-1924 http://www.geog.illinois.edu/~jgrn/ AIM: jgrn307, MSN: [email protected], Gchat: jgrn307, Skype: jgrn3007 _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
