<div>Dear ITK-users,</div> <div> </div> <div>I am a new person to ITK. I am trying to rebuild regionGrowingsegmentation application outside of the ITK application Tree. But I got the following link errors. the CMakeLists.txt that I used is: (fltk1.1.7, itk2.8.1, vtk5), Could you please give me some hints on this issue. Thank you very much. Richard.</div> <div> </div> <div>PROJECT( RegionGrowingSegmentation )</div> <div>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR> INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR> MESSAGE(FATAL_ERROR<BR> "Cannot build InsightApplications without ITK. Please set ITK_DIR.")<BR>ENDIF(ITK_FOUND)</div> <div>FIND_PACKAGE(FLTK)<BR>IF(FLTK_FOUND)<BR> INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>ENDIF(FLTK_FOUND)</div> <div>FIND_PACKAGE(VTK)<BR>IF (VTK_FOUND)<BR> INCLUDE (${VTK_USE_FILE})<BR>ENDIF (VTK_FOUND)</div>
<div>FIND_PATH(InsightApplications_SOURCE_DIR CMakeList.txt)<BR>FIND_PATH(InsightApplications_BINARY_DIR CMakeCache.txt)<BR>FIND_LIBRARY(FltkImageViewer_LIB NAMES FltkImageViewer)<BR>FIND_LIBRARY(VtkFltk_LIB NAMES VtkFltk)</div> <div>INCLUDE_DIRECTORIES(<BR>${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer<BR>${InsightApplications_SOURCE_DIR}/Auxiliary/VtkFltk<BR>${InsightApplications_SOURCE_DIR}/Auxiliary/vtk<BR>${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer<BR>${InsightApplications_BINARY_DIR}/Auxiliary/VtkFltk<BR>${RegionGrowingSegmentation_SOURCE_DIR}<BR>${RegionGrowingSegmentation_BINARY_DIR}<BR>)</div> <div>IF(FLTK_FOUND)<BR> FLTK_WRAP_UI( RegionGrowingSegmentation RegionGrowingSegmentationGUI.fl)<BR>ENDIF(FLTK_FOUND)</div> <div><BR>SET(RegionGrowingSegmentation_SRCS<BR>RegionGrowingSegmentationBase.cxx<BR>RegionGrowingSegmentation.cxx<BR>${RegionGrowingSegmentation_FLTK_UI_SRCS}<BR>)</div> <div> </div>
<div>ADD_EXECUTABLE(RegionGrowingSegmentation </div> <div>${RegionGrowingSegmentation_SRCS}<BR>)</div> <div><BR>TARGET_LINK_LIBRARIES(RegionGrowingSegmentation<BR> ${FLTK_LIBRARIES}<BR> ${OPENGL_LIBRARY}<BR> ${GLU_LIBRARY}<BR> <BR> ITKCommon<BR>ITKNumerics<BR>ITKBasicFilters <BR>ITKIO<BR>${FltkImageViewer}<BR>${VtkFltk}<BR>vtkRendering<BR>vtkGraphics <BR>vtkHybrid <BR>vtkImaging<BR>vtkIO<BR>vtkFiltering<BR>vtkCommon</div> <div>)</div> <div><BR> </div> <div> </div> <div>Linking...<BR> Creating library Debug/RegionGrowingSegmentation.lib and object Debug/RegionGrowingSegmentation.exp<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: void __thiscall fltk::ProgressBar::Observe(class itk::Object *)" (<A href="mailto:?Observe@ProgressBar@fltk@@QAEXPAVObject@itk@@@Z">?Observe@ProgressBar@fltk@@QAEXPAVObject@itk@@@Z</A>)<BR>RegionGrowingSegmentation.obj : error
LNK2001: unresolved external symbol "public: void __thiscall fltk::LightButton::Observe(class itk::Object *)" (<A href="mailto:?Observe@LightButton@fltk@@QAEXPAVObject@itk@@@Z">?Observe@LightButton@fltk@@QAEXPAVObject@itk@@@Z</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall fltkImageViewerGUI::AddFileMenuOptions(void)" (<A href="mailto:?AddFileMenuOptions@fltkImageViewerGUI@@UAEXXZ">?AddFileMenuOptions@fltkImageViewerGUI@@UAEXXZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall fltkImageViewerGUI::AddFilterMenuOptions(void)" (<A href="mailto:?AddFilterMenuOptions@fltkImageViewerGUI@@UAEXXZ">?AddFilterMenuOptions@fltkImageViewerGUI@@UAEXXZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall fltkImageViewerGUI::AddMenuBarOptions(void)" (<A
href="mailto:?AddMenuBarOptions@fltkImageViewerGUI@@UAEXXZ">?AddMenuBarOptions@fltkImageViewerGUI@@UAEXXZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall fltkImageViewerGUI::~fltkImageViewerGUI(void)" (<A href="mailto:??1fltkImageViewerGUI@@UAE@XZ">??1fltkImageViewerGUI@@UAE@XZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: class Fl_Double_Window * __thiscall fltkImageViewerGUI::CreateGUI(void)" (<A href="mailto:?CreateGUI@fltkImageViewerGUI@@QAEPAVFl_Double_Window@@XZ">?CreateGUI@fltkImageViewerGUI@@QAEPAVFl_Double_Window@@XZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: __thiscall fltkImageViewerGUI::fltkImageViewerGUI(void)" (<A href="mailto:??0fltkImageViewerGUI@@QAE@XZ">??0fltkImageViewerGUI@@QAE@XZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall
fltkVTKImageViewerGUI::~fltkVTKImageViewerGUI(void)" (<A href="mailto:??1fltkVTKImageViewerGUI@@UAE@XZ">??1fltkVTKImageViewerGUI@@UAE@XZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: static class vtkVolumeRayCastMapper * __cdecl vtkVolumeRayCastMapper::New(void)" (<A href="mailto:?New@vtkVolumeRayCastMapper@@SAPAV1@XZ">?New@vtkVolumeRayCastMapper@@SAPAV1@XZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: static class vtkVolumeRayCastCompositeFunction * __cdecl vtkVolumeRayCastCompositeFunction::New(void)" (<A href="mailto:?New@vtkVolumeRayCastCompositeFunction@@SAPAV1@XZ">?New@vtkVolumeRayCastCompositeFunction@@SAPAV1@XZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: void __thiscall vtkFlRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)" (<A
href="mailto:?SetRenderWindow@vtkFlRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z">?SetRenderWindow@vtkFlRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: __thiscall fltkVTKImageViewerGUI::fltkVTKImageViewerGUI(void)" (<A href="mailto:??0fltkVTKImageViewerGUI@@QAE@XZ">??0fltkVTKImageViewerGUI@@QAE@XZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall fltkVTKImageViewerGUI::Show(void)" (<A href="mailto:?Show@fltkVTKImageViewerGUI@@UAEXXZ">?Show@fltkVTKImageViewerGUI@@UAEXXZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall fltkVTKImageViewerGUI::Hide(void)" (<A href="mailto:?Hide@fltkVTKImageViewerGUI@@UAEXXZ">?Hide@fltkVTKImageViewerGUI@@UAEXXZ</A>)<BR>RegionGrowingSegmentation.obj : error LNK2001: unresolved external symbol "int __cdecl
ifuShowText(char const *)" (<A href="mailto:?ifuShowText@@YAHPBD@Z">?ifuShowText@@YAHPBD@Z</A>)<BR>RegionGrowingSegmentationGUI.obj : error LNK2001: unresolved external symbol "public: __thiscall fltk::ProgressBar::ProgressBar(int,int,int,int,char *)" (<A href="mailto:??0ProgressBar@fltk@@QAE@HHHHPAD@Z">??0ProgressBar@fltk@@QAE@HHHHPAD@Z</A>)<BR>RegionGrowingSegmentationGUI.obj : error LNK2001: unresolved external symbol "public: __thiscall fltk::LightButton::LightButton(int,int,int,int,char *)" (<A href="mailto:??0LightButton@fltk@@QAE@HHHHPAD@Z">??0LightButton@fltk@@QAE@HHHHPAD@Z</A>)<BR>Debug/RegionGrowingSegmentation.exe : fatal error LNK1120: 18 unresolved externals<BR>Error executing link.exe.</div><p> 
        
                <hr size=1>Get your own <a href=" http://us.rd.yahoo.com/evt=43290/*http://smallbusiness.yahoo.com/domains"
>web address for just $1.99/1st yr</a>. We'll help. <a href="http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/"
>Yahoo! Small Business</a>.