[Wrf-users] [wrf-users] Error when make plotgrids.exe and plotfmt.exe

brick brickflying at gmail.com
Mon Apr 5 20:53:35 MDT 2010


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<http://forum.wrfforum.com/viewtopic.php?f=5&t=2013&sid=858a5c94784a876c8c50dadd6c8ab60e#>
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 #
14 .SUFFIXES: .F .f .c .o
16 SHELL                   =       /bin/sh
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
22 COMPRESSION_INC         =       -I/data3a/mp/gill/WPS_LIBS/local/include
23                                 -I$(JASPERINC) -I$(PNG_INC) -I$(ZLIB_INC)
25 NCARG_LIBS              =       -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks
-lncarg_c     \
26                                 -L/home/q/Program/IntelCompiled/lib_wrf
28 NCARG_LIBS2             =
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
1306 pixwrite_png.c:(.text+0x44f): undefined reference to
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
1313 pixwrite_png.c:(.text+0x563): undefined reference to
1314 pixwrite_png.c:(.text+0x58d): undefined reference to
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
1380 pixwrite_png.c:(.text+0x44f): undefined reference to
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
1387 pixwrite_png.c:(.text+0x563): undefined reference to
1388 pixwrite_png.c:(.text+0x58d): undefined reference to
1389 make[1]: [plotgrids.exe] Error 1 (ignored)

What is the reason for these error? X11 lib incompatible? png lib connect

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20100405/39ba9ace/attachment.html 

More information about the Wrf-users mailing list