Re: optional GDAL is needed for compiling NCL

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 26 2012 - 13:23:58 MST

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

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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Wed Dec 26 13:24:13 2012

This archive was generated by hypermail 2.1.8 : Fri Jan 04 2013 - 15:32:29 MST