[Insight-users] Building CVS Insight Applications

Luis Ibanez luis.ibanez at kitware.com
Tue Dec 20 11:21:32 EST 2005


Hi Kevin,

Thanks for letting us know about the version of VTK that you are using.

We build the CVS version of InsightApplications along with the CVS 
version of VTK in dash16.kitware:

and... although it is reporting some errors:
http://www.itk.org/Testing/Sites/dash16.kitware/zApps-Linux-gcc33/20051220-0100-Nightly/BuildError.html



They don't seem to relate to the ones that you are reporting.



In any case,...



The interface for the method


               GetIncrements()


in vtkImageData, changed on May 23rd 2005:

http://public.kitware.com/cgi-bin/viewcvs.cgi/Filtering/vtkImageData.h?r1=1.9&r2=1.10


We just commited a fix to InsightApplications, in
order to use the new interface for GetIncrements():
http://www.itk.org/cgi-bin/viewcvs.cgi/SegmentationEditorFltkGui/EditorFltkGui/vtkPatchedImageReader.cxx?root=InsightApplications&r1=1.3&r2=1.4


Please update your CVS checkout of InsightApplications.



Thanks for pointing this out.



    Regards,


       Luis



-----------------------
Kevin H. Hobbs wrote:
> 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.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list