[Insight-users] build errors in windows (ITK-4.0 GIT version)

Juan Cardelino juan.cardelino at gmail.com
Sat Jun 25 18:30:46 EDT 2011


Alexandre,
               I am developing this algorithm for a client, which is
also a developer. He uses XP and he also had problems with the lenght
of the paths. If ITK is not installed under a short path, some files
in the ITK tree hit the 256 characters limit. Check if that is not the
case.
Those were the only errors we got using visual studio 2005 under vista and XP.
Best regards,
                   Juan

On Sat, Jun 25, 2011 at 5:16 AM, Alexandre GOUAILLARD
<agouaillard at gmail.com> wrote:
> hum,
>
> installed MSVC 2005 SP1 the build is ongoing but there seems to be
> errors still. Let's wait untill the end of the build to see if they
> are the same errors.
>
> Maybe I should update my winXP too as you mentionned you needed  SP of
> vista for it to work.
>
> alex.
>
>
> On Sat, Jun 25, 2011 at 12:50 PM, Alexandre GOUAILLARD
> <agouaillard at gmail.com> wrote:
>> yep, that looks familiar .....
>>
>> thanks,
>>
>> alex.
>>
>>
>> On Sat, Jun 25, 2011 at 1:27 AM, Juan Cardelino
>> <juan.cardelino at gmail.com> wrote:
>>> 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