[Insight-users] Compiling errors in ITK source from CD-ROM and CVS repository.

Yang Wang dietpaopao at netscape.net
Mon, 26 Apr 2004 18:54:55 -0400


Hi, Luis

When I try to compile ITK from source code in the CD-ROM with Visual 
Studio .NET,
I have the following result:

---------------------- Done ----------------------

    Build: 222 succeeded, 1 failed, 0 skipped

The errors comes from the following:

------ Build started: Project: ITKCommonTcl, Configuration: Debug Win32 
------

Compiling...
wrap_ITKCommonBaseTcl.cxx
wrap_ITKCommonBaseTcl.cxx(1218) : error C2660: 'itk::LightObject::Print' 
: function does not take 2 arguments
wrap_ITKCommonBaseTcl.cxx(2892) : error C2039: 
'GetReleaseDataBeforeUpdateFlag' : is not a member of 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'
wrap_ITKCommonBaseTcl.cxx(2919) : error C2662: 
'itk::ProcessObject::GetReleaseDataFlag' : cannot convert 'this' pointer 
from 'const itk::ProcessObject' to 'itk::ProcessObject &'
        Conversion loses qualifiers
wrap_ITKCommonBaseTcl.cxx(2977) : error C2248: 
'itk::ProcessObject::PrepareOutputs' : cannot access protected member 
declared in class 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(283) : see declaration of 
'itk::ProcessObject::PrepareOutputs'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'
wrap_ITKCommonBaseTcl.cxx(3031) : error C2039: 
'ReleaseDataBeforeUpdateFlagOff' : is not a member of 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'
wrap_ITKCommonBaseTcl.cxx(3057) : error C2039: 
'ReleaseDataBeforeUpdateFlagOn' : is not a member of 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'
wrap_ITKCommonBaseTcl.cxx(3249) : error C2039: 
'SetReleaseDataBeforeUpdateFlag' : is not a member of 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'
wrap_ITKCommonBaseTcl.cxx(6403) : error C2039: 'GetUpdateMTime' : is not 
a member of 'itk::DataObject'
        d:\ITK\Code\Common\itkDataObject.h(135) : see declaration of 
'itk::DataObject'
wrap_ITKCommonBaseTcl.cxx(7798) : error C2662: 
'itk::DataObject::GetReleaseDataFlag' : cannot convert 'this' pointer 
from 'const itk::DataObject' to 'itk::DataObject &'
        Conversion loses qualifiers
wrap_ITKCommonBaseTcl.cxx(7883) : error C2039: 'GetUpdateMTime' : is not 
a member of 'itk::DataObject'
        d:\ITK\Code\Common\itkDataObject.h(135) : see declaration of 
'itk::DataObject'
wrap_ITKCommonBaseTcl.cxx(9050) : error C2039: 
'GetReleaseDataBeforeUpdateFlag' : is not a member of 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'
wrap_ITKCommonBaseTcl.cxx(9135) : error C2248: 
'itk::ProcessObject::PrepareOutputs' : cannot access protected member 
declared in class 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(283) : see declaration of 
'itk::ProcessObject::PrepareOutputs'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'
wrap_ITKCommonBaseTcl.cxx(9189) : error C2039: 
'ReleaseDataBeforeUpdateFlagOff' : is not a member of 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'
wrap_ITKCommonBaseTcl.cxx(9215) : error C2039: 
'ReleaseDataBeforeUpdateFlagOn' : is not a member of 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'
wrap_ITKCommonBaseTcl.cxx(9407) : error C2039: 
'SetReleaseDataBeforeUpdateFlag' : is not a member of 'itk::ProcessObject'
        D:\ITK\Code\Common\itkProcessObject.h(78) : see declaration of 
'itk::ProcessObject'

Build log was saved at 
"file://d:\ITKbin\Wrapping\CSwig\Common\Debug\BuildLog.htm"
ITKCommonTcl - 15 error(s), 0 warning(s)

However, even it get errors like these, I still can run examples from 
the ITK Example direcotory.
Can you tell me what is going wrong?

Plus, I get a strange thing happeded today. When I try to compile 
\Insight that checkout from CVS repository,
it constantly showed error messages, almost in every project, and I have 
to manually terminate it.
But for the code that I copy from the Disc, only one (the above) got 
error messages. Don't know why?

Thanks for any help.

Yours,
Casper