[vtk-developers] VTK 5.10 build error on mac
Fetzer, Andreas
a.fetzer at Dkfz-Heidelberg.de
Fri Aug 17 09:04:52 EDT 2012
Hi Ho,
thank you for your answer. I already tried inserting std:: in front of isnan() and it worked. The VTK build then finished without any more errors.
I am currently not using Xcode for development and I choose the gcc explicitly via cmake.
What is weird is that this error does not appear on the VTK dashboard even though there are also Mac OS X 10.7 machines compiling with clang.
We are using VTK as a 3rd party library (in MITK.) VTK is downloaded and build automatically during the MITK build and due to this issue our build fails too.
That is why I wanted to ask if this is a known issue to VTK and whether there will be a fix.
Regards
Andreas
On 17.08.2012, at 14:47, Ho Cheung wrote:
> Hi Fetzer,
>
> I've noticed the same exact error, the clang error message gives a good clue :)
>
> /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'?
>
> Try putting in the std:: in front of the isnan.
>
> I find it odd you experienced the same problem with GCC though, my compiler has no qualms with the missing std:: . How are you forcing make to use GCC instead of Clang?
>
> P.S. Pure gcc is gone in Xcode 4.2+, it was replaced with gcc-llvm which is GCC parser with LLVM code generator.
>
> Regards,
>
> Ho Cheung
> Research Assistant - University of Houston
> hocheung20 at gmail.com
> (832) 215-6347
>
> On Aug 17, 2012, at 3:24 AM, "Fetzer, Andreas" <a.fetzer at Dkfz-Heidelberg.de> wrote:
>
>> 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
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>
More information about the vtk-developers
mailing list