[ncl-install] Problem compiling ncl 6.3.0 without HDFEOS

Mary Haley haley at ucar.edu
Mon Mar 30 13:05:11 MDT 2015


Thanks Orion, I'll check with our developers to make sure they get this fix
in.

--Mary


On Thu, Mar 19, 2015 at 2:41 PM, Orion Poplawski <orion at cora.nwra.com>
wrote:

> Mary:
>
> Here's my full Site.local:
>
> #define YmakeRoot $(DESTDIR)/usr
> #define ManRoot $(DESTDIR)/usr/share/man
> #define LibRoot $(DESTDIR)/usr/lib64/ncarg
> #define SharePath $(DESTDIR)/usr/share
>
> #define BuildWithF90 TRUE
> #define IncSearch -I/usr/include/hdf -I/usr/include/netcdf
> -I/usr/include/udunits2 -I/usr/include/freetype2 -I/usr/include/gdal
> #define LibSearch -L/usr/lib64/hdf
>
> #define BuildNetCDF4 1
> #define NetCDF4lib -lnetcdf
> #define BuildCAIRO 1
> #define CAIROlib -lcairo -lfreetype
> #define BuildGDAL 1
> #define GDALlib -lgdal -lproj
> #define BuildHDFEOS 0
> #define BuildHDFEOS5 0
> #define BuildTRIANGLE 0
> #define HDFlib -lmfhdf -ldf -ljpeg -lz
> #define HDF5lib -lhdf5_hl -lhdf5
> #define BuildUdunits 1
> #define UdUnitslib -ludunits2
>
> I run:
>
> ./config/ymkmf
>
> to update the Makefiles.
>
> I think the problem is in ni/src/lib/nio/yMakefile, where NclNewHDFEOS5 is
> listed in STATIC_SRCS/STATIC_OBJS instead of being conditionally added to
> HDFEOF5_SRCS/OBJS or similar.  Removing it from the STATIC_SRCS/OBJS
> allows my
> build to complete.
>
> - Orion
>
> On 03/19/2015 02:15 PM, Mary Haley wrote:
> > Hi Orion,
> >
> > I did a test build a few days ago where I turned off *all* the optional
> > features and it worked fine for me.
> >
> > I just now tried it by just turning off these two features, and it also
> worked
> > fine for me.
> >
> > I have only four lines in my Site.local file:
> >
> > #define BuildHDFEOS 0
> > #define BuildHDFEOS5 0
> > #define LibSearch  ....
> > #define IncSearch  ....
> >
> > You have to make sure to update your Makefiles if you change the
> Site.local file;
> >
> > cd $NCARG
> > make Makefiles
> >
> > or, to try it locally in a directory:
> >
> > cd $NCARG/ni/src/ncl
> > make me
> > make
> >
> > --Mary
> >
> >
> > On Thu, Mar 19, 2015 at 12:45 PM, Orion Poplawski <orion at cora.nwra.com
> > <mailto:orion at cora.nwra.com>> wrote:
> >
> >     I'm compiling without HDFEOS support:
> >
> >     config/Site.local:#define BuildHDFEOS 0
> >     config/Site.local:#define BuildHDFEOS5 0
> >
> >     but it still insists on trying (and failing) to compile NclHDFEOS5.c:
> >
> >     NclNewHDFEOS5.c:34:27: fatal error: HE5_HdfEosDef.h: No such file or
> directory
> >
> >     which then fails to build libnio.
> >
> >
> >     --
> >     Orion Poplawski
> >     Technical Manager                     303-415-9701 x222
> >     <tel:303-415-9701%20x222>
> >     NWRA, Boulder/CoRA Office             FAX: 303-415-9702 <tel:
> 303-415-9702>
> >     3380 Mitchell Lane                       orion at nwra.com
> >     <mailto:orion at nwra.com>
> >     Boulder, CO 80301                   http://www.nwra.com
> >     _______________________________________________
> >     ncl-install mailing list
> >     List instructions, subscriber options, unsubscribe:
> >     http://mailman.ucar.edu/mailman/listinfo/ncl-install
> >
> >
>
>
> --
> Orion Poplawski
> Technical Manager                     303-415-9701 x222
> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
> 3380 Mitchell Lane                       orion at nwra.com
> Boulder, CO 80301                   http://www.nwra.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20150330/8ba0f5c1/attachment.html 


More information about the ncl-install mailing list