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&#39;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 &#39;void itk::Concept::IsInteger&lt;T&gt;::Constraints::constraints() [with T = double]&#39;:<br>/usr/local/include/InsightToolkit/Common/itkConceptChecking.h:686:3:   instantiated from &#39;itk::Concept::IsInteger&lt;double&gt;&#39;<br>
/usr/local/include/InsightToolkit/BasicFilters/itkConnectedComponentImageFilter.h:140:3:   instantiated from &#39;itk::ConnectedComponentImageFilter&lt;itk::Image&lt;double, 3u&gt;, itk::Image&lt;double, 3u&gt;, itk::Image&lt;double, 3u&gt; &gt;&#39;<br>
/home/rafa/scath/NaviAPI/libs/vtkITK/vtkITKIslandMath.cxx:108:44:   instantiated from &#39;void vtkITKIslandMathExecute(vtkITKIslandMath*, vtkImageData*, vtkImageData*, T*, T*) [with T = double]&#39;<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 &#39;itk::Concept::IsInteger&lt;double&gt;::Constraints::TrueT&#39; to non-scalar type &#39;itk::Concept::IsInteger&lt;double&gt;::Constraints::IntegralT&#39; requested<br>
/usr/local/include/InsightToolkit/Common/itkConceptChecking.h: In member function &#39;void itk::Concept::IsInteger&lt;T&gt;::Constraints::constraints() [with T = float]&#39;:<br>/usr/local/include/InsightToolkit/Common/itkConceptChecking.h:686:3:   instantiated from &#39;itk::Concept::IsInteger&lt;float&gt;&#39;<br>
/usr/local/include/InsightToolkit/BasicFilters/itkConnectedComponentImageFilter.h:140:3:   instantiated from &#39;itk::ConnectedComponentImageFilter&lt;itk::Image&lt;float, 3u&gt;, itk::Image&lt;float, 3u&gt;, itk::Image&lt;float, 3u&gt; &gt;&#39;<br>
/home/rafa/scath/NaviAPI/libs/vtkITK/vtkITKIslandMath.cxx:108:44:   instantiated from &#39;void vtkITKIslandMathExecute(vtkITKIslandMath*, vtkImageData*, vtkImageData*, T*, T*) [with T = float]&#39;<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 &#39;itk::Concept::IsInteger&lt;float&gt;::Constraints::TrueT&#39; to non-scalar type &#39;itk::Concept::IsInteger&lt;float&gt;::Constraints::IntegralT&#39; 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>