[Met_help] vx_met_util Library error

John Halley Gotway johnhg at rap.ucar.edu
Wed Jan 9 11:27:53 MST 2008


Luke,

It appears that I left out a NETCDF_INCS that should have been in the Makefile for the vx_met_util library.  I tested this out prior to releasing version 1.0 to try to catch all of the compilation
dependencies, but I must have missed one.  Sorry about that.

Please use the attached Makefile to replace the Makefile in the ..../METv1.0/lib/vx_met_util directory.  The only difference is adding $(NETCDF_INCS) to the "read_grib.o" line.

Then try to rebuild MET.  Please let me know if that does the trick or if you run into any more compilation problems.

I'll work on posting this fix to the MET website.

Thanks!
John

Luke Peffers wrote:
> Hello, I am trying to install METv1.0 and am having a problem with the
> following Library build.  I have been using METv0.9 since its release with
> no problems.  I have tried making METv1.0 using PGI and other compilers but
> always get the same error (netcdf.hh file cannot be opened).
> 
> Please help!
> 
> Luke Peffers
> FSU Meteorology
> 
> 
> *** Making vx_met_util Library ***
> 
> /usr/bin/g++ read_grib.cc -g -Wall -Wshadow -static  -c -I..
> -I/fuelberg/r0/lpeffers/MET_9/GSL/gsl-1.9-I/fuelberg/r0/lpeffers/MET_9/GSL/gsl-
> 1.9/cdf -I/fuelberg/r0/lpeffers/MET_9/GSL/gsl-1.9/gsl
> In file included from ../vx_met_util/vx_met_util.h:21,
>                  from read_grib.cc:20:
> ../vx_met_util/read_pcp_combine_netcdf.h:16:21: error: netcdf.hh: No such
> file or directory
> ../vx_data_grids/grid_base.h:194: warning: âclass Integrandâ has virtual
> functions but non-virtual destructor
> ../vx_data_grids/grid_base.h:206: warning: âclass GridInterfaceâ has virtual
> functions but non-virtual destructor
> ../vx_wrfdata/shape.h:34: warning: âclass Shapeâ has virtual functions but
> non-virtual destructor
> ../vx_wrfdata/shape.h:50: warning: âclass FreelyMoveableShapeâ has virtual
> functions but non-virtual destructor
> ../vx_met_util/read_pcp_combine_netcdf.h:25: warning:
> âread_pcp_combine_netcdfâ initialized and declared âexternâ
> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: variable or field
> âread_pcp_combine_netcdfâ declared void
> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: âNcFileâ was not
> declared in this scope
> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected
> primary-expression before â,â token
> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected
> primary-expression before â&â token
> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected
> primary-expression before â,â token
> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected
> primary-expression before â&â token
> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected
> primary-expression before â,â token
> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected
> primary-expression before âintâ
> ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected
> primary-expression before â&â token
> ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected
> primary-expression before â,â token
> ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected
> primary-expression before â&â token
> ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected
> primary-expression before â,â token
> ../vx_met_util/read_pcp_combine_netcdf.h:27: error: expected
> primary-expression before â&â token
> ../vx_met_util/read_pcp_combine_netcdf.h:27: error: expected
> primary-expression before â)â token
> ../vx_met_util/read_pcp_combine_netcdf.h:27: error: initializer expression
> list treated as compound expression
> ../vx_wrfdata/vx_wrfdata.h:41: warning: âwrfdata_magicâ defined but not used
> ../vx_wrfdata/vx_wrfdata.h:64: warning: âthresh_type_strâ defined but not
> used
> ../vx_wrfdata/vx_wrfdata.h:85: warning: âstep_direction_strâ defined but not
> used
> ../vx_met_util/constants.h:23: warning: âna_strâ defined but not used
> ../vx_met_util/constants.h:26: warning: âall_msg_typ_strâ defined but not
> used
> ../vx_met_util/constants.h:30: warning: âanyair_strâ defined but not used
> ../vx_met_util/constants.h:31: warning: âanyair_msg_typ_strâ defined but not
> used
> ../vx_met_util/constants.h:32: warning: âanysfc_strâ defined but not used
> ../vx_met_util/constants.h:33: warning: âanysfc_msg_typ_strâ defined but not
> used
> ../vx_met_util/constants.h:34: warning: âonlysf_strâ defined but not used
> ../vx_met_util/constants.h:35: warning: âonlysf_msg_typ_strâ defined but not
> used
> ../vx_met_util/constants.h:38: warning: âall_interp_mthd_strâ defined but
> not used
> ../vx_met_util/constants.h:49: warning: âmthd_strâ defined but not used
> ../vx_met_util/met_stats.h:20: warning: âhdr_fmt_strâ defined but not used
> ../vx_grib_classes/grib_strings.h:20: warning: âmissing_strâ defined but not
> used
> ../vx_grib_classes/grib_strings.h:62: warning: âgrib_code_listâ defined but
> not used
> ../vx_grib_classes/grib_strings.h:94: warning: âgrib_code_list_strâ defined
> but not used
> ../vx_grib_classes/grib_strings.h:391: warning: âgrib_level_list_strâ
> defined but not used
> make[3]: *** [read_grib.o] Error 1
> make[2]: *** [vx_met_util_all] Error 2
> make[1]: *** [libs] Error 2
> make: *** [all] Error 2
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Met_help mailing list
> Met_help at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/met_help
-------------- next part --------------
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
# ** Copyright UCAR (c) 1992 - 2007
# ** University Corporation for Atmospheric Research (UCAR)
# ** National Center for Atmospheric Research (NCAR)
# ** Research Applications Lab (RAL)
# ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*

