[ncl-install] Compile NCARG shared libraries?
Mark Van Moer
mvanmoer at ncsa.illinois.edu
Mon Feb 14 09:52:00 MST 2011
Hi Mary,
I got .so libs to build by following your suggestion below and also adding -fPIC to CcOptions and FcOptions (I use LINUX.64.INTEL as my base config file).
I have a couple of questions. All the .so names differ in style from the .a:
libNGcn.so libNGc.so libNGff.so libNGgksCTXT.so libNGgksPDF.so libNGgksPS.so libNGgks.so libNGgksX.so libNGhlu.so libNGlluC.so libNGllu.so libNGmath.so libNGmisc2.so libNGmisc.so libNGmp.so libNGnfp.so
I was trying to figure out which ones to link against and found that ldd returns
statically linked for some of them:
$ ldd libNGcn.so
statically linked
The ones ldd returns statically linked for are:
libNGcn.so, libNGff.so, libNGgksCTXT.so, libNGgksPDF.so, libNGgksPS.so, libNGgksX.so, libNGlluC.so, libNGmath.so, libNGmisc2.so, libNGmisc.so, libNGmp.so
Ones where ldd returns list -
libNGc.so, libNGgks.so, libNGhlu.so, libNGllu.so, libNGnfp.so
I'm guessing this means I just need to link against the second list? Is there a way to get ncargex to test against the shared libs?
Thanks,
Mark
----- Original Message -----
From: "Mary Haley" <haley at ucar.edu>
To: "Mark Van Moer" <mvanmoer at ncsa.illinois.edu>
Cc: "ncl-install" <ncl-install at ucar.edu>
Sent: Thursday, February 3, 2011 5:29:17 PM
Subject: Re: [ncl-install] Compile NCARG shared libraries?
Hi Mark,
We have some hooks in the build system to build shared libraries, but I've never
actually tried it, and I'm not sure what state it's in.
Look for this line in your config file in the $NCARG/config directory:
#define BuildShared NO
Try removing it (since I think it is YES by default), and then rerunning "make Everything".
--Mary
On Feb 3, 2011, at 2:48 PM, Mark Van Moer wrote:
> Hello,
>
> Is it possible to create shared versions of the NCARG libs? E.g. libncl.so in addition to libncl.a, etc? I don't see anything in the build instructions about this.
>
> 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