[Insight-users] build errors in windows (ITK-4.0 GIT version)
Juan Cardelino
juan.cardelino at gmail.com
Fri Jun 24 13:27:45 EDT 2011
No problem, glad to help. A small precision: that was only a sample
error, I got that error many times, in different classes.
On Fri, Jun 24, 2011 at 2:17 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
> Juan,
>
> Thank you for reporting that installing the service pack 1 solved the
> problems you were having.
>
> Alex,
>
> Perhaps this will solve the problems we are seeing on your test system
> with Visual Studio 2005.
>
> I duplicated the initial errors Juan reported in this email thread below.
>
> Thanks,
> Cory
>
> ---------------------------- ERROR MESSAGE ----------------------------
>
> 13>------ Build started: Project: itktiff, Configuration: Debug Win32 ------
> 13>Compiling...
> 13>tif_fax3sm.c
> 13>tif_win32.c
> 12>itkNumericTraitsDiffusionTensor3DPixel.cxx
> 13>tif_jpeg.c
> 12>d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkVector.txx(146)
> : error C2244: 'itk::Vector<T,NVectorDimension>::GetSquaredNorm' :
> unable to match function definition to an existing declaration
> 12> d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkVector.h(211)
> : see declaration of 'itk::Vector<T,NVectorDimension>::GetSquaredNorm'
> 12> definition
> 12> 'Vector<T,NVectorDimension>::RealValueType
> itk::Vector<T,NVectorDimension>::GetSquaredNorm(void) const'
> 12> existing declarations
> 12> 'NumericTraits<T>::RealType
> itk::Vector<T,NVectorDimension>::GetSquaredNorm(void) const'
> 12>d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkVector.txx(157)
> : error C2244: 'itk::Vector<T,NVectorDimension>::GetNorm' : unable to
> match function definition to an existing declaration
> 12> d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkVector.h(208)
> : see declaration of 'itk::Vector<T,NVectorDimension>::GetNorm'
> 12> definition
> 12> 'Vector<T,NVectorDimension>::RealValueType
> itk::Vector<T,NVectorDimension>::GetNorm(void) const'
> 12> existing declarations
> 12> 'NumericTraits<T>::RealType
> itk::Vector<T,NVectorDimension>::GetNorm(void) const'
> 12>d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkCovariantVector.txx(187)
> : error C2244: 'itk::CovariantVector<T,NVectorDimension>::GetSquaredNorm'
> : unable to match function definition to an existing declaration
> 12> d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkCovariantVector.h(225)
> : see declaration of
> 'itk::CovariantVector<T,NVectorDimension>::GetSquaredNorm'
> 12> definition
> 12> 'CovariantVector<T,NVectorDimension>::RealValueType
> itk::CovariantVector<T,NVectorDimension>::GetSquaredNorm(void) const'
> 12> existing declarations
> 12> 'NumericTraits<T>::RealType
> itk::CovariantVector<T,NVectorDimension>::GetSquaredNorm(void) const'
> 12>d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkCovariantVector.txx(198)
> : error C2244: 'itk::CovariantVector<T,NVectorDimension>::GetNorm' :
> unable to match function definition to an existing declaration
> 12> d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkCovariantVector.h(216)
> : see declaration of
> 'itk::CovariantVector<T,NVectorDimension>::GetNorm'
> 12> definition
> 12> 'CovariantVector<T,NVectorDimension>::RealValueType
> itk::CovariantVector<T,NVectorDimension>::GetNorm(void) const'
> 12> existing declarations
> 12> 'NumericTraits<T>::RealType
> itk::CovariantVector<T,NVectorDimension>::GetNorm(void) const'
> 12>d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkSymmetricSecondRankTensor.txx(264)
> : error C2244: 'itk::SymmetricSecondRankTensor<TComponent,NDimension>::GetTrace'
> : unable to match function definition to an existing declaration
> 12> d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkSymmetricSecondRankTensor.h(178)
> : see declaration of
> 'itk::SymmetricSecondRankTensor<TComponent,NDimension>::GetTrace'
> 12> definition
> 12> 'SymmetricSecondRankTensor<TComponent,NDimension>::AccumulateValueType
> itk::SymmetricSecondRankTensor<TComponent,NDimension>::GetTrace(void)
> const'
> 12> existing declarations
> 12> 'NumericTraits<T>::RealType
> itk::SymmetricSecondRankTensor<TComponent,NDimension>::GetTrace(void)
> const'
> 12>d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkDiffusionTensor3D.txx(119)
> : error C2244: 'itk::DiffusionTensor3D<TComponent>::GetTrace' : unable
> to match function definition to an existing declaration
> 12> d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkDiffusionTensor3D.h(129)
> : see declaration of 'itk::DiffusionTensor3D<TComponent>::GetTrace'
> 12> definition
> 12> 'DiffusionTensor3D<TComponent>::AccumulateValueType
> itk::DiffusionTensor3D<TComponent>::GetTrace(void) const'
> 12> existing declarations
> 12> 'NumericTraits<T>::RealType
> itk::DiffusionTensor3D<TComponent>::GetTrace(void) const'
> 12>d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkDiffusionTensor3D.txx(146)
> : error C2244: 'itk::DiffusionTensor3D<TComponent>::GetFractionalAnisotropy'
> : unable to match function definition to an existing declaration
> 12> d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkDiffusionTensor3D.h(132)
> : see declaration of
> 'itk::DiffusionTensor3D<TComponent>::GetFractionalAnisotropy'
> 12> definition
> 12> 'DiffusionTensor3D<TComponent>::RealValueType
> itk::DiffusionTensor3D<TComponent>::GetFractionalAnisotropy(void)
> const'
> 12> existing declarations
> 12> 'NumericTraits<T>::RealType
> itk::DiffusionTensor3D<TComponent>::GetFractionalAnisotropy(void)
> const'
> 12>d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkDiffusionTensor3D.txx(180)
> : error C2244: 'itk::DiffusionTensor3D<TComponent>::GetRelativeAnisotropy'
> : unable to match function definition to an existing declaration
> 12> d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkDiffusionTensor3D.h(135)
> : see declaration of
> 'itk::DiffusionTensor3D<TComponent>::GetRelativeAnisotropy'
> 12> definition
> 12> 'DiffusionTensor3D<TComponent>::RealValueType
> itk::DiffusionTensor3D<TComponent>::GetRelativeAnisotropy(void) const'
> 12> existing declarations
> 12> 'NumericTraits<T>::RealType
> itk::DiffusionTensor3D<TComponent>::GetRelativeAnisotropy(void) const'
> 12>d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkDiffusionTensor3D.txx(198)
> : error C2244: 'itk::DiffusionTensor3D<TComponent>::GetInnerScalarProduct'
> : unable to match function definition to an existing declaration
> 12> d:\juan\develop\itk-dev\itk-src\itk\modules\core\common\include\itkDiffusionTensor3D.h(138)
> : see declaration of
> 'itk::DiffusionTensor3D<TComponent>::GetInnerScalarProduct'
> 12> definition
> 12> 'DiffusionTensor3D<TComponent>::RealValueType
> itk::DiffusionTensor3D<TComponent>::GetInnerScalarProduct(void) const'
> 12> existing declarations
> 12> 'NumericTraits<T>::RealType
> itk::DiffusionTensor3D<TComponent>::GetInnerScalarProduct(void) const'
>
> On Fri, Jun 24, 2011 at 1:11 PM, Juan Cardelino
> <juan.cardelino at gmail.com> wrote:
>> I found out that my problem was visual studio 2005 and the way it
>> interprets some template things. It is solved by installing visual
>> studio service pack 1, and an update for SP for windows vista.
>>
>>
>> On Thu, Jun 23, 2011 at 11:13 PM, Sankhesh Jhaveri
>> <sankyscorpio at gmail.com> wrote:
>>> Juan Cardelino <juan.cardelino at ...> writes:
>>>
>>>>
>>>> Dear all,
>>>> I've been using ITK 4 from git from more than a year
>>>> without any problems under linux, and some time ago I've also tried it
>>>> successfully on windows. However I can't rebuild it anymore. However
>>>> trying building with today's version (06/19/2011) I'm getting the
>>>> following error. I've tried changing many cmake options (static and
>>>> shared libs, enabling/disabling modules, etc), but I always get the
>>>> same.
>>>
>>>
>>> I have been having the same problem. I am using Windows xp and building
>>> with ITK_USE_SYSTEM_VXL turned ON. I have specified the system vxl build.
>>> Any ideas to workaround this?
>>> Thanks,
>>> Sankhesh
>>>
>>>
>>>
>>>
>>> _____________________________________
>>> 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
>>>
>> _____________________________________
>> 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
>>
>
>
>
> --
> Cory Quammen
> Research Associate
> Department of Computer Science
> University of North Carolina at Chapel Hill
> http://www.cs.unc.edu/~cquammen
>
More information about the Insight-users
mailing list