Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[netCDF #ODF-501785]: netcdf



> 
> How do I turn off ALL the test done by configure with netcdf. I just
> want it to make Makefiles which I will modify. I need to do a cross
> compile for and cray xt3.
> 
> thanks
> 
> --
> Dennis C. Dinge, Ph.D
> Cray Support
> 880 C-118H
> dcdinge@xxxxxxxxxx
> (505) 844-0386
> 

Dennis,

One does not generally do this for cross-compiles.

There is a way to turn off all tests which run code (as opposed to just 
compiling it). Use --disable-fortran-type-check, and manually edit the config.h 
to set the values mentioned below (along with their default settings)

      AC_DEFINE(NCBYTE_T, byte)
      AC_DEFINE(NCSHORT_T, integer*2)
      AC_DEFINE(NF_INT1_T, byte)
      AC_DEFINE(NF_INT2_T, integer*2)
      AC_DEFINE(NF_INT1_IS_C_SIGNED_CHAR, 1, [default])
      AC_DEFINE(NF_INT2_IS_C_SHORT, 1, [default])
      AC_DEFINE(NF_INT_IS_C_INT, 1, [default])
      AC_DEFINE(NF_REAL_IS_C_FLOAT, 1, [default])
      AC_DEFINE(NF_DOUBLEPRECISION_IS_C_DOUBLE, 1, [default])

So use --disable-fortran-type-check, and run a normal cross-compile configure 
run, and you will get Makefiles that will work.

The netCDF build is getting very complicated. I would not try to create 
Makefiles "by hand" because there is a serious chance to mess things up...

Thanks,

Ed

Ticket Details
===================
Ticket ID: ODF-501785
Department: Support netCDF
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690