[Insight-users] Building the GUI Applications

George Iordanescu giordanescu at cmr.nunet.net
Mon, 9 Feb 2004 16:30:29 -0600


Hello everybody,

I am trying to build the ITK applications and I get the error below. If I 
comment this line: 
#SUBDIRS(DistanceMapFilter)
from the insight Applications CMakeLists.txt file, I am able to build the 
DicomViewer application but not the GaussianFilter. 

I am building the Applications with the next options:
 BUILD_SHARED_LIBS                			OFF
 BUILD_TESTING                    			OFF
 CMAKE_BACKWARDS_COMPATIBILITY    	1.8
 CMAKE_BUILD_TYPE
 CMAKE_INSTALL_PREFIX             		/usr/local
 DART_ROOT                        			DART_ROOT-NOTFOUND
 EXECUTABLE_OUTPUT_PATH
 LIBRARY_OUTPUT_PATH
 USE_FLTK                         			ON
 USE_VTK                          			ON

Does anybody know how to fix this error. I am using ITK 1.6., and I work on a 
HPLinux machine. Thank you very much.

George

[giordanescu at hp4000 Applications]$ make
Building dependencies. cmake.depends...
Warning: CMake is forcing CMAKE_CXX_COMPILER to "/usr/bin/g++" to match that 
imported from ITK.  This is required because C++ projects must use the same 
compiler.  If this message appears for more than one imported project, you 
have conflicting C++ compilers and will have to re-build one of those 
projects.
Warning: CMake is forcing CMAKE_CXX_COMPILER to "c++" to match that imported 
from VTK.  This is required because C++ projects must use the same compiler.  
If this message appears for more than one imported project, you have 
conflicting C++ compilers and will have to re-build one of those projects.
-- Loading VTK CMake commands
-- Loading VTK CMake commands - done
Warning: CMake is forcing CMAKE_CXX_COMPILER to "/usr/bin/g++" to match that 
imported from ITK.  This is required because C++ projects must use the same 
compiler.  If this message appears for more than one imported project, you 
have conflicting C++ compilers and will have to re-build one of those 
projects.
Warning: CMake is forcing CMAKE_CXX_COMPILER to "c++" to match that imported 
from VTK.  This is required because C++ projects must use the same compiler.  
If this message appears for more than one imported project, you have 
conflicting C++ compilers and will have to re-build one of those projects.
-- 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/FltkImageViewer: 
building default_target
Building dependencies. cmake.depends...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkClippingPlane3DDrawerGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkDisplayGlWindowGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkDisplayGlWindowFlatGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkFrustumFunctionControlGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkImageViewerGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkImage2DViewerGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkRGBImage2DViewerGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkRegularStepGradientDescentGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkSlice2DDrawerGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkSlice3DDrawerGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/fltkSphereFunctionControlGUI.cxx...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/FltkImageViewer/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/VtkFltk: 
building default_target
Building dependencies. cmake.depends...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/VtkFltk/fltkVTKImageViewerGUI.cxx...
Building dependencies cmake.check_depends...
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/vtk: 
building default_target
Building dependencies. cmake.depends...
Building object file itkCurvatureFlowToVTK.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/vtk/itkCurvatureFlowToVTK...
Building object file itkPNGVTKtoITKtoVTK.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/vtk/itkPNGVTKtoITKtoVTK...
Building object file itkVTKtoITKtoVTK.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/vtk/itkVTKtoITKtoVTK...
Building object file vtk2itk.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/vtk/vtk2itk...
Building object file vtk2itkDouble.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/Auxiliary/vtk/vtk2itkDouble...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/AnisotropicDiffusionImageFilter: 
building default_target
Building dependencies. cmake.depends...
Building object file itk2DAnisotropicDiffusionImageFilter.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/AnisotropicDiffusionImageFilter/itk2DAnisotropicDiffusionImageFilter...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSegmentation: 
building default_target
Building dependencies. cmake.depends...
Building object file itk2DCannySegmentationLevelSetImageFilter.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSegmentation/itk2DCannySegmentationLevelSetImageFilter...
Building object file itk2DThresholdSegmentationLevelSetImageFilter.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSegmentation/itk2DThresholdSegmentationLevelSetImageFilter...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/ITKFilterLib: 
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/ITKFilterLib/Example_ITKFilterLibTest...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/ITKRegistrationLib: 
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/ITKRegistrationLib/Example_ITKRegistrationLibTest...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/StreamedWatershedSegmentation/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/AntiAliasBinaryImageFilter: 
building default_target
Building dependencies. cmake.depends...
Building object file itkAntiAliasBinaryImageFilterExample.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/AntiAliasBinaryImageFilter/itkAntiAliasBinaryImageFilterExample...
Building object file itkSampleDataGenerator.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/AntiAliasBinaryImageFilter/itkSampleDataGenerator...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/SimpleLevelSetsExample: 
building default_target
Building dependencies. cmake.depends...
Building object file itk2DSimpleLevelSetsExample.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/SimpleLevelSetsExample/itk2DSimpleLevelSetsExample...
Building object file itk3DSimpleLevelSetsExample.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/SimpleLevelSetsExample/itk3DSimpleLevelSetsExample...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/FloodFilledSpatialFunction: 
building default_target
Building dependencies. cmake.depends...
Building object file itkFloodFilledSpatialFunctionExample.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/FloodFilledSpatialFunction/itkFloodFilledSpatialFunctionExample...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/MultiResMIRegistration: 
building default_target
Building dependencies. cmake.depends...
Building object file MultiResMIRegistration.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/MultiResMIRegistration/MultiResMIRegistration...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/MIValidation: 
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/MIValidation/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/DICOMApp...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSurfaceProcessing: 
building default_target
Building dependencies. cmake.depends...
Building object file itk3DAnisotropicFourthOrderLevelSetImageFilter.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSurfaceProcessing/itk3DAnisotropicFourthOrderLevelSetImageFilter...
Building object file itk3DIsotropicFourthOrderLevelSetImageFilter.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSurfaceProcessing/itk3DIsotropicFourthOrderLevelSetImageFilter...
Building object file itk3DUnsharpMaskLevelSetImageFilter.o...
Building executable 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/LevelSetSurfaceProcessing/itk3DUnsharpMaskLevelSetImageFilter...
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DistanceMapFilter: 
building default_target
Building dependencies. cmake.depends...
Building Custom command 
/home/giordanescu/itk/InsightToolkit-1.6.0/build/Applications/DistanceMapFilter/DistanceMapFilterGUI.cxx...
Building object file DistanceMapFilterGUI.o...
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-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/InsightApplications-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/DistanceMapFilter/DistanceMapFilterGUI.cxx:48: 
  instantiated from here
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-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/InsightApplications-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/DistanceMapFilter/DistanceMapFilterGUI.cxx:48: 
  instantiated from here
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-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/InsightApplications-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/DistanceMapFilter/DistanceMapFilterGUI.cxx:48: 
  instantiated from here
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-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/InsightApplications-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/DistanceMapFilter/DistanceMapFilterGUI.cxx:48: 
  instantiated from here
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-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/InsightApplications-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/DistanceMapFilter/DistanceMapFilterGUI.cxx:48: 
  instantiated from here
/home/giordanescu/itk/InsightToolkit-1.6.0/source/Applications/InsightApplications-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
[giordanescu at hp4000 Applications]$