[Insight-users] problem compiling itkapplications

Felix Schwenk felix.schwenk at nme.at
Thu, 8 Jan 2004 15:16:43 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C3D5FA.6DA906C0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

hi all,
i did a cvs update of vtk, itk and itkapplications last night.
vtk compiles
itk compiles 
but itkapplications gives me errors when compiling an application that
uses vtk. 
errors are something like this:

c:\projects\itk\Insight\InsightApplications\vtkITK\Common\vtkITKUtility.
h(39) : error C2664:
'itk::VTKImageImport<TOutputImage>::SetSpacingCallback' : cannot convert
parameter 1 from 'vtkImageExport::SpacingCallbackType' to 'const
itk::VTKImageImport<TOutputImage>::SpacingCallbackType'
        with
        [
            TOutputImage=vtkITKImageToImageFilterFUL::InputImageType
        ]
        and
        [
            TOutputImage=vtkITKImageToImageFilterFUL::InputImageType
        ]
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
 
c:\projects\itk\Insight\InsightApplications\vtkITK\Common\vtkITKImageToI
mageFilterFUL.h(48) : see reference to function template instantiation
'void
ConnectPipelines<vtkImageExport,itk::VTKImageImport<TOutputImage>::Point
er>(VTK_Exporter *,ITK_Importer)' being compiled
        with
        [
            TOutputImage=vtkITKImageToImageFilterFUL::InputImageType,
            VTK_Exporter=vtkImageExport,
 
ITK_Importer=itk::VTKImageImport<vtkITKImageToImageFilterFUL::InputImage
Type>::Pointer
        ]


what am i doing wrong?

felix.

------=_NextPart_000_0009_01C3D5FA.6DA906C0
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4630.0">
<TITLE>problem compiling itkapplications</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">hi all,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">i did a cvs update of vtk, itk and =
itkapplications last night.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">vtk compiles</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">itk compiles </FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">but itkapplications gives me errors =
when compiling an application that uses vtk. </FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">errors are something like this:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier =
New">c:\projects\itk\Insight\InsightApplications\vtkITK\Common\vtkITKUtil=
ity.h(39) : error C2664: =
'itk::VTKImageImport&lt;TOutputImage&gt;::SetSpacingCallback' : cannot =
convert parameter 1 from 'vtkImageExport::SpacingCallbackType' to 'const =
itk::VTKImageImport&lt;TOutputImage&gt;::SpacingCallbackType'</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
TOutputImage=3DvtkITKImageToImageFilterFUL::InputImageType</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
TOutputImage=3DvtkITKImageToImageFilterFUL::InputImageType</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This conversion requires =
a reinterpret_cast, a C-style cast or function-style cast</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
c:\projects\itk\Insight\InsightApplications\vtkITK\Common\vtkITKImageToIm=
ageFilterFUL.h(48) : see reference to function template instantiation =
'void =
ConnectPipelines&lt;vtkImageExport,itk::VTKImageImport&lt;TOutputImage&gt=
;::Pointer&gt;(VTK_Exporter *,ITK_Importer)' being compiled</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
TOutputImage=3DvtkITKImageToImageFilterFUL::InputImageType,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
VTK_Exporter=3DvtkImageExport,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ITK_Importer=3Ditk::VTKImageImport&lt;vtkITKImageToImageFilterFUL::InputI=
mageType&gt;::Pointer</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Courier New">what am i doing wrong?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">felix.</FONT>
</P>

</BODY>
</HTML>
------=_NextPart_000_0009_01C3D5FA.6DA906C0--