[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #DRB-862049]: Build of netCDF-4 on x86_64 system?



>
> Thanks. Your answer prompted me to think of something else. I've
> noticed that even though I use --with-szlib, if there's already a
> libsz.a in a system directory like /usr/lib, then it will pick this
> one up. This sometimes generates undefined references or other
> unexpected results. I've had to hard-code the path to the sz library
> so this doesn't happen.
>
> Maybe the same thing is happen with the z library. I will check.
>
> --Mary
>

Howdy Mary!

Another user also reported problems building with the HDF5/szip combination.
But it works for me just fine.

Of course, one needs to set the appropriate flags so that the szip library can
be found. This worked for me:

FFLAGS=-L$HDF5DIR/lib FCFLAGS=-L$HDF5DIR/lib CFLAGS=-L$HDF5DIR/lib
CXXFLAGS=-L$HDF5DIR CPPFLAGS=-I$HDF5DIR/include LIBS=-lsz ./configure
--enable-netcdf-4 --with-hdf5=$HDF5DIR

(Where $HDF5DIR is a directory that contains both HDF5 and szip).

In fact, this is now part of my nightly testing.

Thanks,

Ed




Ticket Details
===================
Ticket ID: DRB-862049
Department: Support netCDF
Priority: Urgent
Status: Closed