[Wrf-users] [wrf-users] Error when make plotgrids.exe and plotfmt.exe
Eric Altshuler
ela at cola.iges.org
Tue Apr 6 14:19:36 MDT 2010
Hello brick,
Try adding -lpng to the NCARG_LIBS makefile variable. (Instead, you could add it to NCARG_LIBS2. It should work either way.) Prior to NCL version 5.1, this was not necessary, but with recent versions of NCL it is.
Best regards,
Eric L. Altshuler
Assistant Research Scientist
Center for Ocean-Land-Atmosphere Studies
4041 Powder Mill Road, Suite 302
Calverton, MD 20705-3106
USA
E-mail: ela at cola.iges.org
Phone: (301) 902-1257
Fax: (301) 595-9793
----- Original Message -----
From: "brick" <brickflying at gmail.com>
To: wrf-users at ucar.edu
Sent: Monday, April 5, 2010 10:53:35 PM
Subject: [Wrf-users] [wrf-users] Error when make plotgrids.exe and plotfmt.exe
Hi
I use icc and ifort compile wps and wrf. All lib include Ncl were compiled by icc and ifort. There are no error appear when compile zlib libpng jasper or ncl.
This is part of configure.wps. I link all needed path in it.
All lib about X11 was create a link to /home/q/Program/IntelCompiled/lib_wrf
CODE: SELECT ALL 9 # To permanently change options, change the settings for your platform
10 # in the file arch/configure.defaults, the preamble, and the postamble -
11 # then rerun configure.
12 #
13
14 .SUFFIXES: .F .f .c .o
15
16 SHELL = /bin/sh
17
18 COMPRESSION_LIBS = -L/data3a/mp/gill/WPS_LIBS/local/lib \
19 -L$(JASPERLIB) -L$(PNG_LIB) -L$(ZLIB_LIB) \
20 -ljasper -lpng12 -lpng -lz
21
22 COMPRESSION_INC = -I/data3a/mp/gill/WPS_LIBS/local/include \
23 -I$(JASPERINC) -I$(PNG_INC) -I$(ZLIB_INC)
24
25 NCARG_LIBS = -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c \
26 -L/home/q/Program/IntelCompiled/lib_wrf -lX11
27
28 NCARG_LIBS2 =
29
30 FDEFS = -DUSE_JPEG2000 -DUSE_PNG
Below are the errors I met.
1300 ifort -o plotfmt.exe plotfmt.o read_met_module.o module_debug.o \
1301 misc_definitions_module.o cio.o met_data_module.o \
1302 -L/home/q/Program/IntelCompiled/Ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks -lncarg_c -L/home/q/Program/IntelCompiled/lib_wrf -lX11
1303 ld: skipping incompatible /home/q/Program/IntelCompiled/lib_wrf/libX11.so wh en searching for -lX11
1304 /home/q/Program/IntelCompiled/Ncl_ncarg-5.1.1/lib/ libncarg_gks. a(pixwrite_pn g.o): In function `write_png':
1305 pixwrite_png.c:(.text+0x43a): undefined reference to `png_create_write_struct'
1306 pixwrite_png.c:(.text+0x44f): undefined reference to `png_create_info_struct'
1307 pixwrite_png.c:(.text+0x47a): undefined reference to `png_init_io'
1308 pixwrite_png.c:(.text+0x48b): undefined reference to `png_malloc'
1309 pixwrite_png.c:(.text+0x4d9): undefined reference to `png_set_rows'
1310 pixwrite_png.c:(.text+0x505): undefined reference to `png_set_IHDR'
1311 pixwrite_png.c:(.text+0x530): undefined reference to `png_write_png'
1312 pixwrite_png.c:(.text+0x53d): undefined reference to `png_destroy_write_struct'
1313 pixwrite_png.c:(.text+0x563): undefined reference to `png_destroy_write_struct'
1314 pixwrite_png.c:(.text+0x58d): undefined reference to `png_destroy_write_struct'
1315 make[1]: [plotfmt.exe] Error 1 (ignored)
1375 ifort -o plotgrids.exe module_map_utils.o module_debug.o cio.o constants_module .o misc_definitions_module.o \
1376 plotgrids.o -L/home/q/Program/IntelCompiled/Ncl_ncarg-5.1.1/ lib -lncarg -lncarg_gks -lncarg_c -L/home/q/Program/IntelCompiled/lib_wrf -l X11
1377 ld: skipping incompatible /home/q/Program/IntelCompiled/lib_wrf/libX11.so wh en searching for -lX11
1378 /home/q/Program/IntelCompiled/Ncl_ncarg-5.1.1/lib/ libncarg_gks.a (pixwrite_pn g.o): In function `write_png':
1379 pixwrite_png.c:(.text+0x43a): undefined reference to `png_create_write_struct'
1380 pixwrite_png.c:(.text+0x44f): undefined reference to `png_create_info_struct'
1381 pixwrite_png.c:(.text+0x47a): undefined reference to `png_init_io'
1382 pixwrite_png.c:(.text+0x48b): undefined reference to `png_malloc'
1383 pixwrite_png.c:(.text+0x4d9): undefined reference to `png_set_rows'
1384 pixwrite_png.c:(.text+0x505): undefined reference to `png_set_IHDR'
1385 pixwrite_png.c:(.text+0x530): undefined reference to `png_write_png'
1386 pixwrite_png.c:(.text+0x53d): undefined reference to `png_destroy_write_struct'
1387 pixwrite_png.c:(.text+0x563): undefined reference to `png_destroy_write_struct'
1388 pixwrite_png.c:(.text+0x58d): undefined reference to `png_destroy_write_struct'
1389 make[1]: [plotgrids.exe] Error 1 (ignored)
What is the reason for these error? X11 lib incompatible? png lib connect incorrectly?
Thanks.
_______________________________________________
Wrf-users mailing list
Wrf-users at ucar.edu
http://mailman.ucar.edu/mailman/listinfo/wrf-users
More information about the Wrf-users
mailing list