[Insight-users] question in compiling InsightApplicaions-3.0.0

Luis Ibanez luis.ibanez at kitware.com
Mon Aug 27 09:53:17 EDT 2007


Hi Qxue,

            What version of VTK are you using ?

It seems that you are using a version of VTK that is incompatible
with the version of InsightApplications released in ITK 3.0.

Note that this particular application "CannyLevelSet" relies on
both ITK and VTK.



Regards,


    Luis



----------
qxue wrote:
> Hello, ITK users:
> I am familar with ITK using VC6.0 in Windows XP. Recently, I try to move 
> the plateform from windows to linux (Mandriva, gcc 4.1.2, Cmake 2.4 
> patch6, InsightToolkit-3.0.0 and InsightApplications-3.0.0).
> Everything is fine except the warnings to hint me to transfor the GCC to 
> G++ compiler.
> But when I compile the insightapplication in the similar way as 
> insighttoolkit, there are errors:
> "
> [ 51%] Building CXX object 
> CannyLevelSet/CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSetBase.o 
> 
> /home/qxue/Video/InsightApplications/CannyLevelSet/CannySegmentationLevelSetBase.cxx: 
> In constructor 
> ‘CannySegmentationLevelSetBase::CannySegmentationLevelSetBase()’:
> /home/qxue/Video/InsightApplications/CannyLevelSet/CannySegmentationLevelSetBase.cxx:113: 
> error: invalid conversion from ‘vtkDataSet*’ to ‘vtkPolyData*’
> /home/qxue/Video/InsightApplications/CannyLevelSet/CannySegmentationLevelSetBase.cxx:113: 
> error: initializing argument 1 of ‘void 
> vtkPolyDataWriter::SetInput(vtkPolyData*)’
> make[2]: *** 
> [CannyLevelSet/CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSetBase.o] 
> Error 1
> make[1]: *** 
> [CannyLevelSet/CMakeFiles/CannySegmentationLevelSet.dir/all] Error 2
> make: *** [all] Error 2
> "
> 
> To me, i do not change anything inside InsightApplications-3.0.0. I 
> compiled and used the same package in the Windows successfully before.
> What should I do to it?
> Thanks in advance.
> 
> Quan
> 
> _______________________________________________
> 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