<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">haii... i 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 :<br>
<br>
----------------------------------------------------------------------------------------------<br>
PROJECT(ImageViewer)<br>
<br>
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)<br>
<br>
FIND_PACKAGE(FLTK)<br>
IF(FLTK_FOUND)<br>
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<br>
ENDIF(FLTK_FOUND)<br>
<br>
IF ( FLTK_FOUND )<br>
FLTK_WRAP_UI( ImageViewer ImageViewerGUI.fl )<br>
ENDIF ( FLTK_FOUND )<br>
<br>
<br>
SET (InsightApplications_SOURCE_DIR C:/InsightToolkit/ITK/InsightApplications-3.2.0)<br>
<br>
SET ( ImageViewer_SRCS ImageViewer.cxx ${ImageViewer_FLTK_UI_SRCS} )<br>
<br>
<br>
INCLUDE_DIRECTORIES ( ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer )<br>
<br>
ADD_EXECUTABLE( ImageViewer ${ImageViewer_SRCS} )<br>
<br>
Target_LINK_LIBRARIES ( ImageViewer<br>
ITKBasicFilters<br>
ITKIO<br>
ITKCommon<br>
ITKFltkImageViewer<br>
)<br>
---------------------------------------------------------------------------------------------<br>
<br>
there was not change with ImageViewer.cxx's code and ImageViewerGUI.fl's code..<br>
<br>
after i configure it, it work, and no error.. after i compile it, there is error,<br>
<br>
it say: " LINK : <span class="yshortcuts" id="lw_1218517453_0">fatal error LNK1104</span>: cannot open
file "ITKFltkImageViewer.lib" "<br>
<br>
then i search ITKFltkImageViewer.lib, but there was not found.. <br>
<br>
what's wrong??? what mistake i have?? <br>
<br>
i use CMake-2.6, ITK-3.2.0, FLTK-1.1.7, Visual Studio-6, <br>
<br>
thank you very much..<br>
</td></tr></table><br>