[Insight-developers] WrapITK build error
Kent Williams
kent at psychiatry.uiowa.edu
Thu Jul 20 16:11:24 EDT 2006
I'm a masochist and compile WrapITK with everything turned on, and now
I'm getting this error with gcc 4.1 on Linux:
Building CXX object
Modules/Compose/CMakeFiles/ComposeTcl.dir/wrap_itkVectorIndexSelectionCastImageFilterTcl.o
.../InsightToolkit/BasicFilters/itkVectorIndexSelectionCastImageFilter.h:
In member function ‘void
itk::VectorIndexSelectionCastImageFilter<TInputImage,
TOutputImage>::BeforeThreadedGenerateData() [with TInputImage =
itk::VectorImage<long unsigned int, 3u>, TOutputImage = itk::Image<long
unsigned int, 3u>]’:
/scratch/kent/KWW/build/WrapITK/Modules/Compose/wrap_itkVectorIndexSelectionCastImageFilterTcl.cxx:84721:
instantiated from here
.../InsightToolkit/BasicFilters/itkVectorIndexSelectionCastImageFilter.h:136:
error: no type named ‘ScalarRealType’ in ‘class
itk::NumericTraits<itk::VariableLengthVector<long unsigned int> >’
.../InsightToolkit/BasicFilters/itkVectorIndexSelectionCastImageFilter.h:139:
error: no type named ‘ScalarRealType’ in ‘class
itk::NumericTraits<itk::VariableLengthVector<long unsigned int> >’
.../InsightToolkit/BasicFilters/itkVectorIndexSelectionCastImageFilter.h:
In member function ‘void
itk::VectorIndexSelectionCastImageFilter<TInputImage,
TOutputImage>::BeforeThreadedGenerateData() [with TInputImage =
itk::VectorImage<long unsigned int, 2u>, TOutputImage = itk::Image<long
unsigned int, 2u>]’:
/scratch/kent/KWW/build/WrapITK/Modules/Compose/wrap_itkVectorIndexSelectionCastImageFilterTcl.cxx:84721:
instantiated from here
.../InsightToolkit/BasicFilters/itkVectorIndexSelectionCastImageFilter.h:136:
error: no type named ‘ScalarRealType’ in ‘class
itk::NumericTraits<itk::VariableLengthVector<long unsigned int> >’
.../InsightToolkit/BasicFilters/itkVectorIndexSelectionCastImageFilter.h:139:
error: no type named ‘ScalarRealType’ in ‘class
itk::NumericTraits<itk::VariableLengthVector<long unsigned int> >’
make[3]: ***
[Modules/Compose/CMakeFiles/ComposeTcl.dir/wrap_itkVectorIndexSelectionCastImageFilterTcl.o]
Error 1
make[3]: Target `Modules/Compose/CMakeFiles/ComposeTcl.dir/build' not
remade because of errors.
What is happening is that in itkNumericTraits.h is that ScalarRealType
and RealType are only defined for a particular revision of Visual C++.
It seems like the itk::VectorIndexSelectionCastImageFilter can't handle
itk::VariableLengthVector<long unsigned int> as the pixel type.
More information about the Insight-developers
mailing list