[vtk-developers] VTK 5.10 build error on mac

Fetzer, Andreas a.fetzer at Dkfz-Heidelberg.de
Fri Aug 17 04:24:54 EDT 2012


Hi,

today I switched on my Mac (10.7) to VTK 5.10. Compiling it with both gcc and clang delivers me a build error. Here is the stack trace:

[ 21%] Building C object Utilities/vtkpng/CMakeFiles/vtkpng.dir/pngrutil.c.o
Scanning dependencies of target vtktiff
/Volumes/Macintosh_HD_2/projects/mitk/Bugsquashing/bin/VTK-src/GUISupport/Qt/Chart/vtkQtBarChart.cxx:428:11: error: use of undeclared identifier 'isnan'; did you mean 'std::isnan'?
     if (isnan(py))
         ^~~~~
         std::isnan
/usr/include/c++/4.2.1/cmath:550:5: note: 'std::isnan' declared here
   isnan(_Tp __f) { return ::__gnu_cxx::__capture_isnan(__f); }
   ^
[ 21%] Building C object Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5Abtree2.c.o
[ 21%] 1 error generated.
Building C object Utilities/vtkpng/CMakeFiles/vtkpng.dir/pngvcrd.c.o
make[5]: *** [GUISupport/Qt/Chart/CMakeFiles/vtkQtChart.dir/vtkQtBarChart.cxx.o] Error 1
make[4]: *** [GUISupport/Qt/Chart/CMakeFiles/vtkQtChart.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....

Is this a know issue? I didn't find anything when I search for it. Any ideas?

Thanks very much,

Andreas





More information about the vtk-developers mailing list