[Insight-users] Building the GUI Applications

George Iordanescu giordanescu at cmr.nunet.net
Tue, 10 Feb 2004 17:50:23 -0600


Hi Luis,

You were right... I was mixing ITK 1.4.0 with applications 1.60. I think I 
corrected this error and I built all applications except 
LandmarkInitializedMutualInformationRegistration and Snap. 

Here is the error when building  
LandmarkInitializedMutualInformationRegistration:
.................................................................................................................
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration: 
building default_target
Building dependencies. cmake.depends...
Building object file guiMain.o...
Building object file guiMainImplementation.o...
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/LandmarkSliceViewer.txx: 
In
method `bool LandmarkSliceViewer<TImagePixel>::IsLandmarkAvailable (unsigned 
int) [with TImagePixel =
short int]':
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/guiMainImplementation.cxx:457:
  instantiated from here
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/LandmarkSliceViewer.txx:133: 
nomatching function for call to `vector<itk::SpatialObjectPoint<3>, 
allocator<itk::SpatialObjectPoint<3>
> >::at (unsigned int &)'

/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/LandmarkSliceViewer.txx: 
In
method `void LandmarkSliceViewer<TImagePixel>::DeleteLandmark (unsigned int) 
[with TImagePixel = short
int]':
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/guiMainImplementation.cxx:464:
  instantiated from here
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/LandmarkSliceViewer.txx:198: 
nomatching function for call to `vector<itk::SpatialObjectPoint<3>, 
allocator<itk::SpatialObjectPoint<3>
> >::at (unsigned int &)'

/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/guiMainImplementation.cxx:464:
  instantiated from here
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/LandmarkSliceViewer.txx:204: 
nomatching function for call to `vector<itk::SpatialObjectPoint<3>, 
allocator<itk::SpatialObjectPoint<3>
> >::at (unsigned int &)'

/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/LandmarkSliceViewer.txx:205: 
nomatching function for call to `vector<itk::SpatialObjectPoint<3>, 
allocator<itk::SpatialObjectPoint<3>
> >::at (unsigned int &)'

