can not generate ungrib.exe

Qingyun

New member
i recently install wps v4.5 and i used netcdf-c-4.9.2 and netcdf-fortran-4.6.1 i can compile wps normally but i can't generate ungrib.exe. do you have some suggestions for this question?
 
Fellowing kwerner's suggestion,I checked my compile.log and I found the fatal error below:

gcc -c -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -I/home/qingyunlee/APP/APP_General/jasper_version_1.900.1/include -DUSE_JPEG2000 -DUSE_PNG -D__64BIT__ dec_png.c
dec_png.c:5:10: fatal error: png.h: No such file or directory
5 | #include <png.h>
| ^~~~~~~
compilation terminated.
But I had add libpng/lib in CPPFLAGS as
echo $CPPFLAGS
-I/home/qingyunlee/APP/APP_General/jasper_version_1.900.1/include -I/home/qingyunlee/APP/APP_General/libpng_version_1.6.40/include
should I must configure jasper and libpng in the same directory? I don't know how to fix it
 
Hi,
Yes, jasper, libpng, and zlib should all be compiled in the same directory, so that inside that directory, there will be an "include" and "lib" directory, which will contain the files for all three of these libraries. Take a look at this compiling tutorial to see how we suggest to build those libraries.
 
Hi,
Yes, jasper, libpng, and zlib should all be compiled in the same directory, so that inside that directory, there will be an "include" and "lib" directory, which will contain the files for all three of these libraries. Take a look at this compiling tutorial to see how we suggest to build those libraries.
It is work! thanks that you let me know!
 
Back
Top