[ncl-install] szip
Mary Haley
haley at ucar.edu
Tue Nov 20 20:09:32 MST 2007
Mark,
Since you built HDF with szip, you will need to include this on your
compile line. You can do this by editing your config file in
$NCARG/config and adding the line:
#define HDFlib -lmfhdf -ldf -ljpeg -lz -lsz
Then, you need to remake your Makefiles where the HDF libraries are
referenced. The easiest way to do this is to just remake all of them
and restart the build at the same time:
cd $NCARG
make Makefiles includes depend all install >>& make-output &
I have never actually built NCAR Graphics/NCL against an HDF that had
szip support built in, so I'm not 100% positive that the above is all
you need.
If you want, you can do a quick test before you restart the whole
build:
cd $NCARG/ncarview/src/bin/ctrans
make me
make all install
If this builds "ctrans" without any errors, then you are probably set
to restart the full build.
--Mary
On Tue, 20 Nov 2007, Mark Branson wrote:
> Yes, we definitely built HDF-4 with szip, and there is a libsz.a in /
> usr/local/absoft/lib, but it seems that the makefile is not using a -lsz:
>
> gcc -DAbsoftProFortran -ansi -O -o ctrans main.o ../../../.././
> ncarview/src/lib/libctrans/libctrans.o -L../../../.././ncarview/src/
> lib/libcgm -lcgm -L../../../.././ncarview/src/lib/libncarg_ras -lncarg_ras
> -L../../../.././common/src/libncarg_c -lncarg_c -L/usr/local/ncarg/lib
> -L/usr/X11R6/lib -L/usr/local/absoft/lib -lXpm -lX11 -lXext -lmfhdf -ldf
> -ljpeg -lz -lm
> /usr/bin/ld: Undefined symbols:
> _SZ_encoder_enabled
> _SZ_BufftoBuffCompress
> _SZ_BufftoBuffDecompress
> collect2: ld returned 1 exit statusmake[5]: *** [ctrans] Error 1
>
> And this is occurring in a number of different places.
>
> Thanks!
> Mark
>
>> Those are definitely symbols in the szip (libsz) library, so something is
>> looking for them. If it's not netCDF-4, it
>> is likely HDF4, which can be configured/built with szip. Are you able to
>> check if your local installation of
>> HDF-4 was built with the szip package?
>>
>> ---- Rick Grubin NCAR/TDD/CISL/VETS
>> Visualization + Enabling Technologies
>> grubin at ucar.edu 303.497.1832
>>
>
> _______________________________________________
> ncl-install mailing list
> ncl-install at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
More information about the ncl-install
mailing list