[Insight-users] Build vtkITK failed

bear xgl99 at mails.tsinghua.edu.cn
Thu Nov 4 00:16:38 EST 2004


hi,all

I try to discover the problem myself. 
I think the problem is
In the line 137 of InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h
void SetOutput ( vtkImageData* d ) { this->vtkImporter->SetOutput ( d ); };
and vtkImporter is declared as vtkImageImport*
I search the class vtkImageImport and all its base
class(vtkImageAlgorithm,vtkAlgorithm,vtkObject). There is no member function
"SetOutput"
The same problem occurs for  "SetReleaseDataFlag", "GetInput"
Any opinion about this? do I make a mistake when configuring VTK?


In your mail:
>From: "bear" <xgl99 at mails.tsinghua.edu.cn>
>Reply-To: bear <xgl99 at mails.tsinghua.edu.cn>
>To: Insight-users at itk.org
>Subject: Re: [Insight-users] Build vtkITK failed
>
>hi Luis,
> 
> I just build the entire InsightApplications and fail at vtkITK.
> by the way I set USE_FLTK ON ,USE_VTK ON,ITK_USE_PATENTED OFF 
> 
> In your mail:
> >From: Luis Ibanez <luis.ibanez at kitware.com>
> >Reply-To: 
> >To: bear <xgl99 at mails.tsinghua.edu.cn>
> >Subject: Re: [Insight-users] Build vtkITK failed
> >
> >
> > Hi Bear,
> > 
> > Are you building the vtkITK application all by itself ?
> > or as part of the entire InsightApplications build ?
> > 
> > InsightApplications has been organized in such a way that
> > you *must* configure it by running CMake from the *TOP*
> > level directory, not from any of the subdirectories.
> > 
> > Once you have run CMake at the top level, you can proceed
> > to build individual directories, if you are interested in
> > a single applications.
> > 
> > 
> > Please let us know how you are running CMake,
> > 
> > 
> >     Thanks
> > 
> > 
> >        Luis
> > 
> > 
> > 
> > ------------
> > bear wrote:
> > 
> > > hi,luis
> > > Thanks for your kindness.
> > > I use both CVS versions of Insight and InsightApplications
> > > and I disable Python wrapper in VTK, however I failed again. The error
> message
> > > reads:
> > > 
> > > Building shared library libvtkVTKITKCommon.so...
> > > Building object file vtkVTKITKCommonTCLInit.o...
> > > Building object file vtkITKAntiAliasBinaryImageFilterTcl.o...
> > > In file included from
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilterFF.h:9,
> > >                  from
> > >
>
/home/src/InsightApplications/vtkITK/Common/vtkITKAntiAliasBinaryImageFilter.h:18,

> 
> 
> > > 
> > >                  from
> > >
>
/home/src/InsightApplications/Build/vtkITK/Common/vtkITKAntiAliasBinaryImageFilter

> 
> 
> > > Tcl.cxx:5:
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h: In
> > >    member function `void
vtkITKImageToImageFilter::SetOutput(vtkImageData*)':
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h:137:
> error:
> > > `
> > >    SetOutput' undeclared (first use this function)
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h:137:
> error:
> > > (Each
> > >    undeclared identifier is reported only once for each function it appears
> > >    in.)
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h: In
> > >    member function `virtual void
> > >    vtkITKImageToImageFilter::SetReleaseDataFlag(int)':
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h:156:
> error:
> > > `
> > >    SetReleaseDataFlag' undeclared (first use this function)
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h: In
> > >    member function `virtual void vtkITKImageToImageFilter::Update()':
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h:174:
> error:
> > > `
> > >    GetInput' undeclared (first use this function)
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h: In
> > >    member function `virtual void
> vtkITKImageToImageFilter::UpdateWholeExtent()
> > >    ':
> > > /home/src/InsightApplications/vtkITK/Common/vtkITKImageToImageFilter.h:204:
> error:
> > > `
> > >    GetInput' undeclared (first use this function)
> > > make[3]: *** [vtkITKAntiAliasBinaryImageFilterTcl.o] Error 1
> > > make[2]: *** [default_target] Error 2
> > > make[1]: *** [default_target_Common] Error 2
> > > make: *** [default_target] Error 2
> 
> 
> _______________________________________________
> 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