[Insight-users] ITKv4 build error
Bill Lorensen
bill.lorensen at gmail.com
Tue Feb 7 10:44:55 EST 2012
Lisa,
What version of Visual Studio are you using?
Bill
On Tue, Feb 7, 2012 at 12:05 AM, Lisa Dean <lisadean.leo at gmail.com> wrote:
>
> 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
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
--
Unpaid intern in BillsBasement at noware dot com
More information about the Insight-users
mailing list