Re: [netcdfgroup] [Hdf-forum] Build RC2 and RC3 with HDF4

jpeg and zlib are required to build HDF4. 

Elena
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal  The HDF Group  http://hdfgroup.org   
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




On Sep 25, 2013, at 6:16 PM, Pedro Vicente <pvicente@xxxxxxx>
 wrote:

> Hi netCDF team
>  
> actually this is more a question for the HDF team
>  
> I am trying to build netCDF 4.3.1 RC2/RC3 with HDF4, following the 
> instructions here
>  
>  
> http://www.unidata.ucar.edu/software/netcdf/docs/build_hdf4.html
>  
>  
> "For this to work, you must build the HDF4 library with the configure option "
>   --disable-netcdf
>  
> for RC2
> I build HDF4 with
> 
> ./configure --prefix=/home/pvicente/install/hdf-4.2.9 --disable-netcdf 
>  
> and the ouput had this last line
>  
>  
> Support for netCDF API 2.3.2: no
>  
> Build netCDF
>  
> defined
>  
> H4DIR=/home/pvicente/install/hdf-4.2.9
> CPPFLAGS="-I${H4DIR}/include"
> LDFLAGS="-L${H4DIR}/lib"
> ./configure --prefix=/home/pvicente/install/netcdf-c-4.3.1-rc2  --enable-hdf4
>  
> output
>  
> checking for mfhdf.h... yes
> checking for Hclose in -ldf... no
> checking for SDcreate in -lmfhdf... no
>  
> checking value of LIBS... -lhdf5_hl -lhdf5 -lm -lz -lcurl
> 
> and this linking error
>  
> ../liblib/.libs/libnetcdf.so: undefined reference to `SDstart'
>  
> for RC3
>  
> ./configure --prefix=/home/pvicente/install/netcdf-c-4.3.1-rc3  --enable-hdf4
>  
> checking mfhdf.h usability... yes
> checking mfhdf.h presence... yes
> checking for mfhdf.h... yes
> checking for Hclose in -ldf... no
> configure: error: Can't find or link to the hdf4 df library. See config.log 
> for errors.
> config.log
>  
> configure:16643: gcc -o conftest -g -O4 -Wall -Wunused -W -Wshadow 
> -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-prototypes 
> -fno-common -I/home/pvice$
> /home/pvicente/install/hdf-4.2.9/lib/libdf.a(dfjpeg.o): In function 
> `DFCIjpeg':
> dfjpeg.c:(.text+0x306): undefined reference to `jpeg_std_error'
>  
> hhmm, HDF4 is missing jpeg
>  
> it's been a while since I built HDF4 , how can I disable jpeg from the HDF4 
> configure ?
>  
> --help says
>  
> --with-jpeg=DIR         Use jpeg library [default=yes]
>  
> maybe  configure of netCDF should allow for the non-presence of jpeg ?
>  
> thanks
> 
>  
> Pedro
>  
>  
> ------------
> pvicente@xxxxxxx
> Department of Earth System Science
> 3200 Croul Hall
> University of California, Irvine
> Irvine, CA 92697-3100
>  
> 
>  
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@xxxxxxxxxxxxxxxxxx
> http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: