[ncl-install] Compiling issues 6.4.0, PGI on Cray

Mary Haley haley at ucar.edu
Wed Jun 28 08:30:09 MDT 2017

Hi Greg,

A few versions back, we overhauled the display model for NCL/NCAR Graphics
and it now has a dependency on the cairo library. This library is required
even when you compile NCAR Graphics programs. It has dependencies on a
number of other libraries as well.

>From a UNIX terminal window, type the following and hit <return>:


This will produce an error, but it's a good way to see the libraries that
are required to build an NCAR Graphics program. It will look something like

 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1
-lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2

Most of these libraries should already be on your system, either because
they came with your system, or else you had to install them before you
could build NCAR Graphics from source code.

I suggest running the ncargf77 command on your own system to see what
libraries are listed, and then copying and pasting the extra libraries and
adding them to your user's compile line.

You might also want to try compiling one of our test programs to see if it

ncargex agex01 -W pdf -clean

If this is successful, you should end up with a "agex01.pdf" PDF file in
the same directory.  You will also see what libraries it uses to compile
the program.


On Wed, Jun 28, 2017 at 8:08 AM, brown wrap <gramos at yahoo.com> wrote:

> I am trying to help a user compile her code. First off, I am not a
> programmer, but I believe this is an install error on my part. I installed
> the latest version, but I am getting the following error in trying to
> compile her code:
> /lustre/local/ncl_ncarg-6.4.0-pgi/lib/libncarg_gks.a(cro.o): In function
> `CROset_dashpattern':
> /lustre/users/ramos/ncl_ncarg-6.4.0-pgi/ncarg2d/src/
> libncarg_gks/cdrivers/./cro.c:266: undefined reference to `cairo_set_dash'
> /lustre/users/ramos/ncl_ncarg-6.4.0-pgi/ncarg2d/src/
> libncarg_gks/cdrivers/./cro.c:269: undefined reference to `cairo_set_dash'
> /lustre/users/ramos/ncl_ncarg-6.4.0-pgi/ncarg2d/src/
> libncarg_gks/cdrivers/./cro.c:275: undefined reference to `cairo_set_dash'
> /lustre/users/ramos/ncl_ncarg-6.4.0-pgi/ncarg2d/src/
> libncarg_gks/cdrivers/./cro.c:280: undefined reference to `cairo_set_dash'
> /lustre/users/ramos/ncl_ncarg-6.4.0-pgi/ncarg2d/src/
> libncarg_gks/cdrivers/./cro.c:288: undefined reference to `cairo_set_dash'
> /lustre/local/ncl_ncarg-6.4.0-pgi/lib/libncarg_gks.a(cro.o):
> /lustre/users/ramos/ncl_ncarg-6.4.0-pgi/ncarg2d/src/
> libncarg_gks/cdrivers/./cro.c:298: more undefined refere
> nces to `cairo_set_dash' follow
> As far as I can tell, I did not get any errors in the build. I also don't
> understand why the error keep references where I built the NCAR Graphics,
> it is installed in /usr/local. Thanks.
> Greg
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170628/0bf8fb9b/attachment-0001.html 

More information about the ncl-install mailing list