I can't get InsightApllications 3.16 to build/link I have succesfully built/compiled ITK, VTK, DCMTK, FLTK, all in g++4.3.3 in Ubuntu 9.04, using the following files: - vtk-5.4.2.tar.gz - fltk-1.3.x-r6916.tar.bz2 - dcmtk-3.5.4.tar.gz - InsightToolkit-3.16.0.tar.gz - InsightApplications-3.16.0.tar.gz - Cmake 2.6 patch 2 below is the cmake output (copied from ubuntu terminal) What to do? Thanks, Michael [ 36%] Building CXX object CellularSegmentation/CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplicationBase.o /MMprogs/InsightApplications-3.16.0_src/DeformableRegistration3DTimeSeries/DicomImageReaderGUI.cxx:83: error: ‘DeformableRegistration3DTimeSeriesGUI’ has not been declared make[2]: *** [DeformableRegistration3DTimeSeries/CMakeFiles/DeformableRegistration3DTimeSeries.dir/DicomImageReaderGUI.o] Error 1 make[1]: *** [DeformableRegistration3DTimeSeries/CMakeFiles/DeformableRegistration3DTimeSeries.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 36%] Building CXX object CellularSegmentation/CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplication.o CMakeFiles/DeformableModelSimplexMesh.dir/DeformableModelApplication.o: In function `DeformableModelApplication::~DeformableModelApplication()': DeformableModelApplication.cxx:(.text+0x2525): undefined reference to `DeformableModelApplicationGUI::~DeformableModelApplicationGUI()' DeformableModelApplication.cxx:(.text+0x254d): undefined reference to `DeformableModelApplicationGUI::~DeformableModelApplicationGUI()' CMakeFiles/DeformableModelSimplexMesh.dir/DeformableModelApplication.o: In function `DeformableModelApplication::~DeformableModelApplication()': DeformableModelApplication.cxx:(.text+0x2893): undefined reference to `DeformableModelApplicationGUI::~DeformableModelApplicationGUI()' DeformableModelApplication.cxx:(.text+0x28bb): undefined reference to `DeformableModelApplicationGUI::~DeformableModelApplicationGUI()' CMakeFiles/DeformableModelSimplexMesh.dir/DeformableModelApplication.o: In function `DeformableModelApplication::~DeformableModelApplication()': DeformableModelApplication.cxx:(.text+0x2c01): undefined reference to `DeformableModelApplicationGUI::~DeformableModelApplicationGUI()' CMakeFiles/DeformableModelSimplexMesh.dir/DeformableModelApplication.o:DeformableModelApplication.cxx:(.text+0x2c29): more undefined references to `DeformableModelApplicationGUI::~DeformableModelApplicationGUI()' follow CMakeFiles/DeformableModelSimplexMesh.dir/DeformableModelApplication.o:(.rodata._ZTV26DeformableModelApplication[vtable for DeformableModelApplication]+0x1c): undefined reference to `DeformableModelApplicationGUI::Help()' CMakeFiles/DeformableModelSimplexMesh.dir/DeformableModelApplication.o:(.rodata._ZTI26DeformableModelApplication[typeinfo for DeformableModelApplication]+0x8): undefined reference to `typeinfo for DeformableModelApplicationGUI' CMakeFiles/DeformableModelSimplexMesh.dir/DeformableModelApplicationGUI.o: In function `DeformableModelApplicationGUI::DeformableModelApplicationGUI()': DeformableModelApplicationGUI.cxx:(.text+0x63d): undefined reference to `vtable for DeformableModelApplicationGUI' CMakeFiles/DeformableModelSimplexMesh.dir/DeformableModelApplicationGUI.o: In function `DeformableModelApplicationGUI::DeformableModelApplicationGUI()': DeformableModelApplicationGUI.cxx:(.text+0x19ef): undefined reference to `vtable for DeformableModelApplicationGUI' /MMprogs/FLTK_bin/lib/libfltk.a(screen_xywh.o): In function `screen_init()': screen_xywh.cxx:(.text+0x1e): undefined reference to `XineramaIsActive' screen_xywh.cxx:(.text+0x37): undefined reference to `XineramaQueryScreens' collect2: ld returned 1 exit status make[2]: *** [DeformableModelSimplexMesh/DeformableModelSimplexMesh] Error 1 make[1]: *** [DeformableModelSimplexMesh/CMakeFiles/DeformableModelSimplexMesh.dir/all] Error 2 [ 36%] Building CXX object CellularSegmentation/CMakeFiles/CellularSegmentation.dir/CellularAggregateViewer.o [ 36%] Building CXX object ImageRegistration2D/CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsoleBase.o [ 36%] Building CXX object CellularSegmentation/CMakeFiles/CellularSegmentation.dir/ImageSliceViewer.o [ 36%] Building CXX object CellularSegmentation/CMakeFiles/CellularSegmentation.dir/InteractorObserver.o [ 37%] Building CXX object ImageRegistration2D/CMakeFiles/ImageRegistration2D.dir/ImageRegistration2D.o [ 37%] Building CXX object CellularSegmentation/CMakeFiles/CellularSegmentation.dir/main.o [ 38%] Building CXX object CellularSegmentation/CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplicationGUI.o [ 38%] Building CXX object ImageRegistration2D/CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsoleGUI.o Linking CXX executable CellularSegmentation CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplication.o: In function `CellularSegmentationApplication::~CellularSegmentationApplication()': CellularSegmentationApplication.cxx:(.text+0x8dc): undefined reference to `CellularSegmentationApplicationGUI::~CellularSegmentationApplicationGUI()' CellularSegmentationApplication.cxx:(.text+0x904): undefined reference to `CellularSegmentationApplicationGUI::~CellularSegmentationApplicationGUI()' CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplication.o: In function `CellularSegmentationApplication::~CellularSegmentationApplication()': CellularSegmentationApplication.cxx:(.text+0xa1c): undefined reference to `CellularSegmentationApplicationGUI::~CellularSegmentationApplicationGUI()' CellularSegmentationApplication.cxx:(.text+0xa44): undefined reference to `CellularSegmentationApplicationGUI::~CellularSegmentationApplicationGUI()' CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplication.o: In function `CellularSegmentationApplication::~CellularSegmentationApplication()': CellularSegmentationApplication.cxx:(.text+0xb5c): undefined reference to `CellularSegmentationApplicationGUI::~CellularSegmentationApplicationGUI()' CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplication.o:CellularSegmentationApplication.cxx:(.text+0xb84): more undefined references to `CellularSegmentationApplicationGUI::~CellularSegmentationApplicationGUI()' follow CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplication.o:(.rodata._ZTI31CellularSegmentationApplication[typeinfo for CellularSegmentationApplication]+0x8): undefined reference to `typeinfo for CellularSegmentationApplicationGUI' CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplicationGUI.o: In function `CellularSegmentationApplicationGUI::CellularSegmentationApplicationGUI()': CellularSegmentationApplicationGUI.cxx:(.text+0x270): undefined reference to `vtable for CellularSegmentationApplicationGUI' CMakeFiles/CellularSegmentation.dir/CellularSegmentationApplicationGUI.o: In function `CellularSegmentationApplicationGUI::CellularSegmentationApplicationGUI()': CellularSegmentationApplicationGUI.cxx:(.text+0x980): undefined reference to `vtable for CellularSegmentationApplicationGUI' /MMprogs/FLTK_bin/lib/libfltk.a(screen_xywh.o): In function `screen_init()': screen_xywh.cxx:(.text+0x1e): undefined reference to `XineramaIsActive' screen_xywh.cxx:(.text+0x37): undefined reference to `XineramaQueryScreens' collect2: ld returned 1 exit status make[2]: *** [CellularSegmentation/CellularSegmentation] Error 1 make[1]: *** [CellularSegmentation/CMakeFiles/CellularSegmentation.dir/all] Error 2 Linking CXX executable ImageRegistration2D CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `ImageRegistrationConsole::~ImageRegistrationConsole()': ImageRegistrationConsole.cxx:(.text+0x16fa): undefined reference to `ImageRegistrationConsoleGUI::~ImageRegistrationConsoleGUI()' ImageRegistrationConsole.cxx:(.text+0x1722): undefined reference to `ImageRegistrationConsoleGUI::~ImageRegistrationConsoleGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `ImageRegistrationConsole::~ImageRegistrationConsole()': ImageRegistrationConsole.cxx:(.text+0x1988): undefined reference to `ImageRegistrationConsoleGUI::~ImageRegistrationConsoleGUI()' ImageRegistrationConsole.cxx:(.text+0x19b0): undefined reference to `ImageRegistrationConsoleGUI::~ImageRegistrationConsoleGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `ImageRegistrationConsole::~ImageRegistrationConsole()': ImageRegistrationConsole.cxx:(.text+0x1c16): undefined reference to `ImageRegistrationConsoleGUI::~ImageRegistrationConsoleGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:ImageRegistrationConsole.cxx:(.text+0x1c3e): more undefined references to `ImageRegistrationConsoleGUI::~ImageRegistrationConsoleGUI()' follow CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `fltk::RegularStepGradientDescent::~RegularStepGradientDescent()': ImageRegistrationConsole.cxx:(.text._ZN4fltk26RegularStepGradientDescentD1Ev[fltk::RegularStepGradientDescent::~RegularStepGradientDescent()]+0x2c): undefined reference to `RegularStepGradientDescentGUI::~RegularStepGradientDescentGUI()' ImageRegistrationConsole.cxx:(.text._ZN4fltk26RegularStepGradientDescentD1Ev[fltk::RegularStepGradientDescent::~RegularStepGradientDescent()]+0x50): undefined reference to `RegularStepGradientDescentGUI::~RegularStepGradientDescentGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `fltk::RegularStepGradientDescent::~RegularStepGradientDescent()': ImageRegistrationConsole.cxx:(.text._ZN4fltk26RegularStepGradientDescentD0Ev[fltk::RegularStepGradientDescent::~RegularStepGradientDescent()]+0x2c): undefined reference to `RegularStepGradientDescentGUI::~RegularStepGradientDescentGUI()' ImageRegistrationConsole.cxx:(.text._ZN4fltk26RegularStepGradientDescentD0Ev[fltk::RegularStepGradientDescent::~RegularStepGradientDescent()]+0x50): undefined reference to `RegularStepGradientDescentGUI::~RegularStepGradientDescentGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `fltk::RegularStepGradientDescent::RegularStepGradientDescent()': ImageRegistrationConsole.cxx:(.text._ZN4fltk26RegularStepGradientDescentC1Ev[fltk::RegularStepGradientDescent::RegularStepGradientDescent()]+0xa6): undefined reference to `RegularStepGradientDescentGUI::~RegularStepGradientDescentGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `fltk::Image2DViewer::~Image2DViewer()': ImageRegistrationConsole.cxx:(.text._ZN4fltk13Image2DViewerIfED0Ev[fltk::Image2DViewer::~Image2DViewer()]+0x7f): undefined reference to `fltkImage2DViewerGUI::~fltkImage2DViewerGUI()' ImageRegistrationConsole.cxx:(.text._ZN4fltk13Image2DViewerIfED0Ev[fltk::Image2DViewer::~Image2DViewer()]+0xa1): undefined reference to `fltkImage2DViewerGUI::~fltkImage2DViewerGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `fltk::Image2DViewer::~Image2DViewer()': ImageRegistrationConsole.cxx:(.text._ZN4fltk13Image2DViewerIfED1Ev[fltk::Image2DViewer::~Image2DViewer()]+0x7f): undefined reference to `fltkImage2DViewerGUI::~fltkImage2DViewerGUI()' ImageRegistrationConsole.cxx:(.text._ZN4fltk13Image2DViewerIfED1Ev[fltk::Image2DViewer::~Image2DViewer()]+0xa1): undefined reference to `fltkImage2DViewerGUI::~fltkImage2DViewerGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `fltk::Image2DViewer::~Image2DViewer()': ImageRegistrationConsole.cxx:(.text._ZN4fltk13Image2DViewerItED0Ev[fltk::Image2DViewer::~Image2DViewer()]+0x7f): undefined reference to `fltkImage2DViewerGUI::~fltkImage2DViewerGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:ImageRegistrationConsole.cxx:(.text._ZN4fltk13Image2DViewerItED0Ev[fltk::Image2DViewer::~Image2DViewer()]+0xa1): more undefined references to `fltkImage2DViewerGUI::~fltkImage2DViewerGUI()' follow CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `fltk::RGBImage2DViewer::RGBImage2DViewer()': ImageRegistrationConsole.cxx:(.text._ZN4fltk16RGBImage2DViewerItEC1Ev[fltk::RGBImage2DViewer::RGBImage2DViewer()]+0x26e): undefined reference to `fltkRGBImage2DViewerGUI::~fltkRGBImage2DViewerGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `fltk::RGBImage2DViewer::~RGBImage2DViewer()': ImageRegistrationConsole.cxx:(.text._ZN4fltk16RGBImage2DViewerItED0Ev[fltk::RGBImage2DViewer::~RGBImage2DViewer()]+0x1e9): undefined reference to `fltkRGBImage2DViewerGUI::~fltkRGBImage2DViewerGUI()' ImageRegistrationConsole.cxx:(.text._ZN4fltk16RGBImage2DViewerItED0Ev[fltk::RGBImage2DViewer::~RGBImage2DViewer()]+0x20b): undefined reference to `fltkRGBImage2DViewerGUI::~fltkRGBImage2DViewerGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o: In function `fltk::RGBImage2DViewer::~RGBImage2DViewer()': ImageRegistrationConsole.cxx:(.text._ZN4fltk16RGBImage2DViewerItED1Ev[fltk::RGBImage2DViewer::~RGBImage2DViewer()]+0x1e9): undefined reference to `fltkRGBImage2DViewerGUI::~fltkRGBImage2DViewerGUI()' ImageRegistrationConsole.cxx:(.text._ZN4fltk16RGBImage2DViewerItED1Ev[fltk::RGBImage2DViewer::~RGBImage2DViewer()]+0x20b): undefined reference to `fltkRGBImage2DViewerGUI::~fltkRGBImage2DViewerGUI()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTV24ImageRegistrationConsole[vtable for ImageRegistrationConsole]+0x54): undefined reference to `ImageRegistrationConsoleGUI::Load()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTV24ImageRegistrationConsole[vtable for ImageRegistrationConsole]+0x58): undefined reference to `ImageRegistrationConsoleGUI::ShowAbout()' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTI24ImageRegistrationConsole[typeinfo for ImageRegistrationConsole]+0x8): undefined reference to `typeinfo for ImageRegistrationConsoleGUI' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTVN4fltk26RegularStepGradientDescentE[vtable for fltk::RegularStepGradientDescent]+0x1c): undefined reference to `RegularStepGradientDescentGUI::SetMaximumNumberOfIterations(double)' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTIN4fltk26RegularStepGradientDescentE[typeinfo for fltk::RegularStepGradientDescent]+0x8): undefined reference to `typeinfo for RegularStepGradientDescentGUI' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTIN4fltk13Image2DViewerIfEE[typeinfo for fltk::Image2DViewer]+0x18): undefined reference to `typeinfo for fltkImage2DViewerGUI' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTIN4fltk13Image2DViewerItEE[typeinfo for fltk::Image2DViewer]+0x18): undefined reference to `typeinfo for fltkImage2DViewerGUI' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTIN4fltk16RGBImage2DViewerItEE[typeinfo for fltk::RGBImage2DViewer]+0x18): undefined reference to `typeinfo for fltkRGBImage2DViewerGUI' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTVN4fltk16RGBImage2DViewerItEE[vtable for fltk::RGBImage2DViewer]+0x80): undefined reference to `fltkRGBImage2DViewerGUI::SetMin(double)' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsole.o:(.rodata._ZTVN4fltk16RGBImage2DViewerItEE[vtable for fltk::RGBImage2DViewer]+0x84): undefined reference to `fltkRGBImage2DViewerGUI::SetMax(double)' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsoleGUI.o: In function `ImageRegistrationConsoleGUI::ImageRegistrationConsoleGUI()': ImageRegistrationConsoleGUI.cxx:(.text+0x7a5): undefined reference to `vtable for ImageRegistrationConsoleGUI' CMakeFiles/ImageRegistration2D.dir/ImageRegistrationConsoleGUI.o: In function `ImageRegistrationConsoleGUI::ImageRegistrationConsoleGUI()': ImageRegistrationConsoleGUI.cxx:(.text+0x4cd3): undefined reference to `vtable for ImageRegistrationConsoleGUI' ../VolviewPlugIns/bin/libITKFltkImageViewer.a(fltkImage2DViewerGUI.o): In function `fltkImage2DViewerGUI::fltkImage2DViewerGUI()': fltkImage2DViewerGUI.cxx:(.text+0x211): undefined reference to `vtable for fltkImage2DViewerGUI' ../VolviewPlugIns/bin/libITKFltkImageViewer.a(fltkImage2DViewerGUI.o): In function `fltkImage2DViewerGUI::fltkImage2DViewerGUI()': fltkImage2DViewerGUI.cxx:(.text+0x65d): undefined reference to `vtable for fltkImage2DViewerGUI' ../VolviewPlugIns/bin/libITKFltkImageViewer.a(fltkRGBImage2DViewerGUI.o): In function `fltkRGBImage2DViewerGUI::fltkRGBImage2DViewerGUI()': fltkRGBImage2DViewerGUI.cxx:(.text+0x1c1): undefined reference to `vtable for fltkRGBImage2DViewerGUI' ../VolviewPlugIns/bin/libITKFltkImageViewer.a(fltkRGBImage2DViewerGUI.o): In function `fltkRGBImage2DViewerGUI::fltkRGBImage2DViewerGUI()': fltkRGBImage2DViewerGUI.cxx:(.text+0x5c3): undefined reference to `vtable for fltkRGBImage2DViewerGUI' ../VolviewPlugIns/bin/libITKFltkImageViewer.a(fltkRegularStepGradientDescentGUI.o): In function `RegularStepGradientDescentGUI::RegularStepGradientDescentGUI()': fltkRegularStepGradientDescentGUI.cxx:(.text+0x33d): undefined reference to `vtable for RegularStepGradientDescentGUI' ../VolviewPlugIns/bin/libITKFltkImageViewer.a(fltkRegularStepGradientDescentGUI.o): In function `RegularStepGradientDescentGUI::RegularStepGradientDescentGUI()': fltkRegularStepGradientDescentGUI.cxx:(.text+0x8f1): undefined reference to `vtable for RegularStepGradientDescentGUI' /MMprogs/FLTK_bin/lib/libfltk.a(screen_xywh.o): In function `screen_init()': screen_xywh.cxx:(.text+0x1e): undefined reference to `XineramaIsActive' screen_xywh.cxx:(.text+0x37): undefined reference to `XineramaQueryScreens' collect2: ld returned 1 exit status make[2]: *** [ImageRegistration2D/ImageRegistration2D] Error 1 make[1]: *** [ImageRegistration2D/CMakeFiles/ImageRegistration2D.dir/all] Error 2 make: *** [all] Error 2