[Insight-users] compiling ITK with VTK
Darby J Brown
darbyb@cs.utah.edu
Fri, 20 Dec 2002 12:00:59 -0700 (MST)
I am new with itk, and am trying to compile itk with vtk.
I am using gcc 2.96 on Red Hat 7.3
I am compiling my vtk with:
VTK_USE_ANSI_STDLIB
VTK_USE_PATENTED
VTK_WRAP_TCL
VTK_USE_HYBRID
It compiled successfully.
When trying to compile itk, I have:
BUILD_APPLICATIONS
BUILD_EXAMPLES
USE_GLUT
USE_VTK
SEGMENTER_WRAP_TCL
VTKITK_WRAP_TCL
I get the following errors:
In file included from
/scratch-linux/darbyb/itk_fltk/Insight/Applications/vtkITK/Common/vtkITKImageToImageFilterUSUS.h:9,
from
/scratch-linux/darbyb/itk_fltk/Insight/Applications/vtkITK/Common/vtkITKConnectedThresholdImageFilter.h:18,
from
/scratch-linux/darbyb/itk_fltk/Insight/Applications/vtkITK/Common/vtkITKConnectedThresholdImageFilter.cxx:19:
/scratch-linux/darbyb/itk_fltk/Insight/Applications/vtkITK/Common/vtkITKImageToImageFilter.h: In
method
`void vtkITKImageToImageFilter::PrintSelf (ostream &, vtkIndent)':
/scratch-linux/darbyb/itk_fltk/Insight/Applications/vtkITK/Common/vtkITKImageToImageFilter.h:47: `Superclass'
undeclared (first use this function)
/scratch-linux/darbyb/itk_fltk/Insight/Applications/vtkITK/Common/vtkITKImageToImageFilter.h:47: (Each
undeclared identifier is reported only once for each function it appears
in.)
/scratch-linux/darbyb/itk_fltk/Insight/Applications/vtkITK/Common/vtkITKImageToImageFilter.h:47: parse
error before `::'
I also got this with gcc 3.2. Any suggestions/help would be appreciated.
-darby j
===================
Darby J Brown
SCI Institute
University of Utah