|
From: Arlindo da S. <da...@al...> - 2009-02-17 23:14:03
|
All,
Here is a quick trick for building COLA's v2.0.a5 with the new
supplibs-2.1.0:
% ./configure
% make
and it will fail trying to build grads; then
% cd src
% make (it will compile and fail during link)
% make grads CC=g++ LIBS="`../../supplibs/bin/nc-config-nc --libs` -lm"
and you will have a grads binary that are netcdf-3, netcdf-4/hdf-5, hdf-4
and opendap (gridded) enabled. Pretty cool.
Jennifer,
As for revising your config.ac: a simple trick is to key into the
nc-config-nc script which is available with the latest netcdf-4. If it is
available then you know it is netcdf-4, and from it you can find out what is
available with that netcdf build:
% nc-config-nc:
Usage: nc-config [OPTION]
Available values for OPTION include:
--help display this help message and exit
--all display all options
--cc C compiler
--cxx C++ compiler
--fc Fortran compiler
--cflags pre-processor and compiler flags
--fflags flags needed to compile a Fortran program
--has-dap whether OPeNDAP is enabled in this build
--has-nc2 whether NetCDF-2 API is enabled
--has-nc4 whether NetCDF-4/HDF-5 is enabled in this build
--has-hdf5 same as --has-nc4
--has-f77 whether Fortran 77 API is enabled in this build
--has-f90 whether Fortran 90 API is enabled in this build
--has-c++ whether C++ API is enabled in this build
--libs library linking information for libnc-dap
--flibs libraries needed to link a Fortran program
--prefix Install prefix
--version Library version
Let me know if you have questions,
Arlindo
On Tue, Feb 17, 2009 at 3:28 PM, Arlindo da Silva <da...@al...>wrote:
> All,
>
> I just finished a major upgrade of the supplibs, see ChangeLog bellow.
> Pre-compiled tarballs are on sf.net:
>
>
> https://sourceforge.net/project/showfiles.php?group_id=161773&package_id=241681&release_id=661716
>
> There are now 2 packages: supplibs-*.tar.gz which includes the lib/,
> include/ and a few files in bin/ needed to build grads (e.g., pkg-config).
> The supptools-*.gz package includes the remaining bin/, etc/ , share/ which
> is a product of the build that some people may find useful (ncdump, for
> example). The "supplibs" package is now much smaller, < 20MB.
>
> The main change is that netcdf has been upgraded to v4.0.1 which includes
> opendap and hdf-5 support. Therefore, I have omitted libnc-dap and removed
> the previous netcdf4 package that I had been using for experimental netcdf-4
> builds in the past couple of years. The upshot is that we no longer need to
> build a separate gradsdap: the single executable grads now can have it all:
> netcdf-3, netcdf-4/hdf-5, hdf-4, grib-1/2. I say more about that on a
> follow on message regarding v2.0.a5.oga.1.
>
> Caveat: by setting LIBS properly one may be able to build grads v2.0.a5
> with supplibs-2.0.1. It will not build "gradsdap" and the binary *grads*
> will say that opendap is not enabled, although gridded dap is.
>
> Other niceties,
>
> % make lib-dist
> % make bin-dist
> % make src-dist
>
> will create the respective tarballs. The "make src-dist" only works with
> supplib sources that have been checked out from CVS. Also,
>
> % make verify
>
> will produce a summary of which package passed or failed config, install.,
> eg.,
>
> -------+---------+--------------
> Config | Install | Package
> -------+---------+--------------
> ok | ok | pkg-config
> ok | ok | udunits
> ok | ok | zlib
> ok | ok | szlib
> ok | ok | libpng
> ...
>
> Jennifer,
>
> Per your request, I have created a special CVS module,
>
> % gacvs co -P supplibs_fixture
>
> which allows you to checkout only a "shell" of the supplibs, with the top
> GNUmakefile, but with sources only for pkg-config (which is a must have for
> ensurance the self-consistency of the build.) Now, say, you want to build
> jasper, then you enter:
>
> % make co_jasper
> % make install
>
> This will bring the jasper sources and build it. I wrote in some dependency
> tracking, so co_hdf4 would also check out zlib, szlib, etc, although I have
> not tested this dependency feature fully.
>
> Let me know of any problems,
>
> Cheers!
>
> Arlindo
>
> ChangeLog
>
> 2009-02-16 Arlindo da Silva (da...@op...)
> * Version 2.1.0
> * CVS Tag: supplibs-2_1_0
> * GNUmakefile:
> - adjusted to reflect new packages
> - added verify target to summarize what has been built
> - added *-dist targets for distribution tarballs
> - added target for CVS checkout
> * make_ppc.sh: script for cross-compilation of Powerpc/Darwin
> * relocate.sh: new script to rename files when relocating
> supplibs installation.
> Updated packages:
> * netcdf: updated to v4.0.1beta3
> * hdf5: updated to v1.8.2
> * dap: updated to v3.8.2, then downgraded to v3.7.10 for
> compatibility with NetCDF-4
> * nc-dap: updated to v3.7.3 (then removed altogether)
> * gadap: merged with COLA v2.0 and patched
> New packages;
> * tiff: added v3.8.3 (for GrADS v2.0.a5)
> * geotiff: added v1.2.5 (for GrADS v2.0.a5)
> * cairo: added v1.8.6 (for gxyat and future use)
> * pixman: added v0.13.2 (needed by cairo)
> * fontconfig: added v2.6.0 (needed by cairo)
> * freetype: added v2.3.8 (needed by cairo)
> * shp: added v1.2.10 added, w/ addition of GNUmakefile
> * hdf4-nc: not a real package, but a recompilatin of hdf4
> with the NetCDF API enabled.
> Removed packages:
> * nc-dap: netcdf 4.0.1 includes this functionality
> * netcdf4: removed (main netcdf is now has v4.0.1)
> * neXtaw: removed as it does not work with Ubuntu and Xaw
> works just fine
> * esmf.mk: removed as ESMF is not at the supplibs
> * hdfeos: ditto
>
> --
> Arlindo da Silva
> da...@al...
>
--
Arlindo da Silva
da...@al...
|