[ncl-install] gks library reference build directory

Mary Haley haley at ucar.edu
Thu May 22 14:13:38 MDT 2014


On May 22, 2014, at 1:51 PM, brown wrap <gramos at yahoo.com> wrote:

> 
> I build NCAR Graphics using the PGI compiler. I had a working build, or thought so. I had to help a user compile some code and during the compile it was having problems find the GKS library. Why is it looking in the build directory for anything? I am including the error below. Thanks.

Can you email the full compile line so we can see what it looks like?  

When NCL (and NCAR Graphics) version 6.1.0 was released in October 2012, we introduced a dependency on cairo graphics for the low-level graphics code, and hence you need to link some additional libraries when compiling C or Fortran code that depends on NCAR Graphics. One of these libraries is called "cairo" which will probably take care of the issues below, but cairo has other dependencies so there are more libraries you need to link.

For information on this, please see:

http://www.ncl.ucar.edu/prev_releases.shtml#CompilationChanges6.1.0

--Mary

> 
> /software/depot/ncarg-pgi-02-01-2014/lib/libncarg_gks.a(cro.o): In function `CROset_dashpattern':
> /users/ramos/new-ncarg-pgi/ncl_ncarg-6.1.2-pgi-mostly-works/ncarg2d/src/libncarg_gks/cdrivers/./cro.c:226: undefined reference to `cairo_set_dash'
> /users/ramos/new-ncarg-pgi/ncl_ncarg-6.1.2-pgi-mostly-works/ncarg2d/src/libncarg_gks/cdrivers/./cro.c:229: undefined reference to `cairo_set_dash'
> /users/ramos/new-ncarg-pgi/ncl_ncarg-6.1.2-pgi-mostly-works/ncarg2d/src/libncarg_gks/cdrivers/./cro.c:235: undefined reference to `cairo_set_dash'
> /users/ramos/new-ncarg-pgi/ncl_ncarg-6.1.2-pgi-mostly-works/ncarg2d/src/libncarg_gks/cdrivers/./cro.c:240: undefined reference to `cairo_set_dash'
> /users/ramos/new-ncarg-pgi/ncl_ncarg-6.1.2-pgi-mostly-works/ncarg2d/src/libncarg_gks/cdrivers/./cro.c:248: undefined reference to `cairo_set_dash'
> 
> 
> _______________________________________________
> 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