[Insight-users] Build errors on Linux

Uwe Köhler U.Koehler at gmx.de
Thu Jan 19 04:55:10 EST 2006


Hi folks,

have been using ITK for quite a while now and only recently came accross the 
following problems (all on a 32bit Linux SuSE 10.0 system with the newest CVS 
code).

gcc --version
gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)

Compilation of the test stops with the following error message:
Building CXX object 
Testing/Code/Algorithms/CMakeFiles/itkAlgorithmsPrintTest3.dir/itkAlgorithmsPrintTest3.o
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx: 
In member function ‘void itk::VoronoiSegmentationRGBImageFilter<TInputImage, 
TOutputImage>::SetInput(const typename 
itk::VoronoiSegmentationImageFilterBase<TInputImage, TOutputImage, 
itk::Image<unsigned char, 2u> >::InputImageType*) [with TInputImage = 
main(int, char**)::VectorImageType, TOutputImage = main(int, 
char**)::CharType]’:
/usr/local/src/Insight/Testing/Code/Algorithms/itkAlgorithmsPrintTest3.cxx:174:   
instantiated from here
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx:95: 
error: ‘class itk::VoronoiSegmentationRGBImageFilter<main(int, 
char**)::VectorImageType, main(int, char**)::CharType>’ has no member named 
‘SetSize’
/usr/local/src/Insight/Testing/Code/Algorithms/itkAlgorithmsPrintTest3.cxx:174:   
instantiated from here
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx:99: 
error: ‘class itk::VoronoiSegmentationRGBImageFilter<main(int, 
char**)::VectorImageType, main(int, char**)::CharType>’ has no member named 
‘GetSize’
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx: 
In member function ‘void itk::VoronoiSegmentationRGBImageFilter<TInputImage, 
TOutputImage>::TakeAPrior(const typename 
itk::VoronoiSegmentationImageFilterBase<TInputImage, TOutputImage, 
itk::Image<unsigned char, 2u> >::BinaryObjectImage*) [with TInputImage = 
main(int, char**)::VectorImageType, TOutputImage = main(int, 
char**)::CharType]’:
/usr/local/src/Insight/Testing/Code/Algorithms/itkAlgorithmsPrintTest3.cxx:174:   
instantiated from here
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx:221: 
error: invalid conversion from ‘const itk::Image<unsigned char, 2u>*’ to 
‘itk::Image<unsigned char, 2u>*’
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx:221: 
error:   initializing argument 1 of 
‘itk::ImageRegionIteratorWithIndex<TImage>::ImageRegionIteratorWithIndex(TImage*, 
const typename itk::ImageRegionConstIteratorWithIndex<TImage>::RegionType&) 
[with TImage = itk::Image<unsigned char, 2u>]’
/usr/local/src/Insight/Testing/Code/Algorithms/itkAlgorithmsPrintTest3.cxx:174:   
instantiated from here
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx:227: 
error: ‘class itk::VoronoiSegmentationRGBImageFilter<main(int, 
char**)::VectorImageType, main(int, char**)::CharType>’ has no member named 
‘GetSize’
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx:229: 
error: ‘class itk::VoronoiSegmentationRGBImageFilter<main(int, 
char**)::VectorImageType, main(int, char**)::CharType>’ has no member named 
‘GetSize’
/usr/local/src/Insight/Testing/Code/Algorithms/itkAlgorithmsPrintTest3.cxx:174:   
instantiated from here
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx:264: 
error: ‘class itk::VoronoiSegmentationRGBImageFilter<main(int, 
char**)::VectorImageType, main(int, char**)::CharType>’ has no member named 
‘GetSize’
/usr/local/src/Insight/Testing/Code/Algorithms/itkAlgorithmsPrintTest3.cxx:174:   
instantiated from here
/usr/local/src/Insight/Code/Algorithms/itkVoronoiSegmentationRGBImageFilter.txx:300: 
error: ‘class itk::VoronoiSegmentationRGBImageFilter<main(int, 
char**)::VectorImageType, main(int, char**)::CharType>’ has no member named 
‘GetSize’
make[2]: *** 
[Testing/Code/Algorithms/CMakeFiles/itkAlgorithmsPrintTest3.dir/itkAlgorithmsPrintTest3.o] 
Error 1
make[1]: *** 
[Testing/Code/Algorithms/CMakeFiles/itkAlgorithmsPrintTest3.dir/all] Error 2
make: *** [all] Error 2

Anything I am doing wrong?

Uwe
 


More information about the Insight-users mailing list