[gradsusr] [EXTERNAL] Error reported in the grads installation
王佳钰
wjy_jenifer at mail.dlut.edu.cn
Tue Oct 8 20:51:38 EDT 2019
Hi Jennifer,
This is the makefile for g2clib:
SHELL=/bin/sh
# If you want to enable support for PNG or JPEG2000 encoding/decoding,
# you must specify -DUSE_PNG and/or -DUSE_JPEG2000 in the DEFS variable
# for the C pre-processor
# -DUSE_PNG requires libpng.a and libz.a
# ( and png.h pngconf.h zconf.h zlib.h include files).
# -DUSE_JPEG2000 requires libjasper.a
# ( and all the jasper/*.h include files).
#
# In addition, INC must include all directories where the above
# mentioned include files can be found.
DEFS=-DUSE_PNG
#
# Please make sure to include all idirectories where include files
# can be found (jasper/*.h and png.h pngconf.h zconf.h zlib.h)
#
INC=-I$SUPPLIBS/include -I$SUPPLIBS/include/libpng15
#
# This "C" source code contains many uses of the C++
# comment style "//". Please make sure you include the
# appropriate compiler flag to allow the use of "//" comment indicators.
#
CFLAGS= -O3 -g -fPIC -m64 $(INC) $(DEFS) -D__64BIT__
"makefile" 92L, 2241C 13,1 Top
-----原始邮件-----
发件人:"Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC]" <jennifer.m.adams at nasa.gov>
发送时间:2019-10-09 03:09:09 (星期三)
收件人: "GrADS Users Forum" <gradsusr at gradsusr.org>
抄送:
主题: Re: [gradsusr] [EXTERNAL] Error reported in the grads installation
What does your makefile for g2clib look like?
--
Jennifer Miletta Adams
ADNET Systems, Inc.
NASA/GSFC, Code 610.2
Building 32, Room S159
(301) 614-6070
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of 王佳钰 <wjy_jenifer at mail.dlut.edu.cn>
Reply-To: GrADS Users Forum <gradsusr at gradsusr.org>
Date: Sunday, October 6, 2019 at 8:58 PM
To: "gradsusr at gradsusr.org" <gradsusr at gradsusr.org>
Subject: [EXTERNAL] [gradsusr] Error reported in the grads installation
Dear all,
I have installed g2clib successfully. But when I finished installing all the libraries and finally installed the grads, an error occurred as below:
gcc -fPIC -rdynamic -L/public/home/jwchen/wjy/Build_WRF/grads/supplibs/lib -o grads grads.o gxsubs.o gxmeta.o gxchpl.o gxcntr.o gxstrm.o gxdb.o gxwmap.o gxshad.o gxshad2.o gaexpr.o gafunc.o gautil.o gagx.o gscrpt.o gamach.o gatxt.o galloc.o gaddes.o gacfg.o gaio.o gauser.o gasdf.o bufrstn.o gabufr.o gabufrtbl.o -L/public/home/jwchen/wjy/Build_WRF/grads/supplibs/lib -lreadline -lncurses -lgrib2c -ljasper -lpng15 -lz -lmfhdf -ldf -ljpeg -lz -ludunits -ltiff -lgeotiff -lshp -ldl -lm
/public/home/jwchen/wjy/Build_WRF/grads/supplibs/lib/libgrib2c.a(jpcunpack.o): In function `jpcunpack':
/public/home/jwchen/wjy/Build_WRF/grads/supplibs/src/g2clib-1.6.0/jpcunpack.c:61: undefined reference to `dec_jpeg2000'
collect2: ld returned 1 exit status
make[1]: *** [grads] Error 1
make[1]: Leaving directory `/public/home/jwchen/wjy/Build_WRF/grads-2.2.1/src'
make: *** [install-recursive] Error 1
Does anyone know how to solve this problem?
Thank you so much!
Jiayu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20191009/23e67335/attachment-0001.html>
More information about the gradsusr
mailing list