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

[netCDF #WHC-106218]: [Windows] problem with netcdf.a building NCO



> Hello,
> 
> I'm working with Windows and I'm trying to compile the NCO tool using
> Cygwin.
> 
> During the compilation, the following error message occurs:
> 
> ########################################
> #  Testing for DAP (aka DODS) support  #
> ########################################
> #################################
> #  Testing for netCDF4 support  #
> #################################
> DEBUG: enable_netcdf4 = no and enable_dap = yes
> ncdap-config: Command not found.
> checking for nc_open in -lnc-dap... no
> configure: WARNING: DAP support disabled (missing libraries)
> ################################################
> # Testing whether libnetcdf is Version 3 or 4  #
> ################################################
> DEBUG: enable_netcdf4: no and enable_dap: no
> DEBUG: LIBS =
> configure: WARNING: Did not request OPeNDAP; checking for version of
> libnetcdf to use
> #############################################
> # Testing for HDF5 & HDF5_HL & netCDF4 libs #
> #############################################
> DEBUG: LIBS =
> checking netcdf.h usability... no
> checking netcdf.h presence... no
> checking for netcdf.h... no
> configure: Checking default compiler flags
> checking for nc_open in -lnetcdf... no
> configure: Bad news: Simple program does not compile and link to
> libnetcdf.awith default compiler flags. Will try with 64-bit ABI
> flags...
> checking for nc_close in -lnetcdf... no
> ERROR: Unable to compile and link executable with "libnetcdf.a" with
> LDFLAGS=
> 1. If netCDF is not installed, then download and install it:
> http://www.unidata.ucar.edu/packages/netcdf
> 2. If netCDF is installed correctly, set NETCDF_LIB to directory with
> libnetcdf.a
> 3. If configure fails here with NETCDF_LIB set correctly, try changing CC
> and/or CFLAGS until compilation and linking to libnetcdf.a works
> Currently CC="gcc" and CFLAGS="-g -O2" do not work with libnetcdf.a
> Set environment variables CC and CFLAGS to working values and then re-run
> ./configure
> configure: error: Mandatory netCDF link test failed
> make: *** Pas de cibles sp'ecifi'ees et aucun makefile n'a 'et'e trouv'e.
> Arr^et.
> bash: make-strip: command not found
> 
> According to the message, I understand that there's probably something wrong
> with the installation of my Netcdf library... Nevertheless, I think that I
> followed the good instructions to build the library on windows using the
> pre-built binaries. Nowhere the netcdf.a is present in the folder, so I I
> don't see how I could linking the netcdf.a if it doesn't exist?!
> 
> Thank you for your help,
> 
> Regards
> 
> --
> Clement Tisseuil - PhD
> 
> Laboratoire  "Evolution et Diversit� Biologique" (EDB)
> UMR 5174 - Universit� Paul Sabatier / CNRS
> 118 route de Narbonne, B�t 4R3, Porte 112
> 31062 Toulouse Cedex 9 - France
> Phone : +33 5 61 55 67 35
> Mobile : +336 82 50  21 41
> Fax: +33 5 61 55 67 28
> 

Howdy Clement!

What the NCO configure is telling you is that netCDF-4 is not
installed on your machine.

I have not tried to build netCDF-3 under cygwin, but netCDF-3 does
build under cygwin, and if HDF5, I'm pretty sure netCDF-4 can.

Try to build netCDF-4 under cygwin following these instructions:
http://www.unidata.ucar.edu/software/netcdf/netcdf-4/newdocs/netcdf-install/Quick-Instructions.html#Quick-Instructions

Let me know if this works for you...

Thanks,

Ed

Ticket Details
===================
Ticket ID: WHC-106218
Department: Support netCDF
Priority: Normal
Status: Closed