[gradsusr] Error reported in the g2clib library installation
王佳钰
wjy_jenifer at mail.dlut.edu.cn
Wed Sep 25 09:22:06 EDT 2019
Dear Jennifer,
Thank you for your reaching out.
I have tried your method and installed g2clib successfully. But when I installed all the libraries and finally installed the grads, an error occurred again 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
It still doesn't seem to solve the underlying problem. Do you know how to solve it?
Thank you so much!
Jiayu
> -----原始邮件-----
> 发件人: "Jennifer M Adams" <jadams21 at gmu.edu>
> 发送时间: 2019-09-25 07:24:29 (星期三)
> 收件人: "GrADS Users Forum" <gradsusr at gradsusr.org>
> 抄送:
> 主题: Re: [gradsusr] Error reported in the g2clib library installation
>
> Did you install this version of jasper which has jpeg2000?
> ftp://cola.gmu.edu/grads/Supplibs/2.2/src/jasper-1.900.1-14ubuntu3.2.debian.tar.gz
>
>
> If you don’t want to bother with jpeg2000, then edit the makefile in the g2clib source code and change
> this
> DEFS=-DUSE_JPEG2000 -DUSE_PNG
> to this
> DEFS=-DUSE_PNG
>
> —Jennifer
>
> > On Sep 22, 2019, at 7:31 AM, 王佳钰 <wjy_jenifer at mail.dlut.edu.cn> wrote:
> >
> > Dear sir or madam,
> >
> > I am very interested in GrADS and want to learn it. But I ran into a problem with the installation. The error always occured when I installed the g2clib library in the GrADS 2.2.1:
> >
> >
> > dec_jpeg2000.c
> > dec_jpeg2000.c:8:27: error: jasper/jasper.h: No such file or directory
> > dec_jpeg2000.c: In function 'dec_jpeg2000':
> > dec_jpeg2000.c:55: error: 'jas_image_t' undeclared (first use in this function)
> > dec_jpeg2000.c:55: error: (Each undeclared identifier is reported only once
> > dec_jpeg2000.c:55: error: for each function it appears in.)
> > dec_jpeg2000.c:55: error: 'image' undeclared (first use in this function)
> > dec_jpeg2000.c:56: error: 'jas_stream_t' undeclared (first use in this function)
> > dec_jpeg2000.c:56: error: 'jpcstream' undeclared (first use in this function)
> > dec_jpeg2000.c:57: error: 'jas_image_cmpt_t' undeclared (first use in this function)
> > dec_jpeg2000.c:57: error: 'pcmpt' undeclared (first use in this function)
> > dec_jpeg2000.c:59: error: 'jas_matrix_t' undeclared (first use in this function)
> > dec_jpeg2000.c:59: error: 'data' undeclared (first use in this function)
> > make: *** [libg2c_v1.6.0.a(dec_jpeg2000.o)] Error 1
> >
> >
> >
> > The jasper library has been installed successfully. Under the path" /public/home/user/anzi/Build_WRF/grads/supplibs/include", I can also find the jasper folder, which includes "jasper.h" file and its dependent .h file.
> >
> > This is my environment variable: SUPPLIBS=/public/home/user/anzi/Build_WRF/grads/supplibs
> >
> > Do you know what the problem is?
> >
> > Thank you so much for your attention.
> >
> > Jiayu
> >
> >
> >
> >
> > •
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://secure-web.cisco.com/10NTHuOq8ktMdrYWAriltm7V3B2t7buJSaeeVcu-st_rowzLltTDTXPWdGLfp7aMqJgd34A34rhFFF-VCvBdkfMIbR9yJuBb4ytITch6AkCKvA4zVO5Xat6QiE_LDVgCkskPys9yX2v8Spryn2XWDfNBrEJ9GxgMJd-Q5tWMGrINGSipzAfyMqaUH6YZDqlPQhM1E23s3p2dD65egA-Qp2JuhCBBF37ZA7KWuDMHslv-hME2vBwjKP1kBo83IafBEWQVZNlDux7y7DkEXITdhi4zyeHGP40E7hE2FDYI0lK0NUlBg0jNn0LT-XCuDdJkjbQoLq6myWwNL5fWpRoU-Jdk_s_Fj8iHKhHbNaN5JOQLkJ5qwU5VUS3IGND-1zVc_lMwPCH0wwSDfOp1TjDhZpxxUMzNzV5SUcF4HReyRnVwzmUvrX-oWIJgwvynow1-m/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
>
> --
> Jennifer Miletta Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> George Mason University
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
More information about the gradsusr
mailing list