[ncl-install] Compiling issues 6.4.0, PGI on Cray
haley at ucar.edu
Wed Jun 28 08:30:09 MDT 2017
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
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
> libncarg_gks/cdrivers/./cro.c:266: undefined reference to `cairo_set_dash'
> libncarg_gks/cdrivers/./cro.c:269: undefined reference to `cairo_set_dash'
> libncarg_gks/cdrivers/./cro.c:275: undefined reference to `cairo_set_dash'
> libncarg_gks/cdrivers/./cro.c:280: undefined reference to `cairo_set_dash'
> libncarg_gks/cdrivers/./cro.c:288: undefined reference to `cairo_set_dash'
> 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.
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ncl-install