Open mmhsound opened 4 years ago
The compilation of the MetReader fails on building the following tools: MetTraj_F, MetTraj_B and MetCheck
To install the remaining programs, replace lines 168--183 of the makefile by:
tools: MetSonde makegfsncml $(GRIBTOOL)
# MetTraj_F, MetTraj_B MetCheck
MetSonde: tools/MetSonde.f90 makefile libMetReader.a
$(FC) $(FFLAGS) $(EXFLAGS) -L./ -lMetReader $(LIBS) $(nclib) $(grblib) -c tools/MetSonde.f90
$(FC) $(FFLAGS) $(EXFLAGS) MetSonde.o -L./ -lMetReader $(LIBS) $(nclib) $(grblib) $(USGSLIB) -o tools/MetSonde
#MetTraj_F: tools/MetTraj.F90 makefile libMetReader.a
# $(FC) -x f95-cpp-input -DFORWARD $(FFLAGS) $(EXFLAGS) tools/MetTraj.F90 -o tools/MetTraj_F $(LIBS) $(nclib) $(grblib) -L./ -lMetReader $(USGSLIB)
#MetTraj_B: tools/MetTraj.F90 makefile libMetReader.a
# $(FC) -x f95-cpp-input -DBACKWARD $(FFLAGS) $(EXFLAGS) tools/MetTraj.F90 -o tools/MetTraj_B $(LIBS) $(nclib) $(grblib) -L./ -lMetReader $(USGSLIB)
#MetCheck: tools/MetCheck.f90 makefile libMetReader.a
# $(FC) $(FFLAGS) $(EXFLAGS) $(LIBS) $(nclib) $(grblib) -c tools/MetCheck.f90
# $(FC) $(FFLAGS) $(EXFLAGS) MetCheck.o $(LIBS) $(nclib) $(grblib) -L./ -lMetReader $(USGSLIB) -o tools/MetCheck
makegfsncml: tools/makegfsncml.f90 makefile
$(FC) $(FFLAGS) $(EXFLAGS) $(LIBS) $(nclib) -c tools/makegfsncml.f90
$(FC) $(FFLAGS) $(EXFLAGS) makegfsncml.o $(LIBS) $(nclib) -o tools/makegfsncml
I have tbe same problem. Hava you solved it ?
I guess you are using Ubuntu systerm. For ubuntu, you should change the line 195, 197, 200, 203 of the makefile by moving -L./ -lMetReader ahead of $(LIBS)
By the way, for centos, there are no error when compile. So no change is needed
Yea, looks like problem with linkage order of lMetReader, it needs both NetCDF and grib, It will be works. Installed on Cygwin.
tools/MetSonde: tools/MetSonde.f90 makefile libMetReader.a
$(FC) $(FFLAGS) $(EXFLAGS) -L./ -lMetReader $(LIBS) $(nclib) $(grblib) -c tools/MetSonde.f90
$(FC) $(FFLAGS) $(EXFLAGS) MetSonde.o -L./ -lMetReader $(LIBS) $(nclib) $(grblib) $(USGSLIB) -o tools/MetSonde
tools/MetTraj_F: tools/MetTraj.F90 makefile libMetReader.a
$(FC) $(FPPFLAGS) -DFORWARD $(FFLAGS) $(EXFLAGS) tools/MetTraj.F90 -o tools/MetTraj_F $(LIBS) -L./ -lMetReader $(nclib) $(grblib) $(USGSLIB)
tools/MetTraj_B: tools/MetTraj.F90 makefile libMetReader.a
$(FC) $(FPPFLAGS) -DBACKWARD $(FFLAGS) $(EXFLAGS) tools/MetTraj.F90 -o tools/MetTraj_B $(LIBS) -L./ -lMetReader $(nclib) $(grblib) $(USGSLIB)
tools/MetCheck: tools/MetCheck.f90 makefile libMetReader.a
$(FC) $(FFLAGS) $(EXFLAGS) $(LIBS) $(nclib) $(grblib) -c tools/MetCheck.f90
$(FC) $(FFLAGS) $(EXFLAGS) MetCheck.o $(LIBS) -L./ -lMetReader $(nclib) $(grblib) $(USGSLIB) -o tools/MetCheck
tools/probe_Met: tools/probe_Met.f90 makefile libMetReader.a
$(FC) $(FFLAGS) $(EXFLAGS) $(LIBS) $(nclib) $(grblib) -c tools/probe_Met.f90
$(FC) $(FFLAGS) $(EXFLAGS) probe_Met.o $(LIBS) -L./ -lMetReader $(nclib) $(grblib) $(USGSLIB) -o tools/probe_Met
tools/makegfsncml: tools/makegfsncml.f90 makefile
$(FC) $(FFLAGS) $(EXFLAGS) $(LIBS) $(nclib) -c tools/makegfsncml.f90
$(FC) $(FFLAGS) $(EXFLAGS) makegfsncml.o $(LIBS) $(nclib) -o tools/makegfsncml
Hi, I am trying to install the software but I have a problem with building the files. The error is the following:
when
make all
. The output is:I have installed both ecCodes and NetCDF libraries.
Thanks