[ncl-install] [ncl-talk] optional GDAL is needed for compiling NCL

David Brown dbrown at ucar.edu
Wed Dec 26 13:23:58 MST 2012


Hi John,

This is a build issue that has been fixed for the next release. In the meantime I am attaching the corrected yMakefile for the <src_tree_root>/ni/src/ncl directory.
Please copy this file to the above-named directory. Then from within this directory type at the command line:

rm -f ncl
make me
make includes depend
make

Assuming this works, you can then type

make install

to put it in your installed location.
 -dave

-------------- next part --------------
A non-text attachment was scrubbed...
Name: yMakefile
Type: application/octet-stream
Size: 20333 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20121226/e699aede/attachment.obj 
-------------- next part --------------


In the future please post build and install questions to the ncl-install mailing list.


On Dec 22, 2012, at 6:26 AM, John Donners wrote:

> Dear developers,
> 
> I've been compiling NCL on an IBM Power6 system with linux and
> I seem to have found an inconsistency: I've disabled the GDAL support
> in the configure script, so I expected not to need this library for
> compiling
> NCL. However, I get the following error:
> 
> make[3]: Entering directory `/gpfs/h05/ncl610/ncl_ncarg-6.1.0/ni/src/ncl'
> xlc_r -q64 -qfullpath -qmaxmem=-1 -g -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -O  -I../../.././include -I/usr/include/X11
> -I/sara/sw/netcdf/4.1.3/include -I/sara/sw/ncl/5.1.1-sles11/HDF4/include
> -I/usr/include/freetype2 -DLinux -DMAJOR=2
> -DUSE_NETCDF4     -DUSE_NETCDF4_FEATURES
>  -DBuildHDF5                          -DSYSV -D_POSIX_SOURCE
> -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -DNGLONG2XINT -Dppc64
> -DNeedFuncProto -c -o NclNewOGR.o NclNewOGR.c
> "NclNewOGR.c", line 65.10: 1506-296 (S) #include file <ogr_api.h> not found.
> "NclNewOGR.c", line 66.10: 1506-296 (S) #include file <ogr_srs_api.h>
> not found.
> ...
> 
> and ogr_api.h seems part of GDAL. Maybe there are some precompiler directives missing
> that would skip this code if GDAL support is not needed?
> 
> With regards,
> John
> 
> --
> John Donners
> Consultant
> OSD
> SARA Computing Center
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



More information about the ncl-install mailing list