[Insight-users] make error with itkvnl when building itk2.8.1

Obada Mahdi omahdi at gmx.de
Sun Oct 8 17:59:01 EDT 2006


Hi Angela,

Angela.Y Wang wrote:
> I am persistently getting the following error when I  build ITK 2.8.1 on
> Moc OSX with ccmake 2.4.3..
> I am using gcc 4.0.  Can't figure out what the problem is - I am just
> following the tutorial.  Please help.
> It terminates the build at 56% with the error message:
> 
> Scanning dependencies of target itkvnl
[...]
> [ 56%] Building CXX object
> Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o
> /Developer/itk/Utilities/vxl/core/vnl/vnl_math.cxx: In function 'bool
> vnl_math_isinf(float)':
> /Developer/itk/Utilities/vxl/core/vnl/vnl_math.cxx:221: error:
> '__isnand' was not declared in this scope
[...]

this is a known issue with newer compiler tools, as shipped with Xcode 
2.4.  According to the bug tracker, this problem has been fixed in ITK 
CVS head:
http://www.itk.org/Bug/bug.php?op=show&bugid=3655&pos=1

If you do not want to use the CVS version, you can also correct the 
problem manually by following one of the suggestions mentioned in the 
following thread:
http://public.kitware.com/pipermail/insight-users/2006-August/019079.html

Remo Mueller on Wed Aug 16 12:30:49 EDT 2006:
>  finally got ITK to compile by changing line 66 in vnl_math.cxx from:
> 
> 	#define isnan(x) __isnand((double)x)
> 
> to
> 
> 	#define isnan(x) __inline_isnand((double)x)
> 
> This line is defined in the #if defined (__APPLE__) code block.


HTH,

Obada


More information about the Insight-users mailing list