[Insight-users] Problems with Insight Applications compilation
Luis Ibanez
luis . ibanez at kitware . com
Thu, 11 Dec 2003 13:45:44 -0500
Hi Rodrigo,
Please disregard my previous email. Instead of
fixing the code of this application, just should
simply follow Julien's advice of update your CVS
checkout of InsightApplications.
The compatibility rule is:
The CVS version of InsightApplications should
be built against the CVS version of Insight.
In your case, what happens is that you are building
a relatively old version of InsightApplications
versus today's version of Insight.
The errors that you are finding have already been
fixed in the CVS version of InsightApplications.
Please update your CVS checkout of InsightApplications
and built it again.
Let us know if you find any further problems,
Thanks
--------------------------------------
Rodrigo Trujillo wrote:
> Hi, Luis.
> If I substitute "spacing" type to ImageType, I get a message saying this
> (ImageType) is undefined:
>
> C:\InsightApplications\Morphogenesis\CellularAggregate.cxx(865) : error
> C2653: 'ImageType' : is not a class or namespace name
>
> Where mus I define it? And how?
>
> Rodrigo
>
> ----- Original Message -----
> From: "Luis Ibanez" <luis . ibanez at kitware . com>
> To: "Rodrigo Trujillo" <rodrigo . trujillo at cenpra . gov . br>
> Cc: "ITK Users" <insight-users at itk . org>
> Sent: Thursday, December 11, 2003 2:40 PM
> Subject: Re: [Insight-users] Problems with Insight Applications compilation
>
>
>
>>Hi Rodrigo,
>>
>>The API for GetSpacing() and GetOrigin() has changed.
>>
>>They are no longer raw pointers to double but an
>>itkPoint<> for Origin and an itkVector<> for spacing.
>>
>>Please use the types:
>>
>>
>>ImageType::SpacingType spacing = image->GetSpacing();
>>ImageType::PointType origin = image->GetOrigin();
>>
>>or
>>
>>const ImageType::SpacingType & spacing = image->GetSpacing();
>>const ImageType::PointType & origin = image->GetOrigin();
>>
>>
>>Regards,
>>
>>
>> Luis
>>
>>
>>
>>-------------------------
>>Rodrigo Trujillo wrote:
>>
>>
>>>Hi,
>>>
>>>I updated all the code for the compilation of ITK through CVS
>>> (Insight, CableSwing, InsightApplications ).
>>>All had compiled well, but an error in InsightApplications ocurred,
>>>during the compilation :
>>>
>>> File:
>
> C:\InsightApplications\Morphogenesis\CellularAggregate.cxx
>
>>> Line 863: const double * spacing =
>>>substrate->GetSpacing().GetDataPointer();
>>>
>>> Error: " left of '.GetDataPointer' must have
>>>class/struct/union type"
>>>
>>>I tried to solve this problem making:
>>>
>>> const double * spacing =
>>>substrate->GetSpacing();//.GetDataPointer();
>>>
>>>This solved the problem, but another error happened:
>>>
>>>
>>>--------------------Configuration: SNAPTests - Win32
>>>Release--------------------
>>>Compiling...
>>>SnakeWrapper.cxx
>>>GUITestPadLogic.cxx
>>>C:\InsightApplications\SNAP\Testing\GUITestPadLogic.cxx(196) : error
>>>C2664: 'void __thiscall itk::DiscreteGaussianImageFilter<class
>>>itk::Image<float,3>,class itk::Image<float,3> >::SetMaximumError(const
>>>class itk::FixedArray<double,3>)' : cannot convert parameter 1 from
>>>'float *' to 'const class itk::FixedArray<double,3>'
>>> No constructor could take the source type, or constructor
>>>overload resolution was ambiguous
>>>ImageWrapperTest.cxx
>>>Generating Code...
>>>Error executing cl.exe.
>>>
>>>ALL_BUILD - 1 error(s), 0 warning(s)
>>>
>>>
>>>I believe that the error is in the code, but i'm not certain of this.
>>>I'm using:
>>>
>>>Visual C++ 6.0
>>>VTK - 4.2.2
>>>Python 2.3.2
>>>CMake 1.6 - patch 7
>>>
>>>
>>>Can someone help me ?
>>>
>>>Thanks,
>>>
>>>Rodrigo Trujillo
>>
>>
>>
>>
>
>