[Insight-users] Building CVS Insight Applications

Kevin H. Hobbs kevin.hobbs.1 at ohiou.edu
Tue Dec 20 10:14:04 EST 2005


On Mon, 2005-12-19 at 16:24 -0500, Kevin H. Hobbs wrote:
> I 'm trying to build the Insight Applications from CVS against the CVS
> versions of VTK and ITK.  VTK was built with 64 bit IDs and this is an
> amd64 so int[3] and vtkIdType* aren't the same. From listening to the
> list "candidates are:" screams missing header. 
> 
> I got the following error:
> 
> /home/kevin/kitware/InsightApplications/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx: In function ‘void vtkPatchedImageReaderUpdate2(vtkPatchedImageReader*, vtkImageData*, IT*, OT*)’:
> /home/kevin/kitware/InsightApplications/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx:734: error: no matching function for call to ‘vtkImageData::GetIncrements(int [3])’
> /opt/vtk/include/vtk-5.1/vtkImageData.h:186: note: candidates are: virtual vtkIdType* vtkImageData::GetIncrements()
> /opt/vtk/include/vtk-5.1/vtkImageData.h:187: note:                 virtual void vtkImageData::GetIncrements(vtkIdType&, vtkIdType&, vtkIdType&)
> /opt/vtk/include/vtk-5.1/vtkImageData.h:188: note:                 virtual void vtkImageData::GetIncrements(vtkIdType*)
> /home/kevin/kitware/InsightApplications/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx: In function ‘void vtkPatchedImageReaderUpdate1(vtkPatchedImageReader*, vtkImageData*, T*)’:
> /home/kevin/kitware/InsightApplications/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx:883: error: ‘VTK_TT’ was not declared in this scope
> /home/kevin/kitware/InsightApplications/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx:883: error: expected primary-expression before ‘)’ token
> /home/kevin/kitware/InsightApplications/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx: In member function ‘virtual void vtkPatchedImageReader::ExecuteData(vtkDataObject*)’:
> /home/kevin/kitware/InsightApplications/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx:914: error: ‘VTK_TT’ was not declared in this scope
> /home/kevin/kitware/InsightApplications/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx:914: error: expected primary-expression before ‘)’ token
> /home/kevin/kitware/InsightApplications/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx:914: error: ‘vtkTemplateMacro3’ was not declared in this scope
> make[2]: *** [SegmentationEditorFltkGui/EditorFltkGui/CMakeFiles/EditorFltkGui.dir/vtkPatchedImageReader.o] Error 1
> make[1]: *** [SegmentationEditorFltkGui/EditorFltkGui/CMakeFiles/EditorFltkGui.dir/all] Error 2
> make: *** [all] Error 2
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users

I tried replacing line 714 of vtkPatchedImageReader.cxx
	int inIncr[3], outIncr[3];
with 
	vtkIdType inIncr[3], outIncr[3];
but then the next line, 735 complains about not knowing what to do with
pointers to vtkIdType. I changed all occurrences of int in
ComputeInverseTransformedIncrements to vtkIdType and I get a little
further.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://public.kitware.com/pipermail/insight-users/attachments/20051220/ddb99e1b/attachment.pgp


More information about the Insight-users mailing list