[Insight-users] ITKv4 build error

Lisa Dean lisadean.leo at gmail.com
Tue Feb 7 00:05:22 EST 2012


Hello ITK users,


Kindly help me solve this problem that I'm facing.
I've worked with ITKv3 for some time and did not experience any problem
while building it for the first time. I've tried building ITKv4 in the same
manner but many problems crop up. At first, while generating the bin file
using CMake it showed many errors. Finally after deselecting 'Build
Examples' and 'Build Shared Libraries', the configuration and generation
were completed without errors. So, first of all I must ask, what should I
do if I want to build the examples too? How is the process of building
ITKv4 different from that of ITKv3?


The next problem arose when I opened ALL BUILD using visual studio. I
started the build process as usual but once again 36 builds failed. I
cannot make heads or tails from the error messages. Please see the error
message below and suggest what could be done.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------ Build started: Project: ITKCommon, Configuration: Release x64 ------
Compiling...
itkNumericTraitsDiffusionTensor3DPixel.cxx
d:\itk\source\modules\core\common\include\itkVector.hxx(146) : error C2244:
'itk::Vector<T,NVectorDimension>::GetSquaredNorm' : unable to match
function definition to an existing declaration
        d:\itk\source\modules\core\common\include\itkVector.h(211) : see
declaration of 'itk::Vector<T,NVectorDimension>::GetSquaredNorm'
        definition
        'Vector<T,NVectorDimension>::RealValueType
itk::Vector<T,NVectorDimension>::GetSquaredNorm(void) const'
        existing declarations
        'NumericTraits<T>::RealType
itk::Vector<T,NVectorDimension>::GetSquaredNorm(void) const'
d:\itk\source\modules\core\common\include\itkVector.hxx(157) : error C2244:
'itk::Vector<T,NVectorDimension>::GetNorm' : unable to match function
definition to an existing declaration
        d:\itk\source\modules\core\common\include\itkVector.h(208) : see
declaration of 'itk::Vector<T,NVectorDimension>::GetNorm'
        definition
        'Vector<T,NVectorDimension>::RealValueType
itk::Vector<T,NVectorDimension>::GetNorm(void) const'
        existing declarations
        'NumericTraits<T>::RealType
itk::Vector<T,NVectorDimension>::GetNorm(void) const'
d:\itk\source\modules\core\common\include\itkCovariantVector.hxx(187) :
error C2244: 'itk::CovariantVector<T,NVectorDimension>::GetSquaredNorm' :
unable to match function definition to an existing declaration
        d:\itk\source\modules\core\common\include\itkCovariantVector.h(225)
: see declaration of
'itk::CovariantVector<T,NVectorDimension>::GetSquaredNorm'
        definition
        'CovariantVector<T,NVectorDimension>::RealValueType
itk::CovariantVector<T,NVectorDimension>::GetSquaredNorm(void) const'
        existing declarations
        'NumericTraits<T>::RealType
itk::CovariantVector<T,NVectorDimension>::GetSquaredNorm(void) const'
d:\itk\source\modules\core\common\include\itkCovariantVector.hxx(198) :
error C2244: 'itk::CovariantVector<T,NVectorDimension>::GetNorm' : unable
to match function definition to an existing declaration
        d:\itk\source\modules\core\common\include\itkCovariantVector.h(216)
: see declaration of 'itk::CovariantVector<T,NVectorDimension>::GetNorm'
        definition
        'CovariantVector<T,NVectorDimension>::RealValueType
itk::CovariantVector<T,NVectorDimension>::GetNorm(void) const'
        existing declarations
        'NumericTraits<T>::RealType
itk::CovariantVector<T,NVectorDimension>::GetNorm(void) const'

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

There were more of these messages but they seem kind of similar to the ones
above.

Please help ASAP.


Thanks a lot
Lisa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120207/fe1fce3b/attachment.htm>


More information about the Insight-users mailing list