[Insight-users] Cannot build InverseConsistentLandmarkRegistration

Jonathan Lo jlo at robots.ox.ac.uk
Wed Sep 28 13:07:41 EDT 2005


Hi all,

I am trying to build the InverseConsistentLandmarkRegistration with the 
application tree.  I have built it outside the insight_application.  
However, I have got the following building error:

---------------------------------------
Building object file CLReg.o...
/projects/mvl9/jlo/src/ITK-2.0.1/Code/Common/itkVector.h: In 
instantiation of `itk::Vector<itk::SmartPointer<itk::Image<float, 3> >, 3>':
/projects/mvl9/jlo/src/ITKApplications-2.2.0/InverseConsistentLandmarkRegistration/CLReg.cxx:49:   
instantiated from here
/projects/mvl9/jlo/src/ITK-2.0.1/Code/Common/itkVector.h:68: error: no type
   named `RealType' in `class
   itk::NumericTraits<itk::SmartPointer<itk::Image<float, 3> > >'
/projects/mvl9/jlo/src/ITK-2.0.1/Code/Common/itkVector.txx:226: error: 
no type
   named `RealType' in `class
   itk::NumericTraits<itk::SmartPointer<itk::Image<float, 3> > >'
/projects/mvl9/jlo/src/ITK-2.0.1/Code/Common/itkVector.txx:207: error: 
no type
   named `RealType' in `class
   itk::NumericTraits<itk::SmartPointer<itk::Image<float, 3> > >'
make[1]: *** [CLReg.o] Error 1
Building object file CLRegTest.o...
Building executable ./bin/CLRegTest...
make[1]: Target `all' not remade because of errors.
make: *** [default_target] Error 2
----------------------------------------

The error happens on the declaration of "itk::Vector<itk::Image<float 
,3>::Pointer,3> Disp", where "NumericTraits< ValueType >::RealType" 
(inside the definition of itkVector.h") is not defined for ValueType = 
itk::Image<float ,3>::Pointer.

I am just wondering if anyone has seen a similar problem?  I am using 
cmake v2.06, ITK v2.2.0 and building on linux.

Thank you very much in advance!

Regards,
Jonathan






More information about the Insight-users mailing list