[Insight-users] Two Problems with ITK 2.2.0

Siwei Yang s.yang at dkfz-heidelberg.de
Tue Nov 22 14:08:51 EST 2005


Dear all,
I 'm working on : AMD Opteron, 64 bit, 1792.785Mh ; SUSE 9.1

Now I have 2 problems with ITK 2.2.0:
1.
I want to use ITK 2.2.0 which is the current release. But after I set 
the BUILD_EXAMPLES as ON  in Cmake, I get the following errors. Does 
anybody have the same problem?
............
...........
...........
/data/src/InsightToolkit-2.2.0/Examples/DataRepresentation/Mesh: 
building default_target
Building dependencies. cmake.depends...
/data/src/InsightToolkit-2.2.0/Examples/DataRepresentation/Path: 
building default_target
Building dependencies. cmake.depends...
/data/src/InsightToolkit-2.2.0/Examples/Filtering: building default_target
Building dependencies. cmake.depends...
Building executable 
/data/src/InsightToolkit-2.2.0/bin/FFTImageFilterFourierDomainFiltering...
FFTImageFilterFourierDomainFiltering.o(.gnu.linkonce.t._ZN3itk24BinaryFunctorImageFilterINS_5ImageISt7complexIfELj2EEENS1_IhLj2EEES4_NS_7Functor9MaskInputIS3_hS3_EEEC2Ev+0x18): 
In function 
`itk::BinaryFunctorImageFilter<itk::Image<std::complex<float>, 
(unsigned)2>, itk::Image<unsigned char, (unsigned)2>, 
itk::Image<std::complex<float>, (unsigned)2>, 
itk::Functor::MaskInput<std::complex<float>, unsigned char, 
std::complex<float> > >::BinaryFunctorImageFilter[not-in-charge]()':
: undefined reference to `itk::NumericTraits<std::complex<float> >::Zero'
FFTImageFilterFourierDomainFiltering.o(.gnu.linkonce.t._ZN3itk24BinaryFunctorImageFilterINS_5ImageISt7complexIfELj2EEENS1_IhLj2EEES4_NS_7Functor9MaskInputIS3_hS3_EEEC2Ev+0x1e): 
In function 
`itk::BinaryFunctorImageFilter<itk::Image<std::complex<float>, 
(unsigned)2>, itk::Image<unsigned char, (unsigned)2>, 
itk::Image<std::complex<float>, (unsigned)2>, 
itk::Functor::MaskInput<std::complex<float>, unsigned char, 
std::complex<float> > >::BinaryFunctorImageFilter[not-in-charge]()':
: undefined reference to `itk::NumericTraits<std::complex<float> >::Zero'
FFTImageFilterFourierDomainFiltering.o(.gnu.linkonce.t._ZN3itk24BinaryFunctorImageFilterINS_5ImageISt7complexIfELj2EEENS1_IhLj2EEES4_NS_7Functor9MaskInputIS3_hS3_EEEC1Ev+0x18): 
In function 
`itk::BinaryFunctorImageFilter<itk::Image<std::complex<float>, 
(unsigned)2>, itk::Image<unsigned char, (unsigned)2>, 
itk::Image<std::complex<float>, (unsigned)2>, 
itk::Functor::MaskInput<std::complex<float>, unsigned char, 
std::complex<float> > >::BinaryFunctorImageFilter[in-charge]()':
: undefined reference to `itk::NumericTraits<std::complex<float> >::Zero'
FFTImageFilterFourierDomainFiltering.o(.gnu.linkonce.t._ZN3itk24BinaryFunctorImageFilterINS_5ImageISt7complexIfELj2EEENS1_IhLj2EEES4_NS_7Functor9MaskInputIS3_hS3_EEEC1Ev+0x1e): 
In function 
`itk::BinaryFunctorImageFilter<itk::Image<std::complex<float>, 
(unsigned)2>, itk::Image<unsigned char, (unsigned)2>, 
itk::Image<std::complex<float>, (unsigned)2>, 
itk::Functor::MaskInput<std::complex<float>, unsigned char, 
std::complex<float> > >::BinaryFunctorImageFilter[in-charge]()':
: undefined reference to `itk::NumericTraits<std::complex<float> >::Zero'
collect2: ld returned 1 exit status
make[5]: *** 
[/data/src/InsightToolkit-2.2.0/bin/FFTImageFilterFourierDomainFiltering] 
Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Filtering] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Examples] Error 2
make: *** [default_target] Error 2
-------------------------------------------------------------------------------
2.
Ok , you can say,  I don't need these examples. So I set the 
BUILD_EXAMPLES as OFF, the compilation and installation was successfull.
But using this version (ITK 2.2.0) I get run time error "Segmentation 
fault" at the postion where a image should be read. Namely, when I 
called the function FileReader->Update(),  the program crashed. And the 
same program can run with the older verion without any problems.  Does 
anyone experience that before?


Thanks
Siwei



More information about the Insight-users mailing list