[Insight-users] Examples/vtkITK

Neil Killeen Neil.Killeen@atnf.csiro.au
Mon, 9 Dec 2002 14:41:02 +1100 (EST)


Still finalizing my build...  I think I am at the last
hurdle for now.

I can't get the

Examples/vtkITK

code to compile.  Many of the examples fail.

For example, the first one triggered in the Makefile is

cetus-305% g++-3.1.1 -Wno-deprecated -ftemplate-depth-50
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/Algorithms
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/BasicFilters
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/Common
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/Numerics
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/IO
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/Numerics/FEM
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/Numerics/Statistics
-I/nfs/aips2prg/nkilleen/itk/sun4sol/Code/Numerics/vxl
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/Numerics/vxl
-I/nfs/aips2prg/nkilleen/itk/sun4sol/Code/Numerics/vxl/vcl
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/Numerics/vxl/vcl
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Code/SpatialObject
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Utilities/png
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Utilities/zlib
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Utilities/MetaIO
-I/nfs/aips2prg/nkilleen/itk/sun4sol -I/usr/local/include/vtk
-I/usr/local/include
-I/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/
-I/usr/openwin/include -c
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.cxx
-o vtkITKMutualInformationTransform.o

In file included from
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.cxx:18:
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.h:40:
ISO   C++ forbids declaration of `vtkTypeRevisionMacro' with no type
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.h:40:
cannot   declare parameter `<anonymous>' to be of type `vtkLinearTransform'
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.h:40:
    because the following virtual functions are abstract:
/usr/local/include/vtk/vtkAbstractTransform.h:220:      virtual void
   vtkAbstractTransform::Inverse()
/usr/local/include/vtk/vtkAbstractTransform.h:251:      virtual
   vtkAbstractTransform* vtkAbstractTransform::MakeTransform()
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.cxx:58:
type
   specifier omitted for parameter
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.cxx:58:
parse
   error before string constant
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.cxx:58:
ISO
   C++ forbids declaration of `vtkCxxRevisionMacro' with no type
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.cxx:59:
ISO
   C++ forbids declaration of `vtkStandardNewMacro' with no type
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.cxx:
In
   member function `virtual void
   vtkITKMutualInformationTransform::PrintSelf(std::ostream&, vtkIndent)':
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.cxx:91:
`
   class vtkITKMutualInformationTransform' has no member named
`Superclass'
/nfs/aips2prg/nkilleen/itk/InsightToolkit-1.0.0/Examples/vtkITK/Common/vtkITKMutualInformationTransform.cxx:91:
parse
   error before `::' token



Indeed, the very first error that you see above, does appear to
be a coding error (no type assigned to the function).  But I don't
know what type it should take and commenting out that function
(which is not defined in the cxx gets me in more trouble).

In addition,  if I go on to the next application (by commenting this one
out), other compile errors occur.

Is there some compiler switch I should be using
to handle the vtkITK examples (perhaps some deprecation switch,
although I already have -Wno-deprecated on)


thanks
Neil