<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi</DIV>
<DIV>&nbsp;&nbsp; I had this same problem attempting to build ImageRegistration. It seems that the Insight Applications main CMake has things you need as well. I needed to have a directory structure like Insight applications: that is; a directory with a cmakelists file, and each application having its own subdirectory and its own small cmakelists file. The 6kb file is in the main directory, while the 1kb file is your specific directory file (which you should be able to copy directory from the ImageViewer subdirectory; mine is from ImageRegistration)</DIV>
<DIV>&nbsp; I have attached my CMake files for building ImageRegistration. Try cleaning and rebuilding everything, then using these CMake files (one modified for ImageViewer, of course). I hope that this helps<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: knoppix corn &lt;knoppixc@yahoo.com&gt;<BR>To: ITK &lt;insight-users@itk.org&gt;<BR>Sent: Monday, August 11, 2008 10:06:51 PM<BR>Subject: [Insight-users] help... error in ImageViewer...<BR><BR>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>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>&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)<BR><BR>&nbsp; FIND_PACKAGE(FLTK)<BR>&nbsp; IF(FLTK_FOUND)<BR>&nbsp;&nbsp;&nbsp; INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>&nbsp; ENDIF(FLTK_FOUND)<BR>&nbsp; <BR>&nbsp; IF ( FLTK_FOUND )<BR>&nbsp;&nbsp;&nbsp; FLTK_WRAP_UI( ImageViewer ImageViewerGUI.fl )<BR>&nbsp; ENDIF ( FLTK_FOUND )<BR><BR><BR>SET
 (InsightApplications_SOURCE_DIR C:/InsightToolkit/ITK/InsightApplications-3.2.0)<BR><BR>SET ( ImageViewer_SRCS&nbsp; ImageViewer.cxx&nbsp; ${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>&nbsp; ITKBasicFilters<BR>&nbsp; ITKIO<BR>&nbsp; ITKCommon<BR>&nbsp; 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..&nbsp; after i compile it, there is error,<BR><BR>it say: " LINK : fatal error LNK1104: 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??&nbsp; <BR><BR>i use
 CMake-2.6,&nbsp;&nbsp; ITK-3.2.0,&nbsp;&nbsp; FLTK-1.1.7,&nbsp;&nbsp; Visual Studio-6, <BR><BR>thank you very much..<BR></TD></TR></TBODY></TABLE><BR></DIV></DIV></div><br>

      </body></html>