26 | | The HDF4 libraries include an implementation of the netcdf api which can access hdf files. If building with HDF4 and NetCDF it is necessary to build the HDF library with this disable. This can be accomplished by defining the macro HAVE_NETCDF when building the HDF libraries. I normally accomplish this by configuring the HDF4 libraries as follows: |
| 26 | The HDF4 libraries include an implementation of the netcdf api which can access hdf files. If building with HDF4 and NetCDF it is necessary to build the HDF library with this disabled. |
| 27 | |
| 28 | If using Ubuntu/Debian dev packages you must make sure that the libhdf4-alt-dev package is installed instead of the libhdf4-dev package. |
| 29 | |
| 30 | If building HDF4 manually you have to add "--disable-netcdf" to "configure" and HDF4 will move its embedded NetCDF functions in a different private namespace to avoid name clashes. |
| 31 | |
| 32 | |
| 33 | {{{ |
| 34 | ./configure --disable-netcdf --disable-fortran |
| 35 | }}} |
| 36 | |
| 37 | If building older versions of HDF4 (before HDF4.2r3) the macro HAVE_NETCDF needs to be defined instead. This can be accomplished by configuring the HDF4 libraries as follows: |