<DIV>Hi,all users:</DIV>
<DIV>I&nbsp;have problem with program ImageViewer, appropriate with InsightApplication, and have litle change<BR>in code CMakeLists.txt, i have a problem.. the CMakeLists code is :</DIV>
<DIV>PROJECT(ImageViewer)</DIV>
<DIV>IF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )</DIV>
<DIV>&nbsp; FIND_PACKAGE(ITK)<BR>&nbsp; IF(ITK_FOUND)<BR>&nbsp;&nbsp;&nbsp; INCLUDE(${ITK_USE_FILE})<BR>&nbsp; ELSE(ITK_FOUND)<BR>&nbsp;&nbsp;&nbsp; MESSAGE(FATAL_ERROR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cannot build InsightApplications without ITK.&nbsp; Please set ITK_DIR.")<BR>&nbsp; ENDIF(ITK_FOUND)</DIV>
<DIV>&nbsp; FIND_PACKAGE(FLTK)<BR>&nbsp; IF(FLTK_FOUND)<BR>&nbsp;&nbsp;&nbsp; INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>&nbsp; ENDIF(FLTK_FOUND)</DIV>
<DIV>ENDIF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )</DIV>
<DIV>INCLUDE_DIRECTORIES (<BR>&nbsp; ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer<BR>)</DIV>
<DIV>SET(ImageViewer_GUI_SRCS<BR>&nbsp; ImageViewerGUI.fl<BR>&nbsp; )</DIV>
<DIV>FLTK_WRAP_UI( ImageViewer ${ImageViewer_GUI_SRCS} )</DIV>
<DIV>SET ( ImageViewer_SRCS<BR>&nbsp; ImageViewer.cxx<BR>&nbsp; ${ImageViewer_FLTK_UI_SRCS}<BR>&nbsp; )<BR>ITK_DISABLE_FLTK_GENERATED_WARNINGS("${ImageViewer_SRCS}")</DIV>
<DIV>ADD_GUI_EXECUTABLE( ImageViewer "${ImageViewer_SRCS}" )<BR>TARGET_LINK_LIBRARIES (ImageViewer<BR>&nbsp; ITKBasicFilters<BR>&nbsp; ITKIO<BR>&nbsp; ITKFltkImageViewer<BR>)<BR>there was not change with ImageViewer.cxx code and ImageViewerGUI.fl code..<BR><BR>after i configure it, it work, and no error..&nbsp; after i compile it, there is error,<BR><BR>it say: " LINK : fatal error LNK1104: cannot open file "..\VolviewPlugIns\bin\Debug\ITKFltkImageViewer.lib "<BR><BR>then i search ITKFltkImageViewer.lib, but there was not found.. <BR><BR>what's wrong??? what mistake i have??&nbsp; <BR><BR>i use CMake-2.8,&nbsp;&nbsp; ITK-3.18.0,&nbsp;&nbsp; FLTK-1.1.10,&nbsp;&nbsp; Visual Studio2005 <BR><BR>thank you very much.</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shaoping sun<BR><BR></DIV><br><br><span title="neteasefooter"/></span>