plotgrids.exe & plotfmt.exe not created

Installing the WRF Preprocessing System

plotgrids.exe & plotfmt.exe not created

Postby beck394 » Fri Apr 19, 2013 12:51 pm

Dear all,

I've installed cairo already, but when I compile WPS it still has errors like:

/home/beck394/NCL-6.1.2-gcc/lib/libncarg_gks.a(cro.o): In function `cro_SoftFill':
cro.c:(.text+0xfd5): undefined reference to `cairo_move_to'
cro.c:(.text+0x1027): undefined reference to `cairo_line_to'
cro.c:(.text+0x1031): undefined reference to `cairo_stroke'
cro.c:(.text+0x1154): undefined reference to `cairo_move_to'
cro.c:(.text+0x11aa): undefined reference to `cairo_line_to'
cro.c:(.text+0x11b4): undefined reference to `cairo_stroke'
/home/beck394/NCL-6.1.2-gcc/lib/libncarg_gks.a(cro.o): In function `cro_UpdateWorkstation':
cro.c:(.text+0x1239): undefined reference to `cairo_surface_flush'
/home/beck394/NCL-6.1.2-gcc/lib/libncarg_gks.a(cro.o): In function `GetCROClipping':
cro.c:(.text+0x1269): undefined reference to `cairo_clip_extents'
/home/beck394/NCL-6.1.2-gcc/lib/libncarg_gks.a(cro.o): In function `CROpict_init':
cro.c:(.text+0x133d): undefined reference to `cairo_set_source_rgba'
cro.c:(.text+0x136d): undefined reference to `cairo_clip_extents'
cro.c:(.text+0x1375): undefined reference to `cairo_reset_clip'
cro.c:(.text+0x1385): undefined reference to `cairo_move_to'
cro.c:(.text+0x13a1): undefined reference to `cairo_line_to'
cro.c:(.text+0x13c9): undefined reference to `cairo_line_to'
cro.c:(.text+0x13e5): undefined reference to `cairo_line_to'
cro.c:(.text+0x13f5): undefined reference to `cairo_line_to'
cro.c:(.text+0x13fd): undefined reference to `cairo_clip'
cro.c:(.text+0x140d): undefined reference to `cairo_move_to'
cro.c:(.text+0x1429): undefined reference to `cairo_line_to'
cro.c:(.text+0x1451): undefined reference to `cairo_line_to'
cro.c:(.text+0x146d): undefined reference to `cairo_line_to'
cro.c:(.text+0x147d): undefined reference to `cairo_line_to'
cro.c:(.text+0x1485): undefined reference to `cairo_fill'
cro.c:(.text+0x1499): undefined reference to `cairo_move_to'
cro.c:(.text+0x14ad): undefined reference to `cairo_line_to
'


I installed NCL with the precompiled version
-> Linux_RHEL6.2_x86_64_nodap_gcc446
If it's possible that I installed with precompiled NCL, so it did not link cairo correctly?
I have no idea about this error.... :roll:


Best regards,
Beck
beck394
 
Posts: 1
Joined: Fri Apr 19, 2013 12:28 pm

Re: plotgrids.exe & plotfmt.exe not created

Postby giaaan » Thu May 09, 2013 10:19 am

Hi Beck,
I solved in this way on CentOS 6.2 & 6.4 64bit (well not indeed the same as RedHat but the packages should be binary compatble):

1) installed NCAR graphics from EPEL repository: yum install ncl ncl-devel (cairo dependencies resolved automatically)
2) changed the line in configure.wps from
"NCARG_LIBS = -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11"
to
"NCARG_LIBS = -L$(NCARG_ROOT)/lib64/ncarg -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11"
3) ./compile

Hope it helps
Gianluca
giaaan
 
Posts: 3
Joined: Thu May 09, 2013 9:48 am

Re: plotgrids.exe & plotfmt.exe not created

Postby Meteo_girl » Wed Dec 23, 2015 1:51 pm

install cairo install libcairo2-dev and use -lcairo as a flag.
Meteo_girl
 
Posts: 14
Joined: Wed Jul 14, 2010 10:31 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests