First, make sure that the last release of HDF (cautious: not HDF5) library is installed on your system. cookie-cutter should be built with at least release 4.2r1 of HDF library.
In order to build and install properly the HDF Library on your system, please do the following operations:
$ tar xzf HDF4.2r1.tar.gz $ cd HDF4.2r1 $ ./configure $ make $ make installAt this step a new sub-directory should have appeared: NewHDF (at least with the HDF4.2r1 release) You must be super-user from this point:
$ su(you'll be prompted here for the super-user's password)
# mv NewHDF /usr/local/hdf4.2r1 # cd /usr/local # ln -s hdf4.2r1 hdf # cd lib ; ln -s ../hdf/lib hdf ; cd .. # cd include ; ln -s ../hdf/include hdf ; cd .. # exitOf course you're free to install the library where you want to, but the current release of cookie-cutter expects to find these soft links at build-time. If you don't want to (or can't) create them, you'll have to modify HDF_INC and HDF_LIB values in the following Makefiles of cookie-cutter (see below):
[user@hostname cookie-cutter]$ pwd /path/to/cookie-cutter [user@hostname cookie-cutter]$ find . -name Makefile ./src/seviri_utils/Makefile ./src/Makefile ./src/geostat/Makefile ./src/xrit/Makefile ./src/sds2ppm/Makefile ./src/Hdf/Makefile ./MakefileOf course this is quite awkward and messy. A future release of cookie-cutter may test and use
HDF_INC
and HDF_LIB
environment variables shared between all the
Makefiles to build the software.
Get the latest release of cookie-cutter on the icare web site.
Go to the root directory of cookie-cutter and build the project with make:
[user@hostname cookie-cutter]$ pwd /path/to/cookie-cutter [user@hostname cookie-cutter]$ make
The project should be built. If the build process fails, check that you correctly installed the HDF Library (and configured cookie-cutter' Makefiles if HDF is installed in a non-standard emplacement). See above for details.