[Insight-users] Re: itk applications

Luis Ibanez luis . ibanez at kitware . com
Wed, 10 Dec 2003 18:34:34 -0500


Hi Sharad,


It looks like you are not using VTK 4.2 but CVS VTK.
The types for Spacing changed recently in VTK.

Please double check in the CMake configuration of
InsightApplications to see what version of VTK
you are using.

You will have to stick to VTK version 4.2


Regards,


    Luis



---------------------------
Sharad Kumar Somanchi wrote:

> hi luis
> i built the fltk 1.1.4 and vtk 4.2 and itk 1.4. when i try to build the
> itkapplications i got the following error can you help me
> 
> 
> 
> Compiling...
> itkCurvatureFlowToVTK.cxx
> C:\ITk\InsightApplications-1.4.0\Auxiliary\vtk\itkCurvatureFlowToVTK.cxx(59)
> : error C2664: 'SetSpacingCallback' : cannot convert parameter 1 from
> 'float *(__cdecl *)(void *)' to 'double *(__cdecl *)(void *)'
>         This conversion requires a reinterpret_cast, a C-style cast or
> function-style cast
> 
> C:\ITk\InsightApplications-1.4.0\Auxiliary\vtk\itkCurvatureFlowToVTK.cxx(133)
> : see reference to function template instantiation 'void __cdecl
> ConnectPipelines(class itk::SmartPointer<class itk::VTKImageExport<class
> itk::Image<float,2> > >,c
> lass vtkImageImport *)' being compiled
> C:\ITk\InsightApplications-1.4.0\Auxiliary\vtk\itkCurvatureFlowToVTK.cxx(60)
> : error C2664: 'SetOriginCallback' : cannot convert parameter 1 from
> 'float *(__cdecl *)(void *)' to 'double *(__cdecl *)(void *)'
>         This conversion requires a reinterpret_cast, a C-style cast or
> function-style cast
> 
> C:\ITk\InsightApplications-1.4.0\Auxiliary\vtk\itkCurvatureFlowToVTK.cxx(133)
> : see reference to function template instantiation 'void __cdecl
> ConnectPipelines(class itk::SmartPointer<class itk::VTKImageExport<class
> itk::Image<float,2> > >,c
> lass vtkImageImport *)' being compiled
> Error executing cl.exe.
> 
> 
> 
> thanks a lot
> regards
> sharad
>