[Insight-users] Auxilliary/vtk

Neil Killeen Neil.Killeen@atnf.csiro.au
Thu, 2 Jan 2003 16:26:48 +1100 (EST)


In my previous post I asked:

Question:

is using this class [itkImageToVTKImageFilter] the one true mechanism to
follow for interfacing with VTK ?  If so, I assume it will be built
automatically when I turn the USE_VTK  switch on inside the ITK
CMakeLists.txt file ?


well,  since you 'mericans are still snoozing, I had a go at this
anyway....

The answer appears to be no, this interface class does not
get installed properly.

What I did was

. reactivate USE_INSTALLED_VTK   and set paths appropriately

. regenerate the makefiles

. rebuild ITK


it build object files for

Auxilliary/vtk

and left them in the build location.  It did not attempt to build any
libraries.  Well this could be ok since the filter class appears to be
templated only and presumably gets instantiated when the application
is generated.  Looking at the CMakeLists.txt files in the Auxilliary
tree there are no ADD_LIBRARY commands anyway.


However, the

% make install

step did nothing useful.  The install prefix is now /usr/local
which comes from VTK but that is ok at this time as both VTK and ITK
are now installed there.


Here is the output

Installing ...
/nfs/aips2prg/nkilleen/itk/sun4sol/Auxiliary: building install
/usr/local/bin/cmake -S/nfs/source/itk/InsightToolkit-1.0.0/Auxiliary
-O/nfs/aips2prg/nkilleen/itk/sun4sol/Auxiliary
-H/nfs/source/itk/InsightToolkit-1.0.0
-B/nfs/aips2prg/nkilleen/itk/sun4sol

/nfs/aips2prg/nkilleen/itk/sun4sol/Auxiliary/FltkImageViewer: building install
/usr/local/bin/cmake
-S/nfs/source/itk/InsightToolkit-1.0.0/Auxiliary/FltkImageViewer
-O/nfs/aips2prg/nkilleen/itk/sun4sol/Auxiliary/FltkImageViewer
-H/nfs/source/itk/InsightToolkit-1.0.0
-B/nfs/aips2prg/nkilleen/itk/sun4sol
Installing ...

/nfs/aips2prg/nkilleen/itk/sun4sol/Auxiliary/vtk: building install
Installing ...

/nfs/aips2prg/nkilleen/itk/sun4sol/Auxiliary/VtkFltk: building install
/usr/local/bin/cmake
-S/nfs/source/itk/InsightToolkit-1.0.0/Auxiliary/VtkFltk
-O/nfs/aips2prg/nkilleen/itk/sun4sol/Auxiliary/VtkFltk
-H/nfs/source/itk/InsightToolkit-1.0.0
-B/nfs/aips2prg/nkilleen/itk/sun4sol
Installing ...
Installing ...
Installing ...




you can see that no .h or .txx files were copied to

/usr/local/include/InsightToolkit/Auxilliary

or anywhere else for that matter.

When I attempt to build my application, it does now attempt to LOOK
for this new include  location, viz:

% g++-3.1.1 -Wno-deprecated
-I/nfs/mid/NKILLEEN/medim/source/code/apps/metaView
-I/usr/local/include/InsightToolkit
-I/usr/local/include/InsightToolkit/Numerics/vxl
-I/usr/local/include/InsightToolkit/Numerics/vxl/vcl
-I/usr/local/include/InsightToolkit/Algorithms
-I/usr/local/include/InsightToolkit/BasicFilters
-I/usr/local/include/InsightToolkit/Common
-I/usr/local/include/InsightToolkit/IO
-I/usr/local/include/InsightToolkit/Numerics/FEM
-I/usr/local/include/InsightToolkit/Numerics
-I/usr/local/include/InsightToolkit/Numerics/Statistics
-I/usr/local/include/InsightToolkit/SpatialObject
-I/usr/local/include/InsightToolkit/Utilities/GlutMaster
-I/usr/local/include/InsightToolkit/Utilities/MetaIO
-I/usr/local/include/InsightToolkit/Utilities/png
-I/usr/local/include/InsightToolkit/Utilities/zlib
-I/usr/local/include/InsightToolkit/Auxiliary/FltkImageViewer
-I/usr/local/include/InsightToolkit/Auxiliary/VtkFltk
-I/usr/local/include/InsightToolkit/Auxiliary/vtk -I/usr/local/include/vtk
-I/usr/openwin/include -c
/nfs/mid/NKILLEEN/medim/source/code/apps/metaView/MetaImageViewer.cxx -o
MetaImageViewer.o


but of course fails to find them.


So I conclude that install is not configured correctly and that
I will have to copy things in by hand.


cheers
Neil