GRASS GIS on Mac OS X

HDF

Last change: 2005/7/16


HDF version: 4.2r1
hdf.ncsa.uiuc.edu

Notes: There are 2 versions of HDF 4.x and 5.x, they are different and incompatible. Get the 4.x version. This only builds static. If you are adding HDF to GDAL/OGR or are updating HDF, you must rebuild GDAL afterwards.

In a Terminal type:

$ cd path_to_folder_containing_hdf_source.tar.gz
$ tar -zxf HDF4.2r1.tar.gz

There is one configuration patch to do. Edit configure. Find a line that says DEFS=-DHAVE_CONFIG_H and change it to:

DEFS="-DHAVE_CONFIG_H -DHAVE_NETCDF".

Then continue:

$ cd HDF4.2r1
$ ./configure --prefix=path_to_folder_containing_hdf_source/hdf4-darwin --disable-fortran --with-jpeg=/usr/local
$ make
$ make install

Note: what you will get is the everything installed at the same location as the hdf source folder, in a subfolder named hdf4-darwin. If you want to run any of the programs, you will have to type the full path to them.


© 2003-2005 GRASS Development Team
Imprint | Comments about this page
Last change: $Date$