[gdal-dev] compile gdal with hdf4 support
jluis at ualg.pt
jluis at ualg.pt
Thu Jun 12 23:03:48 EDT 2008
Quoting Otto Dassau <otto.dassau at gmx.de>:
> Hi,
>
> I fail to compile GDAL 1.5.2 with HDF4 support on OpenSuSE 10.3, can someone
> give a hint?
Otto,
This thing is highly mysterious. About a week ago I was able to
compile 1.5.2RC2 but now I get the same error (and the same with the
trunk version).
The missing macros are defined in netcdf.h and I don't understand how
they are fund sometimes and not others. So end of the story. To end
the suffering
add this to HdfEosDef.h
#ifndef MAX_VAR_DIMS /* defined in netcdf.h */
#define MAX_VAR_DIMS 1024
#endif
and this to hdf4dataset.h
#ifndef MAX_VAR_DIMS /* defined in netcdf.h */
#define MAX_VAR_DIMS 1024
#endif
#ifndef MAX_NC_NAME
#define MAX_NC_NAME 256
#endif
#ifndef MAX_NC_DIMS
#define MAX_NC_DIMS 5000
#endif
Joaquim Luis
>
> libtool: compile: gcc -g -O2 -Wall -Wdeclaration-after-statement
> -I/usr/src/packages/BUILD/gdal-1.5.2/port
> -I/usr/src/packages/BUILD/gdal-1.5.2/gcore
> -I/usr/src/packages/BUILD/gdal-1.5.2/alg
> -I/usr/src/packages/BUILD/gdal-1.5.2/ogr
> -I/usr/src/packages/BUILD/gdal-1.5.2/ogr/ogrsf_frmts
> -I/usr/src/packages/BUILD/gdal-1.5.2/ogr -I. -DOGR_ENABLED
> -I/usr/src/packages/BUILD/gdal-1.5.2/port -c EHapi.c -o ../../o/EHapi.o
>> /dev/null 2>&1
> /bin/sh /usr/src/packages/BUILD/gdal-1.5.2/libtool --mode=compile --tag=CC
> /gcc -g -O2 -Wall -Wdeclaration-after-statement
> /-I/usr/src/packages/BUILD/gdal-1.5.2/port
> /-I/usr/src/packages/BUILD/gdal-1.5.2/gcore
> /-I/usr/src/packages/BUILD/gdal-1.5.2/alg
> /-I/usr/src/packages/BUILD/gdal-1.5.2/ogr
> /-I/usr/src/packages/BUILD/gdal-1.5.2/ogr/ogrsf_frmts
> /-I/usr/src/packages/BUILD/gdal-1.5.2/ogr -I. -DOGR_ENABLED
> /-I/usr/src/packages/BUILD/gdal-1.5.2/port -c -o ../../o/GDapi.o GDapi.c
> libtool: compile: gcc -g -O2 -Wall -Wdeclaration-after-statement
> -I/usr/src/packages/BUILD/gdal-1.5.2/port
> -I/usr/src/packages/BUILD/gdal-1.5.2/gcore
> -I/usr/src/packages/BUILD/gdal-1.5.2/alg
> -I/usr/src/packages/BUILD/gdal-1.5.2/ogr
> -I/usr/src/packages/BUILD/gdal-1.5.2/ogr/ogrsf_frmts
> -I/usr/src/packages/BUILD/gdal-1.5.2/ogr -I. -DOGR_ENABLED
> -I/usr/src/packages/BUILD/gdal-1.5.2/port -c GDapi.c -fPIC -DPIC -o
> ../../o/.libs/GDapi.o
> GDapi.c: In function 'GDsdid':
> 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'
> make[3]: *** [../../o/GDapi.o] Error 1
> make[3]: Leaving directory
> `/usr/src/packages/BUILD/gdal-1.5.2/frmts/hdf4/hdf-eos'
> make[2]: *** [lib-hdfeos] Error 2
> make[2]: Leaving directory `/usr/src/packages/BUILD/gdal-1.5.2/frmts/hdf4'
> make[1]: *** [hdf4-install-obj] Error 2
> make[1]: Leaving directory `/usr/src/packages/BUILD/gdal-1.5.2/frmts'
> make: *** [frmts-target] Error 2
>
> thanks a lot,
> Otto
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the gdal-dev
mailing list