[vtk-developers] vtk_netcdf

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Jul 18 20:50:42 EDT 2005


Christopher Knox wrote:
> Hi,
> 
> I noticed that the NetCDF library has been checked into the Utilities  
> part of the vtk source base.
> 
> I have been working for a few months on the visualization of netcdf  
> data using vtk - although none of my netcdf data loaders would comply  
> with vtk coding styles - and I would be interested in helping with or  
> at least testing the netcdf functionality that is clearly planned for  
> vtk...
> 
> A small aside the CFLAG/CXXFLAG -fno-common needs to be passed when  
> building netcdf in order for  it to link properly on OS X - as  
> currently the addition of the netcdf libraries causes the vtk-cvs  build 
> to fail on OS X.

Technically we only need this on a few files. By any chance do you have 
the list ?

All you need to do is:

IF(APPLE)
   SET_SOURCE_FILES_PROPERTIES(
     "${VTKNETCDF_SOURCE_DIR}/foo.c"
     PROPERTIES COMPILE_FLAGS -fno-common)
ENDIF(APPLE)

Thanks
Mathieu



More information about the vtk-developers mailing list