[Insight-users] compiling ITK with VTK

Lorensen, William E (Research) lorensen@crd.ge.com
Fri, 20 Dec 2002 16:24:04 -0500


Darby,
Are you using the night cvs checkout or the release?

If the later, then you may have to add some
#include "vtkImageData.h" lines to the vtkITKImageToImageFilter.h file.

The vtk dveleopement crew (mainly Andy) is on a rampage to remove "extraneous" includes from vtk
classes. Unfortuantely, this wreak havoc with exisint applications. We try to keep the nightly itk in
sync with these "important" vtk changes.

Bill


-----Original Message-----
From: Darby J Brown [mailto:darbyb@cs.utah.edu]
Sent: Friday, December 20, 2002 2:01 PM
To: insight-users@public.kitware.com
Subject: [Insight-users] compiling ITK with VTK


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

_______________________________________________
Insight-users mailing list
Insight-users@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-users