[Insight-users] Problems with Insight Applications compilation

Rodrigo Trujillo Rodrigo Trujillo" <rodrigo . trujillo at cenpra . gov . br
Thu, 11 Dec 2003 14:37:19 -0200


This is a multi-part message in MIME format.

------=_NextPart_000_0053_01C3BFF4.48124C30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,=20

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 =3D =
substrate->GetSpacing().GetDataPointer();

        Error:   "      left of '.GetDataPointer' must have =
class/struct/union type"

I tried to solve this problem making:

        const double * spacing =3D =
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,=20

Rodrigo Trujillo
------=_NextPart_000_0053_01C3BFF4.48124C30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I&nbsp;&nbsp;updated all the&nbsp;code =
for the=20
compilation of ITK through CVS &nbsp;(Insight, CableSwing,=20
InsightApplications&nbsp;).
<DIV><FONT face=3DArial size=3D2>All had compiled well, but&nbsp;an =
error in=20
InsightApplications ocurred, during the compilation :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
File:&nbsp;=20
C:\InsightApplications\Morphogenesis\CellularAggregate.cxx</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
Line=20
863:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const double * spacing =3D=20
substrate-&gt;GetSpacing().GetDataPointer();</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
Error:&nbsp;&nbsp; "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left of =
'.GetDataPointer'=20
must have class/struct/union type"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>I tried to solve this problem&nbsp;making:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; const double * spacing =3D=20
substrate-&gt;GetSpacing();//.GetDataPointer();</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>This solved the problem, but another error happened:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>--------------------Configuration: SNAPTests - Win32=20
Release--------------------<BR>Compiling...<BR>SnakeWrapper.cxx<BR>GUITes=
tPadLogic.cxx<BR>C:\InsightApplications\SNAP\Testing\GUITestPadLogic.cxx(=
196)=20
: error C2664: 'void __thiscall =
itk::DiscreteGaussianImageFilter&lt;class=20
itk::Image&lt;float,3&gt;,class itk::Image&lt;float,3&gt;=20
&gt;::SetMaximumError(const class itk::FixedArray&lt;double,3&gt;)' : =
cannot=20
convert parameter 1 from 'float *' to 'const class=20
itk::FixedArray&lt;double,3&gt;'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
No constructor could take the source type, or constructor overload =
resolution=20
was ambiguous<BR>ImageWrapperTest.cxx<BR>Generating Code...<BR>Error =
executing=20
cl.exe.</DIV>
<DIV>&nbsp;</DIV>
<DIV>ALL_BUILD - 1 error(s), 0 warning(s)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I believe that the error is in the code,&nbsp;&nbsp;but&nbsp;i'm=20
not&nbsp;certain&nbsp;of this. I'm using:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Visual C++&nbsp; 6.0</DIV>
<DIV>VTK - 4.2.2</DIV>
<DIV>Python 2.3.2</DIV>
<DIV>CMake 1.6 - patch 7</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can someone help me ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks, </DIV>
<DIV>&nbsp;</DIV>
<DIV>Rodrigo Trujillo</DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0053_01C3BFF4.48124C30--