On Sun, Nov 13, 2011 at 12:57 PM, Jeff Whitaker <jsw...@fastmail.fm> wrote:
>
> Gökhan:  netcdf4-python can read hdf5-eos files, and even hdf4-eos files
> if the netcdf C lib is built with hdf4 support.
>
> -Jeff
>

I can't build netcdf4 C libraries with HDF4 support.

[gsever@ccn hdf-4.2.6]$ ./configure --prefix=/usr/local
 --includedir=/usr/local/ --with-zlib=/usr/local --with-jpeg=/usr/local
--disable-fortran --with-szip=/usr/local/ CFLAGS=-fPIC

I can't build HDF4 without disabling the fortran support. Then trying to
build netcdf4 with HDF4:

[gsever@ccn netcdf-4.1.3]$ ./configure --prefix=/usr/local/netcdf4
--enable-netcdf-4 --with-hdf5=/usr/local/ --enable-shared --enable-hdf4
--with-hdf4=/usr/local/

Fails:

Making all in ncgen3
make[2]: Entering directory `/home/gsever/Downloads/netcdf-4.1.3/ncgen3'
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2   -o ncgen3 main.o
load.o escapes.o getfill.o init.o genlib.o ncgentab.o
../liblib/libnetcdf.la -lhdf5_hl -lhdf5 -lm -lz -lcurl
libtool: link: gcc -g -O2 -o .libs/ncgen3 main.o load.o escapes.o getfill.o
init.o genlib.o ncgentab.o  ../liblib/.libs/libnetcdf.so -lhdf5_hl -lhdf5
-lm -lz -lcurl -Wl,-rpath -Wl,/usr/local/netcdf4/lib
../liblib/.libs/libnetcdf.so: undefined reference to `SDstart'
../liblib/.libs/libnetcdf.so: undefined reference to `SDend'
../liblib/.libs/libnetcdf.so: undefined reference to `SDattrinfo'
../liblib/.libs/libnetcdf.so: undefined reference to `SDfileinfo'
../liblib/.libs/libnetcdf.so: undefined reference to `SDreadattr'
../liblib/.libs/libnetcdf.so: undefined reference to `SDselect'
../liblib/.libs/libnetcdf.so: undefined reference to `SDreaddata'
../liblib/.libs/libnetcdf.so: undefined reference to `SDdiminfo'
../liblib/.libs/libnetcdf.so: undefined reference to `SDgetfillvalue'
../liblib/.libs/libnetcdf.so: undefined reference to `SDgetinfo'
../liblib/.libs/libnetcdf.so: undefined reference to `SDgetdimid'
collect2: ld returned 1 exit status
make[2]: *** [ncgen3] Error 1
make[2]: Leaving directory `/home/gsever/Downloads/netcdf-4.1.3/ncgen3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gsever/Downloads/netcdf-4.1.3'
make: *** [all] Error 2

When I remove hdf4 part from config, it builds successfully. Any ideas?
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to