[vtk-developers] [VTK 0013372]: VTK 5.10 Builderror on Mac OS X 10.7
Mantis Bug Tracker
mantis at public.kitware.com
Mon Aug 20 02:40:44 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.vtk.org/Bug/view.php?id=13372
======================================================================
Reported By: Andreas Fetzer
Assigned To:
======================================================================
Project: VTK
Issue ID: 13372
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: backlog
Project: Kitware
Type: incorrect functionality
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 2012-08-20 02:40 EDT
Last Modified: 2012-08-20 02:40 EDT
======================================================================
Summary: VTK 5.10 Builderror on Mac OS X 10.7
Description:
Building VTK 5.10 using both GCC and CLANG delivers one 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....
Putting std:: in front of the isnan() call solves this issue and the build
completes without any more errors.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-08-20 02:40 Andreas Fetzer New Issue
======================================================================
More information about the vtk-developers
mailing list