[Insight-users] build ManagedITK-3.6.0.2 error

Dan Mueller dan.muel at gmail.com
Fri Sep 26 02:56:57 EDT 2008


Hi Luis,

Wow! That was super quick! I was going to fix it myself this weekend,
but you beat me to it.

The changes work for me.

Regards, Dan

2008/9/25 Luis Ibanez <luis.ibanez at kitware.com>:
>
> Hi Dan, Huang,
>
> Thanks for pointing this out and for logging the bug.
>
>  Fixes were committed this morning at 8:52am:
>
> http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkNumericTraitsTensorPixel.h?root=Insight&r1=1.8&r2=1.9&sortby=date
> http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkNumericTraitsCovariantVectorPixel.h?root=Insight&r1=1.3&r2=1.4&sortby=date
>
>
> Please update your CVS checkout and let us know
> if you encounter any problems.
>
>
>   Thanks
>
>
>     Luis
>
>
> --------------------
> Dan Mueller wrote:
>>
>> Hi Huang,
>>
>> You have uncovered a bug/typo in itkNumericTrainsCovariantVectorPixel.h:
>>
>> template <> class NumericTraits<CovariantVector<unsigned long, 2> > {
>> public:
>>  typedef unsigned long ValueType;
>>  typedef CovariantVector<unsigned long, 2> PrlongType;
>>
>> should read
>>
>> template <> class NumericTraits<CovariantVector<unsigned long, 2> > {
>> public:
>>  typedef unsigned long ValueType;
>>  typedef CovariantVector<unsigned long, 2> PrintType; // <<<<<<<<<<<<<<
>>
>> It looks like someone did a replace on int for long and converted
>> PrintType to PrlongType. There are about 7-8 of the same typos in the
>> file.
>>
>> I have logged a bug:
>>    http://www.itk.org/Bug/view.php?id=7732
>>
>> In the meantime, you can make the changes locally.
>>
>> For your information, ManagedITK 3.6.02 should also compile against
>> ITK 3.8, if you would rather the latest ITK version.
>>
>> Regards, Dan
>>
>> 2008/9/24 Huang, Tsung Min <s94213003 at gmail.com>:
>>
>>> Hi,
>>> I use Visual Studio 2005 to build ManagedItTK-3.6.0.2.
>>> If I use cmake default setting I can build it successfully. But when I
>>> choice all wrap variable,I have error message like:
>>>
>>> error C2039: 'PrintType' : is not a member
>>> of'itk::NumericTraits<itk::CovariantVector<T,NVectorDimension>>'
>>>      c:\program
>>> files\insighttoolkit-3.6.0\include\insighttoolkit\basicfilters\itkConstantPadImageFilter.txx
>>> 51
>>>
>>> Can any one  tell me where is the problem?
>>> Should I use itk before 3.6.0 ?
>>> or
>>> How should I configure cmake wrap variabels?
>>>
>>> Thank for your help.
>>> -Huang
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users at itk.org
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>


More information about the Insight-users mailing list