[gradsusr] Error reported in the g2clib library installation

Jennifer M Adams jadams21 at gmu.edu
Tue Sep 24 19:24:29 EDT 2019


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






More information about the gradsusr mailing list