<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> 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> 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 <knoppixc@yahoo.com><BR>To: ITK <insight-users@itk.org><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> 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 : 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?? <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></TBODY></TABLE><BR></DIV></DIV></div><br>
</body></html>