爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 958|回复: 6

安装wrf的后处理软件 ARWpost GrADS的g2clib库报错

[复制链接]
发表于 2019-9-19 09:28:45 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
按照官网教程安装wrf的后处理软件 ARWpost GrADS,在g2clib库的安装时一直报错,错误如下:

gcc -c -O3 -fPIC -g -m64 -IUPPLUBS/include -IUPPLIBS/include/libpng15 -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ 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




有大佬知道到底是什么原因吗?谢谢各位了!!!

密码修改失败请联系微信:mofangbao
 楼主| 发表于 2019-9-19 09:33:23 | 显示全部楼层
感觉是jasper的问题,这是编译出来的:

[jwchen@login2 src]$ cd jasper-1.900.1
[jwchen@login2 jasper-1.900.1]$ ./configure --prefix=$SUPPLIBS --with-jpeg=$SUPPLIBS
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... no
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for X... libraries /usr/lib64, headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether variable-length arrays are supported... yes
checking for jpeg_destroy in -ljpeg... yes
checking for glutInit in -lglut... yes
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking whether OpenGL libraries and headers were detected... yes
checking for main in -lm... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for stdlib.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for uchar... no
checking for ushort... yes
checking for uint... yes
checking for ulong... yes
checking for longlong... no
checking for ulonglong... no
checking for ssize_t... yes
checking for gettimeofday... yes
checking for getrusage... yes
checking for vprintf... yes
checking for _doprnt... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/appl/Makefile
config.status: creating src/libjasper/Makefile
config.status: creating src/libjasper/base/Makefile
config.status: creating src/libjasper/bmp/Makefile
config.status: creating src/libjasper/include/Makefile
config.status: creating src/libjasper/include/jasper/Makefile
config.status: creating src/libjasper/jp2/Makefile
config.status: creating src/libjasper/jpc/Makefile
config.status: creating src/libjasper/jpg/Makefile
config.status: creating src/libjasper/mif/Makefile
config.status: creating src/libjasper/pgx/Makefile
config.status: creating src/libjasper/pnm/Makefile
config.status: creating src/libjasper/ras/Makefile
config.status: creating src/msvc/Makefile
config.status: creating jasper.spec
config.status: creating src/libjasper/include/jasper/jas_config.h
config.status: src/libjasper/include/jasper/jas_config.h is unchanged
config.status: executing depfiles commands
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-9-19 14:26:19 | 显示全部楼层
jasper的问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-19 14:31:09 | 显示全部楼层

是的 ,但是没看出是哪里出了问题,您能帮我看一下吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-19 14:35:10 | 显示全部楼层

这是安装命令之后出现:
[jwchen@login2 jasper-1.900.1]$ make install
Making install in src
make[1]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src'
Making install in libjasper
make[2]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper'
Making install in include
make[3]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper/include'
Making install in jasper
make[4]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper/include/jasper'
make[5]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper/include/jasper'
make[5]: Nothing to be done for `install-exec-am'.
test -z "/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper" || mkdir -p -- "/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper"
/usr/bin/install -c -m 644 'jasper.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jasper.h'
/usr/bin/install -c -m 644 'jas_config.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_config.h'
/usr/bin/install -c -m 644 'jas_config2.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_config2.h'
/usr/bin/install -c -m 644 'jas_cm.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_cm.h'
/usr/bin/install -c -m 644 'jas_fix.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_fix.h'
/usr/bin/install -c -m 644 'jas_debug.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_debug.h'
/usr/bin/install -c -m 644 'jas_getopt.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_getopt.h'
/usr/bin/install -c -m 644 'jas_icc.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_icc.h'
/usr/bin/install -c -m 644 'jas_image.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_image.h'
/usr/bin/install -c -m 644 'jas_init.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_init.h'
/usr/bin/install -c -m 644 'jas_malloc.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_malloc.h'
/usr/bin/install -c -m 644 'jas_math.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_math.h'
/usr/bin/install -c -m 644 'jas_seq.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_seq.h'
/usr/bin/install -c -m 644 'jas_stream.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_stream.h'
/usr/bin/install -c -m 644 'jas_string.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_string.h'
/usr/bin/install -c -m 644 'jas_tmr.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_tmr.h'
/usr/bin/install -c -m 644 'jas_tvp.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_tvp.h'
/usr/bin/install -c -m 644 'jas_types.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_types.h'
/usr/bin/install -c -m 644 'jas_version.h' '/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/include/jasper/jas_version.h'
make[5]: Leaving directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper/include/jasper'
make[4]: Leaving directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper/include/jasper'
make[4]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper/include'
make[5]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper/include'
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
mak
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-19 14:38:31 | 显示全部楼层

这是安装命令之后出现:
[jwchen@login2 jasper-1.900.1]$ make install
Making install in src
make[1]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src'
Making install in libjasper
make[2]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper'
Making install in include
make[3]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper/include'
Making install in jasper
make[4]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WRF/grads/supplibs/src/jasper-1.900.1/src/libjasper/include/jasper'
make[5]: Entering directory `/public/home/jwchen/jwchen/wjy/Build_WR
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-9-19 15:16:14 | 显示全部楼层
王佳钰 发表于 2019-9-19 14:38
这是安装命令之后出现:
[jwchen@login2 jasper-1.900.1]$ make install
Making install in src

建议检查编译器和环境变量的设置
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表