[Insight-users] RE: Installing ITK on Mac OS X

DZ neurosciencematt at yahoo.com
Thu Aug 2 18:09:07 EDT 2007


I removed fink, and simply downloaded the latest
version of cmake from www.cmake.org. I then downloaded
itk-3.2.0.tar.gz and itk-2.6.0.tar.gz.  I set the
following in ccmake:

BUILD_SHARED_LIBS      OFF
BUILD _EXAMPLES         OFF
BUILD_TESTING             OFF

itk-3.2.0 compiled with those settings, however
compliling itk-2.6.0 gave the following errors:

[ 56%] Building CXX object
Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o
/Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/vnl_math.cxx:
In function 'bool vnl_math_isinf(float)':
/Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/vnl_math.cxx:221:
error: '__isnand' was not declared in this scope
/Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/vnl_math.cxx:
In function 'bool vnl_math_isinf(double)':
/Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/vnl_math.cxx:223:
error: '__isnand' was not declared in this scope
/Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/vnl_math.cxx:
In function 'bool vnl_math_isinf(long double)':
/Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/vnl_math.cxx:225:
error: '__isnand' was not declared in this scope
make[2]: ***
[Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o]
Error 1
make[1]: *** [Utilities/vxl/core/vnl/CMake
Files/itkvnl.dir/all] Error 2
make: *** [all] Error 2



I initially downloaded itk-3.2.0.zip and set all the
settings above to ON and I got a compilation error,
but since I don't need any of the above settings on, I
guess it is not that important. Anyways, I
redownloaded itk-3.2.0.tar.gz because I read several
things saying that .tar.gz was a better format to
download. Why is .tar.gz better? I then set the
settings above to off and compiled and 3.2.0 worked,
but earlier itk releases did not as discussed above.
Why will earlier releases (2.6.0) not compile?
Although I will not use a earlier release of itk, I am
still interested in understanding why I got the above
errors. Also, older versions of cmake would not
compile itk-3.2.0, why is this?

Thanks so much for the help.


       
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433


More information about the Insight-users mailing list