[ncl-install] ncl 6.1.0 precompiled on debian squeeze 64 bit and WPS (WRF) compile error

Mary Haley haley at ucar.edu
Thu Sep 6 08:48:07 MDT 2012


Hi Ugo,

Thanks for letting me know. I'm CC-ing ncl-install so they can see the solution as well.

--Mary

On Sep 5, 2012, at 7:06 AM, ugo merlini wrote:

> Hi
> 
> I solved in this way
> 
> apt-get install libfontconfig1-dev expat
> apt-get -t squeeze-backports install libcairo2-dev libpixman-1-0 xorg-dev
> 
> and add this line to WPS config file: -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat
> 
> Ugo
> 
> I solved
> 
> > Subject: Re: [ncl-install] ncl 6.1.0 precompiled on debian squeeze 64 bit and WPS (WRF) compile error
> > From: haley at ucar.edu
> > Date: Tue, 4 Sep 2012 09:47:02 -0400
> > CC: ncl-install at ucar.edu
> > To: ugomerlini at hotmail.com
> > 
> > Ugo,
> > 
> > When you say it doesn't solve the problem, do you mean that you were unable to get the cairo libraries installed?
> > 
> > Did you actually change your compile line to add the cairo libraries? You will need something like this:
> > 
> > -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lbz2 -lXrender
> > 
> > at the end of your "gfortran -o plotfmt" compile line. If your libraries are in a directory like /opt/local/lib, then you will need to add
> > something like:
> > 
> > -L/opt/local/lib -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lbz2 -lXrender
> > 
> > I'm not sure of the exact libraries, but you can type:
> > 
> > ncargf77
> > 
> > to get an idea.
> > 
> > --Mary
> > 
> > On Aug 23, 2012, at 7:22 PM, ugo merlini wrote:
> > 
> > > hi,
> > > 
> > > tryed to install with apt-get -t squeeze-backports install libcairo2-dev 
> > > 
> > > I used backports becuase cairo version is 1.10.2 (normal repository has version 1.8)
> > > 
> > > but It doesn't solve the problem
> > > 
> > > Ugo
> > > 
> > > > Subject: Re: [ncl-install] ncl 6.1.0 precompiled on debian squeeze 64 bit and WPS (WRF) compile error
> > > > From: haley at ucar.edu
> > > > Date: Thu, 23 Aug 2012 16:12:48 -0600
> > > > CC: ncl-install at ucar.edu
> > > > To: ugomerlini at hotmail.com
> > > > 
> > > > 
> > > > On Aug 23, 2012, at 2:53 PM, ugo merlini wrote:
> > > > 
> > > > > Hi,
> > > > > 
> > > > > i'm trying the precompiled version: ncl_ncarg-6.1.0-beta.Linux_Debian_x86_64_gcc445.tar.gz which macth debian squeeze gcc
> > > > > 
> > > > > so I don't think i need to do that, I'm right?
> > > > 
> > > > No, you will still need the libraries, because the GKS library now has direct calls to cairo.
> > > > 
> > > > It's not that hard to install cairo. I think using one of the commands below should do it.
> > > > 
> > > > --Mary
> > > > 
> > > > > 
> > > > > Regards
> > > > > 
> > > > > Ugo
> > > > > 
> > > > > 
> > > > > > Subject: Re: [ncl-install] ncl 6.1.0 precompiled on debian squeeze 64 bit and WPS (WRF) compile error
> > > > > > From: haley at ucar.edu
> > > > > > Date: Thu, 23 Aug 2012 14:07:34 -0600
> > > > > > CC: ncl-install at ucar.edu
> > > > > > To: ugomerlini at hotmail.com
> > > > > > 
> > > > > > You need to install the cairo and related libraries if you want to compile with V6.1.0. 
> > > > > > 
> > > > > > Please see the "Installing other software for Linux systems" at:
> > > > > > 
> > > > > > http://www.ncl.ucar.edu/Download/linux.shtml#InstallSoftware
> > > > > > 
> > > > > > You need to do something like:
> > > > > > 
> > > > > > apt-get install libcairo-devel
> > > > > > yum install libcairo-devel
> > > > > > 
> > > > > > etc.
> > > > > > 
> > > > > > --Mary
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > On Aug 23, 2012, at 9:00 AM, ugo merlini wrote:
> > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > Hi,
> > > > > > > 
> > > > > > > I'm trying to compile WPS and i'm able to compile it because cairo libraries are missing.
> > > > > > > 
> > > > > > > I'm using the precompiled version of ncl 6.1.0 gcc445 (as i'm using squeeze 64 bit) 
> > > > > > > 
> > > > > > > with ncl precompiled version 6.0.0 I have no problems 
> > > > > > > 
> > > > > > > my profile.conf file
> > > > > > > 
> > > > > > > # NCL Paths
> > > > > > > NCARG_ROOT=/usr/local/bin/ncl
> > > > > > > PATH=/usr/local/bin/ncl/bin:$PATH
> > > > > > > export NCARG_ROOT
> > > > > > > export PATH
> > > > > > > 
> > > > > > > regards
> > > > > > > 
> > > > > > > Ugo
> > > > > > > 
> > > > > > > 
> > > > > > > log:
> > > > > > > 
> > > > > > > ...
> > > > > > > 
> > > > > > > gfortran -o plotfmt.exe plotfmt.o read_met_module.o module_debug.o \
> > > > > > > misc_definitions_module.o cio.o met_data_module.o \
> > > > > > > -L/usr/local/bin/ncl/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 
> > > > > > > /usr/local/bin/ncl/lib/libncarg_gks.a(cro.o): In function `cro_SoftFill':
> > > > > > > cro.c:(.text+0xfa2): undefined reference to `cairo_move_to'
> > > > > > > cro.c:(.text+0x101a): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x1037): undefined reference to `cairo_stroke'
> > > > > > > cro.c:(.text+0x1180): undefined reference to `cairo_move_to'
> > > > > > > cro.c:(.text+0x11fc): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x1219): undefined reference to `cairo_stroke'
> > > > > > > /usr/local/bin/ncl/lib/libncarg_gks.a(cro.o): In function `cro_UpdateWorkstation':
> > > > > > > cro.c:(.text+0x12a8): undefined reference to `cairo_surface_flush'
> > > > > > > /usr/local/bin/ncl/lib/libncarg_gks.a(cro.o): In function `GetCROClipping':
> > > > > > > cro.c:(.text+0x12e2): undefined reference to `cairo_clip_extents'
> > > > > > > /usr/local/bin/ncl/lib/libncarg_gks.a(cro.o): In function `CROpict_init':
> > > > > > > cro.c:(.text+0x13eb): undefined reference to `cairo_set_source_rgba'
> > > > > > > cro.c:(.text+0x142a): undefined reference to `cairo_clip_extents'
> > > > > > > cro.c:(.text+0x143d): undefined reference to `cairo_reset_clip'
> > > > > > > cro.c:(.text+0x1458): undefined reference to `cairo_move_to'
> > > > > > > cro.c:(.text+0x1489): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x14d2): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x1503): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x151e): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x1531): undefined reference to `cairo_clip'
> > > > > > > cro.c:(.text+0x154c): undefined reference to `cairo_move_to'
> > > > > > > cro.c:(.text+0x157d): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x15c6): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x15f7): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x1612): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x1625): undefined reference to `cairo_fill'
> > > > > > > cro.c:(.text+0x165a): undefined reference to `cairo_move_to'
> > > > > > > cro.c:(.text+0x168f): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x16c4): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x16f9): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x172e): undefined reference to `cairo_line_to'
> > > > > > > cro.c:(.text+0x1741): undefined reference to `cairo_clip'
> > > > > > > cro.c:(.text+0x1760): undefined reference to `cairo_save'
> > > > > > > cro.c:(.text+0x1773): undefined reference to `cairo_reset_clip'
> > > > > > > 
> > > > > > > ...
> > > > > > > _______________________________________________
> > > > > > > ncl-install mailing list
> > > > > > > List instructions, subscriber options, unsubscribe:
> > > > > > > http://mailman.ucar.edu/mailman/listinfo/ncl-install
> > > > > > 
> > > > > _______________________________________________
> > > > > ncl-install mailing list
> > > > > List instructions, subscriber options, unsubscribe:
> > > > > http://mailman.ucar.edu/mailman/listinfo/ncl-install
> > > > 
> > > _______________________________________________
> > > ncl-install mailing list
> > > List instructions, subscriber options, unsubscribe:
> > > http://mailman.ucar.edu/mailman/listinfo/ncl-install
> > 



More information about the ncl-install mailing list