[gdal-dev] netcdf option build error

Jeshua Lacock jeshua at OpenOSX.com
Tue Apr 29 17:20:58 EDT 2008


On Apr 29, 2008, at 2:39 PM, William Kyngesburye wrote:

> You should probably add __i386__ to the define tests here.

I am not sure if I fully understand, should I add to line 66:

	&& !defined(__i386__)

Or if that is not correct, can you email me a patch?

>>> I don't know if this is enough to affect the definition of  
>>> MAX_VAR_DIMS or not.  I do see that MAX_VAR_DIMS is a backward- 
>>> compatibility define for Netcdf v2 - netcdf.h lines 912+.  The  
>>> modern version is NC_MAX_VAR_DIMS.  Did you use --disable-v2 when  
>>> configuring netcdf?
>>
>> No I did not try disable-v2, do you think I should?
>>
> No - the GDAL HDF4 driver is expecting the v2 name.

Ah; I see, thanks!

>> Thanks for your help - if you are interested, I would be happy to  
>> pay you to SSH in and take a look...
>
>
> It's a hobby for me.  And all I can offer is what I've found that  
> works for me, I don't know if poking around in your setup will help.
>
> Note: I've been *slowly* updating my build instructions on my site,  
> but I haven't gotten to the GIS stuff yet.  Here's a quick-n-dirty  
> summary of the relevant bits to your problem (assuming everything  
> needed in /usr/local, otherwise a lot of --with options needed):
>
> - netcdf
>
> ./configure --disable-f77 --disable-cxx --disable-examples --disable- 
> dependency-tracking --disable-utilities
>
> - HDF4 4.2r2
>
> hconv.h: apply the endian patch
>
> ./configure --disable-fortran --disable-dependency-tracking -- 
> disable-netcdf
>
> - GDAL (fill in other options you need):
>
> ./configure --with-threads --without-grass --with-netcdf=/usr/local  
> --with-hdf4=/usr/local


Thanks, I was not disabling most of those options, so I will try now...


Thanks again,

Jeshua Lacock, Owner
<http://OpenOSX.com>
phone: 877.240.1364



More information about the gdal-dev mailing list