[Insight-users] InsightApplications won't compile

Luis Ibanez luis.ibanez at kitware.com
Sun Nov 8 14:43:07 EST 2009


Hi Michael,

Strange,...

Your most recent list of errors indicate that now you don't have
compilation errors but link errors:

Could you please try not using :

                                        make  -j4

but just

                                         make


and let us know if that makes any difference ?


     Thanks


          Luis



----------------------------------------------------------------------------------
On Wed, Nov 4, 2009 at 10:11 AM, Michael Mentink
<michael.mentink at st-hughs.ox.ac.uk> wrote:
> Hi Luis,
>
> I suspect it has something to do with FLTK, like you suggested before, rather than any permissions.
> I have installed everything (ITK, VTK, FLTK) in an outsource directory /MMprogs,
> and I have set up the ccmake settings accordingly.
>
> Kind regards,
>
> Michael
>
> make -j4
> [  0%] [  0%] Building CXX object LevelSetSegmentation/CMakeFiles/itk2DCannySegmentationLevelSetImageFilter.dir/itk2DCannySegmentationLevelSetImageFilter.o
> [  0%] Building CXX object AnisotropicDiffusionImageFilter/CMakeFiles/itk2DAnisotropicDiffusionImageFilter.dir/itk2DAnisotropicDiffusionImageFilter.o
....
> make[1]: *** Waiting for unfinished jobs....
> [ 21%] Building CXX object CannyLevelSet/CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSetGUI.o
> Linking CXX executable CannySegmentationLevelSet
> [ 21%] Built target ConvertBetweenFileFormats
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o: In function `~CannySegmentationLevelSet':
> /MMprogs/InsightApplications-3.16.0_src/CannyLevelSet/CannySegmentationLevelSet.cxx:115: undefined reference to `CannySegmentationLevelSetGUI::~CannySegmentationLevelSetGUI()'
> /MMprogs/InsightApplications-3.16.0_src/CannyLevelSet/CannySegmentationLevelSet.cxx:115: undefined reference to `CannySegmentationLevelSetGUI::~CannySegmentationLevelSetGUI()'
> /MMprogs/InsightApplications-3.16.0_src/CannyLevelSet/CannySegmentationLevelSet.cxx:115: undefined reference to `CannySegmentationLevelSetGUI::~CannySegmentationLevelSetGUI()'
> /MMprogs/InsightApplications-3.16.0_src/CannyLevelSet/CannySegmentationLevelSet.cxx:115: undefined reference to `CannySegmentationLevelSetGUI::~CannySegmentationLevelSetGUI()'
> /MMprogs/InsightApplications-3.16.0_src/CannyLevelSet/CannySegmentationLevelSet.cxx:115: undefined reference to `CannySegmentationLevelSetGUI::~CannySegmentationLevelSetGUI()'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o:/MMprogs/InsightApplications-3.16.0_src/CannyLevelSet/CannySegmentationLevelSet.cxx:115: more undefined references to `CannySegmentationLevelSetGUI::~CannySegmentationLevelSetGUI()' follow
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o: In function `~ImageViewer':
> /MMprogs/InsightApplications-3.16.0_src/Auxiliary/FltkImageViewer/fltkImageViewer.txx:36: undefined reference to `fltkImageViewerGUI::~fltkImageViewerGUI()'
> /MMprogs/InsightApplications-3.16.0_src/Auxiliary/FltkImageViewer/fltkImageViewer.txx:36: undefined reference to `fltkImageViewerGUI::~fltkImageViewerGUI()'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o: In function `ImageViewer':
> /MMprogs/InsightApplications-3.16.0_src/Auxiliary/FltkImageViewer/fltkImageViewer.txx:25: undefined reference to `fltkImageViewerGUI::fltkImageViewerGUI()'
> /MMprogs/InsightApplications-3.16.0_src/Auxiliary/FltkImageViewer/fltkImageViewer.txx:28: undefined reference to `fltkImageViewerGUI::~fltkImageViewerGUI()'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o:(.rodata._ZTV25CannySegmentationLevelSet[vtable for CannySegmentationLevelSet]+0x50): undefined reference to `CannySegmentationLevelSetGUI::Load()'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o:(.rodata._ZTV25CannySegmentationLevelSet[vtable for CannySegmentationLevelSet]+0x54): undefined reference to `CannySegmentationLevelSetGUI::ShowAbout()'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o:(.rodata._ZTV25CannySegmentationLevelSet[vtable for CannySegmentationLevelSet]+0x64): undefined reference to `CannySegmentationLevelSetGUI::UpdateExtract()'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o:(.rodata._ZTI25CannySegmentationLevelSet[typeinfo for CannySegmentationLevelSet]+0x8): undefined reference to `typeinfo for CannySegmentationLevelSetGUI'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o:(.rodata._ZTVN4fltk11ImageViewerIfhEE[vtable for fltk::ImageViewer<float, unsigned char>]+0x14): undefined reference to `fltkImageViewerGUI::AddMenuBarOptions()'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o:(.rodata._ZTVN4fltk11ImageViewerIfhEE[vtable for fltk::ImageViewer<float, unsigned char>]+0x18): undefined reference to `fltkImageViewerGUI::AddFilterMenuOptions()'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o:(.rodata._ZTVN4fltk11ImageViewerIfhEE[vtable for fltk::ImageViewer<float, unsigned char>]+0x1c): undefined reference to `fltkImageViewerGUI::AddFileMenuOptions()'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSet.o:(.rodata._ZTIN4fltk11ImageViewerIfhEE[typeinfo for fltk::ImageViewer<float, unsigned char>]+0x8): undefined reference to `typeinfo for fltkImageViewerGUI'
> CMakeFiles/CannySegmentationLevelSet.dir/CannySegmentationLevelSetGUI.o: In function `CannySegmentationLevelSetGUI':
> /MMprogs/InsightApplications-3.16.0_src/CannyLevelSet/CannySegmentationLevelSetGUI.cxx:201: undefined reference to `vtable for CannySegmentationLevelSetGUI'
> /MMprogs/InsightApplications-3.16.0_src/CannyLevelSet/CannySegmentationLevelSetGUI.cxx:201: undefined reference to `vtable for CannySegmentationLevelSetGUI'
> /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]: *** [CannyLevelSet/CannySegmentationLevelSet] Error 1
> make[1]: *** [CannyLevelSet/CMakeFiles/CannySegmentationLevelSet.dir/all] Error 2
> make: *** [all] Error 2
>
>
> Michael Mentink
> Oxford Orthopaedic Engineering Centre
> telephone 01865227451
>
> ________________________________________


More information about the Insight-users mailing list