[gdal-dev] compile gdal with hdf4 support
Otto Dassau
otto.dassau at gmx.de
Fri Jun 13 09:53:06 EDT 2008
Hi Christian,
thanks a lot for your hint, it worked well so I finally used it to create
gdal 1.5.2 packages with hdf4 support for OpenSuSE. The packages are available
at the Application:/Geo/ repository:
regards,
Otto
On Fri, 13 Jun 2008 05:23:19 +0300
Balint Cristian <rezso at rdsor.ro> wrote:
>
> > GDapi.c:10873: error: 'MAX_VAR_DIMS' undeclared (first use in this
> > function) GDapi.c:10873: error: (Each undeclared identifier is reported
> > only once GDapi.c:10873: error: for each function it appears in.)
> > GDapi.c:10873: warning: unused variable 'dims'
>
> Hello Otto,
>
> Try run following snipped in your bash shell, make sure
> you are in root of gdal source folder:
>
> # bug 189337 c8
> # HAVE_NETCDF is not present anymore in hdf
> pushd frmts/hdf4
> for file in `find . -type f -name "*.*"`
> do
> sed -i \
> -e 's|MAX_NC_NAME|H4_MAX_NC_NAME|' \
> -e 's|MAX_VAR_DIMS|H4_MAX_VAR_DIMS|' \
> -e 's|MAX_NC_DIMS|H4_MAX_NC_DIMS|g' \
> -e 's|UNKNOWN|H4_UNKNOWN|g' \
> $file
> done
> popd
>
> This should fix it.
>
> //cristian
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list