[gdal-dev] netcdf option build error

William Kyngesburye woklist at kyngchaos.com
Tue Apr 29 14:00:45 EDT 2008


On Apr 29, 2008, at 12:31 PM, Jeshua Lacock wrote:

>
> On Apr 29, 2008, at 9:44 AM, Jeshua Lacock wrote:
>
>> That seems to help some, as now I only get one error:
>>
>> 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[4]: *** [../../o/GDapi.o] Error 1
>> make[3]: *** [lib-hdfeos] Error 2
>> make[2]: *** [hdf4-install-obj] Error 2
>> make[1]: *** [frmts-target] Error 2
>> make: *** [gdal] Error 2
>
> Note that I removed my entire HDF4 installation, followed the  
> instructions at http://trac.osgeo.org/gdal/wiki/HDF, disabled the  
> netcdf option for HDF4 and reinstalled HDF4, did a make clean in  
> gdal, and I am still stuck.

The current HDF4.2r2 has that --disable-netcdf configure flag I  
mentioned, there is no need for the -DHAVE_NETCDF mentioned on the  
wiki, and I don't know if the current HDF4 works with that old manual  
method.  Or the -fPIC (default on OSX already) or -lm (will be found  
in the automatically linked libSystem).

>

Other than that, that's about all I can offer.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole.  Now what  
does that remind me of?  Ah, yes - life."

- Marvin




More information about the gdal-dev mailing list