[Insight-users] Build vtkITK failed
Luis Ibanez
luis.ibanez at kitware.com
Fri Nov 5 22:37:54 EST 2004
Hi Bear,
What version of VTK are you using ?
Thanks
Luis
--------------------------------------
bear wrote:
> 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
>>>
>>>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,
>>>>
>>>>According to your email, you are using the CVS
>>>>version of InsightApplications.
>>>>
>>>>You failed however to specify what version
>>>>of ITK you are using.
>>>>
>>>>The error message that you posted may indicate
>>>>a mismatch between the versions of Insight and
>>>>InsightApplications.
>>>>
>>>> Please let us know
>>>>
>>>>
>>>>Note also that the application vtkITK was intended
>>>>to be wrapped for Tcl. You probably wrapped your
>>>>VTK for both Tcl and Python and that's causing this
>>>>application to be wrapped for Python. You may want
>>>>to disable Python wrapping in the VTK version that
>>>>you use for building InsightApplications.
>>>>
>>>>
>>>>
>>>>
>>>> Regards,
>>>>
>>>>
>>>> Luis
>>>>
>>>>
>>>>
>>>>----------------
>>>>bear wrote:
>>>>
>>>>
>>>>
>>>>>hi all
>>>>> I am new to ITK and fail to build vtkITK under CVS version of
>>>>>InsightApplication with the following error message:
>>>>>
>>>>>Building object file vtkVTKITKCommonPythonInit.o...
>>>>>Building object file vtkITKAntiAliasBinaryImageFilterPython.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
>
>
>>>
>>>>>Python.cxx:8:
>>>>>/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]: *** [vtkITKAntiAliasBinaryImageFilterPython.o] Error 1
>>>>>make[2]: *** [default_target] Error 2
>>>>>make[1]: *** [default_target_Common] Error 2
>>>>>make: *** [default_target] Error 2
>>>>>
>>>>>What it the problem?
>>>>>
>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>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