/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/LandmarkSliceViewer.txx:206: 
nomatching function for call to `vector<itk::SpatialObjectPoint<3>, 
allocator<itk::SpatialObjectPoint<3>
> >::at (unsigned int &)'

/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/LandmarkSliceViewer.txx: 
In
method `bool LandmarkSliceViewer<TImagePixel>::GetLandmark (unsigned int, 
itk::SpatialObjectPoint<3> &)
[with TImagePixel = short int]':
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/guiMainImplementation.cxx:479:
  instantiated from here
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-1.6.0/LandmarkInitializedMutualInformationRegistration/LandmarkSliceViewer.txx:148: 
nomatching function for call to `vector<itk::SpatialObjectPoint<3>, 
allocator<itk::SpatialObjectPoint<3>
> >::at (unsigned int &)'

make[3]: *** [guiMainImplementation.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** 
[default_target_LandmarkInitializedMutualInformationRegistration] Error 2
make: *** [default_target] Error 2
[giordanescu at hp4000 InsightApplications-1.6.0]$
.................................................................................................................

Thank you for your help.

George


On Monday 09 February 2004 09:04 pm, you wrote:
> Hi George,
>
> Are you sure that you are using corresponding
> versions of Insight and InsightApplications ?
>
> It may seem that they don't match in your case.
>
> Please verify that you are using version 1.6
> of both Insight and InsightApplications.
>
> Do not mix CVS, 1.6, or 1.4 version of Insight
> with a different version of InsightApplications.
> The code in these two source trees evolves in
> sync and they must be used from a similar date.
>
>
> Regards,
>
>
>      Luis
>
>
> ----------------------------
>
> George Iordanescu wrote:
> > Hi Luis,
> >
> > Thank you for your quick reply.
> >
> > I rebuilt the VTK library so that ITK and VTK now use the same compilers
> > but I still have the same error (see below). It seems that
> > itk::ColorTable<float>::GetColorComponent() can not be called...
> >
> > Any ideas? Thank you.
> > George
> >
> > [giordanescu at hp4000 Applications]$ make
> > Building dependencies. cmake.depends...
> > -- Loading VTK CMake commands
> > -- Loading VTK CMake commands - done
> > -- Loading VTK CMake commands
> > -- Loading VTK CMake commands - done
> > cmake.depends is up-to-date
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary:
> > building default_target
> > Building dependencies. cmake.depends...
> > cmake.depends is up-to-date
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer: building default_target
> > Building dependencies. cmake.depends...
> > Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkClippingPlane3DDrawerGUI.cxx... Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkDisplayGlWindowGUI.cxx... Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkDisplayGlWindowFlatGUI.cxx... Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkFrustumFunctionControlGUI.cxx... Building Custom
> > command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkImageViewerGUI.cxx... Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkImage2DViewerGUI.cxx... Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkRGBImage2DViewerGUI.cxx... Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkRegularStepGradientDescentGUI.cxx... Building Custom
> > command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkSlice2DDrawerGUI.cxx... Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkSlice3DDrawerGUI.cxx... Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkSphereFunctionControlGUI.cxx... Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/F
> >ltkImageViewer/fltkTimeProbesCollectorGUI.cxx... Building object file
> > fltkClippingPlane3DDrawerGUI.o...
> > Building object file fltkDisplayGlWindowGUI.o...
> > Building object file fltkDisplayGlWindowFlatGUI.o...
> > Building object file fltkFrustumFunctionControlGUI.o...
> > Building object file fltkImageViewerGUI.o...
> > Building object file fltkImage2DViewerGUI.o...
> > Building object file fltkRGBImage2DViewerGUI.o...
> > Building object file fltkRegularStepGradientDescentGUI.o...
> > Building object file fltkSlice2DDrawerGUI.o...
> > Building object file fltkSlice3DDrawerGUI.o...
> > Building object file fltkSphereFunctionControlGUI.o...
> > Building object file fltkTimeProbesCollectorGUI.o...
> > Building object file fltkBox3D.o...
> > Building object file fltkCone3D.o...
> > Building object file fltkClippingPlane3DDrawer.o...
> > Building object file fltkCylinder3D.o...
> > Building object file fltkFrustum3D.o...
> > Building object file fltkGlWindow.o...
> > Building object file fltkGlWindowInteractive.o...
> > Building object file fltkGlWindowInteractiveFlat.o...
> > Building object file fltkImage2DViewerWindow.o...
> > Building object file fltkRGBImage2DViewerWindow.o...
> > Building object file fltkLightButton.o...
> > Building object file fltkProgressBar.o...
> > Building object file fltkShape3D.o...
> > Building object file fltkSphere3D.o...
> > Building object file fltkWindowInteractive.o...
> > Building object file fltkTimeProbeGUI.o...
> > Building object file fltkTimeProbesCollector.o...
> > Building object file fltkUtils.o...
> > Building static library libITKFltkImageViewer.a...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/V
> >tkFltk: building default_target
> > Building dependencies. cmake.depends...
> > Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/V
> >tkFltk/fltkVTKImageViewerGUI.cxx... Building object file
> > fltkVTKImageViewerGUI.o...
> > Building object file vtkFlRenderWindowInteractor.o...
> > Building object file fltkVTKImageViewerBase.o...
> > Building static library libITKVtkFltk.a...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/v
> >tk: building default_target
> > Building dependencies. cmake.depends...
> > Building object file itkCurvatureFlowToVTK.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/v
> >tk/itkCurvatureFlowToVTK... Building object file itkPNGVTKtoITKtoVTK.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/v
> >tk/itkPNGVTKtoITKtoVTK... Building object file itkVTKtoITKtoVTK.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/v
> >tk/itkVTKtoITKtoVTK... Building object file vtk2itk.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/v
> >tk/vtk2itk... Building object file vtk2itkDouble.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/v
> >tk/vtk2itkDouble...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Anisotropic
> >DiffusionImageFilter: building default_target
> > Building dependencies. cmake.depends...
> > Building object file itk2DAnisotropicDiffusionImageFilter.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Anisotropic
> >DiffusionImageFilter/itk2DAnisotropicDiffusionImageFilter...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSeg
> >mentation: building default_target
> > Building dependencies. cmake.depends...
> > Building object file itk2DCannySegmentationLevelSetImageFilter.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSeg
> >mentation/itk2DCannySegmentationLevelSetImageFilter... Building object
> > file itk2DThresholdSegmentationLevelSetImageFilter.o... Building
> > executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSeg
> >mentation/itk2DThresholdSegmentationLevelSetImageFilter...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/ITKFilterLi
> >b: building default_target
> > Building dependencies. cmake.depends...
> > Building object file ITKFilterLib.o...
> > Building static library libExample_ITKFilterLib.a...
> > Building object file ITKFilterLibTest.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/ITKFilterLi
> >b/Example_ITKFilterLibTest...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/ITKRegistra
> >tionLib: building default_target
> > Building dependencies. cmake.depends...
> > Building object file ITKRegistrationLib.o...
> > Building static library libExample_ITKRegistrationLib.a...
> > Building object file ITKRegistrationLibTest.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/ITKRegistra
> >tionLib/Example_ITKRegistrationLibTest...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/StreamedWat
> >ershedSegmentation/ParameterFileParser: building default_target
> > Building dependencies. cmake.depends...
> > Building object file lex.yy.o...
> > Building object file y.tab.o...
> > Building object file param.o...
> > Building static library libparam.a...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/AntiAliasBi
> >naryImageFilter: building default_target
> > Building dependencies. cmake.depends...
> > Building object file itkAntiAliasBinaryImageFilterExample.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/AntiAliasBi
> >naryImageFilter/itkAntiAliasBinaryImageFilterExample... Building object
> > file itkSampleDataGenerator.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/AntiAliasBi
> >naryImageFilter/itkSampleDataGenerator...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/SimpleLevel
> >SetsExample: building default_target
> > Building dependencies. cmake.depends...
> > Building object file itk2DSimpleLevelSetsExample.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/SimpleLevel
> >SetsExample/itk2DSimpleLevelSetsExample... Building object file
> > itk3DSimpleLevelSetsExample.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/SimpleLevel
> >SetsExample/itk3DSimpleLevelSetsExample...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/FloodFilled
> >SpatialFunction: building default_target
> > Building dependencies. cmake.depends...
> > Building object file itkFloodFilledSpatialFunctionExample.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/FloodFilled
> >SpatialFunction/itkFloodFilledSpatialFunctionExample...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/MultiResMIR
> >egistration: building default_target
> > Building dependencies. cmake.depends...
> > Building object file MultiResMIRegistration.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/MultiResMIR
> >egistration/MultiResMIRegistration...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/MIValidatio
> >n: building default_target
> > Building dependencies. cmake.depends...
> > Building object file MIValidationApp.o...
> > Building object file VanderbiltModality.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/MIValidatio
> >n/MIValidationApp...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DICOMApp:
> > building default_target
> > Building dependencies. cmake.depends...
> > Building object file main.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DICOMApp/DI
> >COMApp...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSur
> >faceProcessing: building default_target
> > Building dependencies. cmake.depends...
> > Building object file itk3DAnisotropicFourthOrderLevelSetImageFilter.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSur
> >faceProcessing/itk3DAnisotropicFourthOrderLevelSetImageFilter... Building
> > object file itk3DIsotropicFourthOrderLevelSetImageFilter.o... Building
> > executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSur
> >faceProcessing/itk3DIsotropicFourthOrderLevelSetImageFilter... Building
> > object file itk3DUnsharpMaskLevelSetImageFilter.o...
> > Building executable
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSur
> >faceProcessing/itk3DUnsharpMaskLevelSetImageFilter...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DistanceMap
> >Filter: building default_target
> > Building dependencies. cmake.depends...
> > Building Custom command
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DistanceMap
> >Filter/DistanceMapFilterGUI.cxx... Building object file
> > DistanceMapFilterGUI.o...
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/GLSliceView.h: In
> > method `void itk::GLSliceView<ImagePixelType, OverlayPixelType>::update
> > () [with ImagePixelType = short
> > unsigned int, OverlayPixelType = unsigned char]':
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/fltkImageViewer.txx:113:
> > instantiated from `fltk::ImageViewer<ImagePixelType,
> > OverlayPixelType>::Show () [with ImagePixelType = short unsigned int,
> > OverlayPixelType = unsigned char]'
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DistanceMap
> >Filter/DistanceMapFilterGUI.cxx:48: instantiated from here
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/GLSliceView.h:721: no
> > matching function for call to `itk::ColorTable<float>::GetNumberOfColors
> > ()'
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/fltkImageViewer.txx:113:
> > instantiated from `fltk::ImageViewer<ImagePixelType,
> > OverlayPixelType>::Show () [with ImagePixelType = short unsigned int,
> > OverlayPixelType = unsigned char]'
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DistanceMap
> >Filter/DistanceMapFilterGUI.cxx:48: instantiated from here
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/GLSliceView.h:723: no
> > matching function for call to `itk::ColorTable<float>::GetNumberOfColors
> > ()'
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/fltkImageViewer.txx:113:
> > instantiated from `fltk::ImageViewer<ImagePixelType,
> > OverlayPixelType>::Show () [with ImagePixelType = short unsigned int,
> > OverlayPixelType = unsigned char]'
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DistanceMap
> >Filter/DistanceMapFilterGUI.cxx:48: instantiated from here
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/GLSliceView.h:728: no
> > matching function for call to `itk::ColorTable<float>::GetColorComponent
> > (unsigned int &, char)'
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/fltkImageViewer.txx:113:
> > instantiated from `fltk::ImageViewer<ImagePixelType,
> > OverlayPixelType>::Show () [with ImagePixelType = short unsigned int,
> > OverlayPixelType = unsigned char]'
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DistanceMap
> >Filter/DistanceMapFilterGUI.cxx:48: instantiated from here
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/GLSliceView.h:731: no
> > matching function for call to `itk::ColorTable<float>::GetColorComponent
> > (unsigned int &, char)'
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/fltkImageViewer.txx:113:
> > instantiated from `fltk::ImageViewer<ImagePixelType,
> > OverlayPixelType>::Show () [with ImagePixelType = short unsigned int,
> > OverlayPixelType = unsigned char]'
> > /home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DistanceMap
> >Filter/DistanceMapFilterGUI.cxx:48: instantiated from here
> > /home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApp
> >lications-1.6.0/Auxiliary/FltkImageViewer/GLSliceView.h:733: no
> > matching function for call to `itk::ColorTable<float>::GetColorComponent
> > (unsigned int &, char)'
> > make[3]: *** [DistanceMapFilterGUI.o] Error 1
> > make[2]: *** [default_target] Error 2
> > make[1]: *** [default_target_DistanceMapFilter] Error 2
> > make: *** [default_target] Error 2
> >
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users