[Gdal-dev] NetCDF on Windows

Howard Butler hobu at iastate.edu
Mon Jan 12 11:33:35 EST 2004


List,

I am please to report that I was able to compile NetCDF support for GDAL 
using the windows binary that I found on 
ftp://gmt.soest.hawaii.edu/pub/gmt/ that included a dll and .lib file.

Once compiled, however, I am unable to see the NetCDF driver listed when I 
print the drivers list using Python.  What other compiler symbols do I need 
to set to ensure that the driver built?

Howard

---------------------------------------------------
#Settings for nmake.opt
NETCDF_SETTING=yes
NETCDF_LIB = c:\gdal\netcdf\lib\netcdf.lib
NETCDF_INC_DIR = c:\gdal\netcdf\include
---------------------------------------------------

---------------------------------------------------
#makefile.vc for NetCDF
OBJ     =       netcdfdataset.obj

EXTRAFLAGS =    -I$(NETCDF_INC_DIR)

GDAL_ROOT       =       ..\..

!INCLUDE $(GDAL_ROOT)\nmake.opt

default:        $(OBJ)
         copy *.obj ..\o

clean:
         -del *.obj
---------------------------------------------------



Center for Survey Statistics and Methodology
Iowa State University
Ames, IA 50201 




More information about the Gdal-dev mailing list