[gdal-dev] Building with HDF4 on Mc OSX
jluis at ualg.pt
jluis at ualg.pt
Sun Jun 1 12:46:31 EDT 2008
Hi,
With the kind help of William I was able to trace the problem.
Apparently the problem was due the fact that I hadn't configure HDF4
with libsz.
(well, I didn't even had libsz in the system).
But building HDF4 with libsz still failed in the GDAL config
configure:22026: gcc -o conftest -g -O2 conftest.c -lmfhdf -ldf
-ljpeg -lnetcdf -lz -ldl >&5
Undefined symbols:
"_SZ_BufftoBuffCompress", referenced from:
_HCIcszip_term in libdf.a(cszip.o)
"_SZ_encoder_enabled", referenced from:
_HCget_config_info in libdf.a(hcomp.o)
_HCIcszip_staccess in libdf.a(cszip.o)
_HCPcszip_write in libdf.a(cszip.o)
_HCPcszip_write in libdf.a(cszip.o)
"_SZ_BufftoBuffDecompress", referenced from:
_HCIcszip_decode in libdf.a(cszip.o)
Notice that there is no -lsz on the compiling instruction.
So I hacked the configure script and added -lsz and finaly GDAL says
it has HDF4 support.
But this is highly unorthodox
Joaquim Luis
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the gdal-dev
mailing list