[gdal-dev] compile gdal with hdf4 support

Otto Dassau otto.dassau at gmx.de
Thu Jun 12 07:05:34 EDT 2008


Hi, 

I fail to compile GDAL 1.5.2 with HDF4 support on OpenSuSE 10.3, can someone
give a hint?

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



More information about the gdal-dev mailing list