[Insight-users] Please help with ITK 4.2 on Windows Vista: Build Errors.

Constantine Zakkaroff mnkz at leeds.ac.uk
Thu Jul 26 07:55:33 EDT 2012


Hello ALL.

I've been trying to build ITK 4.2 on Win Vista with VS2008.

Then there were a couple errors, repeated a few times:

error C2665: 'itk::NumericTraits<T>::ZeroValue' : none of the 2 
overloads could convert all the argument types 
c:\workspace\insighttoolkit-4.2.0\modules\core\imagefunction\include\itkVectorMeanImageFunction.hxx 
90
error C2665: 'itk::NumericTraits<T>::GetLength' : none of the 2 
overloads could convert all the argument types 
c:\workspace\insighttoolkit-4.2.0\modules\core\imagefunction\include\itkVectorMeanImageFunction.hxx 
99

and

error C2668: 'fabs' : ambiguous call to overloaded function 
c:\workspace\insighttoolkit-4.2.0\modules\filtering\distancemap\include\itkIsoContourDistanceImageFilter.hxx 
383
error C2668: 'fabs' : ambiguous call to overloaded function 
c:\workspace\insighttoolkit-4.2.0\modules\filtering\distancemap\include\itkIsoContourDistanceImageFilter.hxx 
387
error C2668: 'fabs' : ambiguous call to overloaded function

I looked at the code and those weren't hard to fix. I corrected those 
and they don't come up any more.

However itktiff project build fails because the file <ITK-4.2.0 Build 
Path>\Modules\ThirdParty\TIFF\src\itktiff\tif_config.h doesn't get 
generated correctly; type sizes don't get defined and remain blank.

For example:

297: #define SIZEOF_UNSIGNED_INT
...
300: #define SIZEOF_UNSIGNED_LONG

How do I go about fixing this? Any suggestions would be appreciated.

Regards,
Constantine



More information about the Insight-users mailing list