[ncl-install] 5.2.0 install, error with mpex15
Mary Haley
haley at ucar.edu
Fri May 7 10:17:06 MDT 2010
Hi Mark,
I think you did the right thing. The "ncargex" script needed to be updated to force "-lpng" on the compile line for this example. This will be in the next release of NCL.
Thanks for letting us know about this.
If you want to make the change yourself, edit the file $NCARG_ROOT/bin/ncargex and change:
case mpex15:
set other_data_files = (Europe.png Europe.pngi)
breaksw
to:
case mpex15:
set other_data_files = (Europe.png Europe.pngi)
set comp_flags = ($comp_flags "-lpng -lz")
breaksw
--Mary
On May 7, 2010, at 8:22 AM, Mark Van Moer wrote:
> Hi, I've installed NCL 5.2.0 and ran ncargex -A. ncargex mpex15 failed because it couldn't find the png libraries. I added -lpng to the ifort line
>
> $ ifort -O2 -o mpex15 mpex15.f -L/usr/apps/vis/ncl/5.2.0/lib -L/usr/local/X11R6/lib64 -L/usr/apps/vis/netcdf/netcdf-4.1-intel/lib -L/usr/apps/hdf/hdf4/v424-noncdf/lib -L/usr/apps/hdf/szip/lib -L/usr/apps/hdf/hdf5/v182/lib -lncarg -lncarg_gks -lncarg_c -lXpm -lX11 -lXext -lpng
>
>
> and it worked.
>
> My question is, what should I have done in the build process so that ncargex would have known to build mpex15 with -lpng?
>
> Thanks,
> Mark
> _______________________________________________
> 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