[ncl-install] Trouble installing NCL Graphics in MacOS 10.4

Mary Haley haley at ucar.edu
Thu Apr 16 09:53:27 MDT 2009


Hi Dave,

My first guess is that the GKS library didn't get fully built.

Usually this happens because something in the
$NCARG/ncarg2d/src/libncarg_gks/cdrivers directory didn't build, and
this usually happens if PNG support was requested, but the build
can't find the PNG include files.

If you have the output from your build, search for "png" and
see if you have any errors about "png.h" not being found.

If you do see these, then you will need to build and install the PNG
library (instructions at 
http://www.ncl.ucar.edu/Download/build_from_src.shtml#PNG) and make
sure it is in a directory where the NCAR Graphics build can find it.

If you are not sure about any of this, then you can email
me the "make-output" file from your build, and I'll take
a look.

--Mary

On Thu, 16 Apr 2009, Dave Lane wrote:

> Hi,
>
> I'm having trouble compiling NCAR Graphics - just the graphics libs (and 
> demos).
>
> The first error message that I notice is when compiling the demos. See below 
> at bottom of message. "Undefined symbol: _ggkwdr_". This repeats several 
> times during the "make" but it does not stop when the error occurs. The last 
> few lines of the make log imply all went well.
>
> When I try the examples the same undefined symbol shows up. Any suggestions?
>
> Regards,
>
> Dave Lane
>
> --->>>
>
> [maia2:~] dlane% ncargex cpex08
>
> NCAR Graphics Fortran  Example <cpex08>
>
>  Copying cpex08.f
>
>  Copying cpexcc.f
>
> Compiling and linking...
> gfortran -fPIC -fno-range-check -O -o cpex08 cpexcc.f cpex08.f -L/usr/ 
> local/ncarg/lib -L/usr/local/lib -L/usr/X11R6/lib -L/sw/lib -lncarg - 
> lncarg_gks -lncarg_c -lXpm -lX11 -lXext -lpng -lz
> /usr/bin/ld: Undefined symbols:
> _ggkwdr_
> collect2: ld returned 1 exit status
>
> The compile and link failed.
>
> [maia2:~] dlane%
>
> Error during make ->>
>
> gfortran -fPIC -fno-range-check  -O    -o pre2ncgm.prog alover.o clipit.o 
> frm.o garg.o intcnv.o lodctb.o        mmdef.o multi.o patdrw.o patset.o 
> pltclp.o pltit.o pnt.o        posit.o pwt.o setop.o setrng.o trndt2.o 
> trnmch.o twobyt.o       xmdef.o xmopdf.o fndarg.o metred.o mninst.o trans.o 
> trassn.o trlate.o trndat.o ../../../.././ 
> ncarg2d/src/libncarg_gks/awi/ggkwdr_stub.o -L../../../.././ncarg2d/ 
> src/libncarg -lncarg -L../../../.././ncarg2d/src/libncarg_gks -lncarg_gks 
> -L../../../.././common/src/libncarg_c -lncarg_c -lgfortran 
> -L/usr/local/ncarg/lib -L/usr/local/lib -L/usr/X11R6/lib -L/sw/lib
> Making ./ncarg2d/src/bin/psplit
> gcc -ansi -fPIC  -O  -I../../../.././include -I/usr/X11R6/include -I/ 
> sw/include -I/usr/local/include    -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE 
> -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto    -c -o psplit.o psplit.c
> gcc -ansi -fPIC  -O    -o psplit psplit.o  -L/usr/local/ncarg/lib -L/ 
> usr/local/lib -L/usr/X11R6/lib -L/sw/lib
> Making ./ncarg2d/src/bin/tdpackdemo
> gfortran -fPIC -fno-range-check  -O    -c -o TdpackDemo.o TdpackDemo.f
> gfortran -fPIC -fno-range-check  -O    -o tdpackdemo TdpackDemo.o - 
> L../../../.././ncarg2d/src/libncarg -lncarg -L../../../.././ncarg2d/ 
> src/libncarg_gks -lncarg_gks -L../../../.././common/src/libncarg_c -lncarg_c 
> -lpng -lz -L/usr/local/ncarg/lib -L/usr/local/lib -L/usr/X11R6/lib -L/sw/lib 
> -lXpm -lX11 -lXext
> /usr/bin/ld: Undefined symbols:
> _ggkwdr_
> collect2: ld returned 1 exit status
>
>
>
>


More information about the ncl-install mailing list