Hi all,<br><br>I am trying to compile a software that uses Insight header files and I get the output below.<br><br>It seems that there exist non-allowed conversions in ItkConceptChecking.h. Does anyone have more information on how to deal with this problem? I'm using the head revision of Insight in the repository.<br>
<br>Thank you very much.<br><br>Regards,<br>Rafa.<br><br>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
In file included from /usr/local/include/InsightToolkit/Common/itkMath.h:28:0,<br> from /usr/local/include/InsightToolkit/Common/itkIndex.h:24,<br> from /usr/local/include/InsightToolkit/Common/itkImageRegion.h:25,<br>
from /usr/local/include/InsightToolkit/Common/itkImageBase.h:25,<br> from /usr/local/include/InsightToolkit/Common/itkImage.h:20,<br> from /home/rafa/scath/NaviAPI/libs/vtkITK/vtkITKIslandMath.cxx:23:<br>
/usr/local/include/InsightToolkit/Common/itkConceptChecking.h: In member function 'void itk::Concept::IsInteger<T>::Constraints::constraints() [with T = double]':<br>/usr/local/include/InsightToolkit/Common/itkConceptChecking.h:686:3: instantiated from 'itk::Concept::IsInteger<double>'<br>
/usr/local/include/InsightToolkit/BasicFilters/itkConnectedComponentImageFilter.h:140:3: instantiated from 'itk::ConnectedComponentImageFilter<itk::Image<double, 3u>, itk::Image<double, 3u>, itk::Image<double, 3u> >'<br>
/home/rafa/scath/NaviAPI/libs/vtkITK/vtkITKIslandMath.cxx:108:44: instantiated from 'void vtkITKIslandMathExecute(vtkITKIslandMath*, vtkImageData*, vtkImageData*, T*, T*) [with T = double]'<br>/home/rafa/scath/NaviAPI/libs/vtkITK/vtkITKIslandMath.cxx:171:7: instantiated from here<br>
/usr/local/include/InsightToolkit/Common/itkConceptChecking.h:681:27: error: conversion from 'itk::Concept::IsInteger<double>::Constraints::TrueT' to non-scalar type 'itk::Concept::IsInteger<double>::Constraints::IntegralT' requested<br>
/usr/local/include/InsightToolkit/Common/itkConceptChecking.h: In member function 'void itk::Concept::IsInteger<T>::Constraints::constraints() [with T = float]':<br>/usr/local/include/InsightToolkit/Common/itkConceptChecking.h:686:3: instantiated from 'itk::Concept::IsInteger<float>'<br>
/usr/local/include/InsightToolkit/BasicFilters/itkConnectedComponentImageFilter.h:140:3: instantiated from 'itk::ConnectedComponentImageFilter<itk::Image<float, 3u>, itk::Image<float, 3u>, itk::Image<float, 3u> >'<br>
/home/rafa/scath/NaviAPI/libs/vtkITK/vtkITKIslandMath.cxx:108:44: instantiated from 'void vtkITKIslandMathExecute(vtkITKIslandMath*, vtkImageData*, vtkImageData*, T*, T*) [with T = float]'<br>/home/rafa/scath/NaviAPI/libs/vtkITK/vtkITKIslandMath.cxx:172:7: instantiated from here<br>
/usr/local/include/InsightToolkit/Common/itkConceptChecking.h:681:27: error: conversion from 'itk::Concept::IsInteger<float>::Constraints::TrueT' to non-scalar type 'itk::Concept::IsInteger<float>::Constraints::IntegralT' requested<br>
make[2]: *** [libs/vtkITK/CMakeFiles/vtkITK.dir/vtkITKIslandMath.o] Error 1<br>make[1]: *** [libs/vtkITK/CMakeFiles/vtkITK.dir/all] Error 2<br>make: *** [all] Error 2<br>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>