###############################################################################
#
# Makefile for the vx_met_util library
#
###############################################################################

TARGETS  = libvx_met_util.a

OBJECTS  = apply_mask.o \
	compute_ci.o \
	met_stats.o \
	read_grib.o \
	read_pcp_combine_netcdf.o \
	rescale_lon.o \
	two_to_one.o

OPT_FLAGS= 

FAKES    = vx_met_util_all vx_met_util_lib clean

LIB_DIR  = ..


vx_met_util_all:
	@ echo
	@ echo "*** Making vx_met_util Library ***"
	@ echo
	@ make vx_met_util_lib  --no-print-directory
	cp $(TARGETS) ../.

vx_met_util_lib: libvx_met_util.a
	@ echo

libvx_met_util.a: $(OBJECTS)
	ar -rs libvx_met_util.a $(OBJECTS)
	ranlib libvx_met_util.a

apply_mask.o: apply_mask.cc
	$(COMPILER) apply_mask.cc $(FLAGS) $(OPT_FLAGS) -c -DMET_BASE=\"$(MET_BASE)\" -I$(LIB_DIR)

compute_ci.o: compute_ci.cc
	$(COMPILER) compute_ci.cc $(FLAGS) $(OPT_FLAGS) -c -I$(LIB_DIR) $(GSL_INCS)

met_stats.o: met_stats.cc
	$(COMPILER) met_stats.cc $(FLAGS) $(OPT_FLAGS) -c -I$(LIB_DIR) $(GSL_INCS)

read_grib.o: read_grib.cc
	$(COMPILER) read_grib.cc $(FLAGS) $(OPT_FLAGS) -c -I$(LIB_DIR) $(GSL_INCS) $(NETCDF_INCS)

read_pcp_combine_netcdf.o: read_pcp_combine_netcdf.cc
	$(COMPILER) read_pcp_combine_netcdf.cc $(FLAGS) $(OPT_FLAGS) -c -I$(LIB_DIR) $(NETCDF_INCS)

rescale_lon.o: rescale_lon.cc
	$(COMPILER) rescale_lon.cc $(FLAGS) $(OPT_FLAGS) -c -I$(LIB_DIR)

two_to_one.o: two_to_one.cc
	$(COMPILER) two_to_one.cc $(FLAGS) $(OPT_FLAGS) -c -I$(LIB_DIR)

clean:
	rm -f *.a *.o temp junk core a.out $(TARGETS) ../$(TARGETS)

.PHONY: $(FAKES)




More information about the Met_help mailing list