[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> </DIV>
<DIV><FONT face=3DArial size=3D2>I updated all the code =
for the=20
compilation of ITK through CVS (Insight, CableSwing,=20
InsightApplications ).
<DIV><FONT face=3DArial size=3D2>All had compiled well, but an =
error in=20
InsightApplications ocurred, during the compilation :</FONT></DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2> =
File: =20
C:\InsightApplications\Morphogenesis\CellularAggregate.cxx</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
Line=20
863: const double * spacing =3D=20
substrate->GetSpacing().GetDataPointer();</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
Error: " left of =
'.GetDataPointer'=20
must have class/struct/union type"</FONT></DIV>
<DIV> </DIV>
<DIV>I tried to solve this problem making:</DIV>
<DIV> </DIV>
<DIV> const double * spacing =3D=20
substrate->GetSpacing();//.GetDataPointer();</DIV></DIV>
<DIV> </DIV>
<DIV>This solved the problem, but another error happened:</DIV>
<DIV> </DIV>
<DIV> </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<class=20
itk::Image<float,3>,class itk::Image<float,3>=20
>::SetMaximumError(const class itk::FixedArray<double,3>)' : =
cannot=20
convert parameter 1 from 'float *' to 'const class=20
itk::FixedArray<double,3>'<BR> &=
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> </DIV>
<DIV>ALL_BUILD - 1 error(s), 0 warning(s)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I believe that the error is in the code, but i'm=20
not certain of this. I'm using:</DIV>
<DIV> </DIV>
<DIV>Visual C++ 6.0</DIV>
<DIV>VTK - 4.2.2</DIV>
<DIV>Python 2.3.2</DIV>
<DIV>CMake 1.6 - patch 7</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Can someone help me ?</DIV>
<DIV> </DIV>
<DIV>Thanks, </DIV>
<DIV> </DIV>
<DIV>Rodrigo Trujillo</DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_0053_01C3BFF4.48124C30--