[Insight-users] help... error in ImageViewer...

knoppix corn knoppixc at yahoo.com
Mon Aug 11 07:17:59 EDT 2008


haii... i have problem with program ImageViewer, appropriate with InsightApplication, and have litle change
in code CMakeLists.txt, i have a problem.. the CMakeLists code is :

----------------------------------------------------------------------------------------------
PROJECT(ImageViewer)

  FIND_PACKAGE(ITK)
  IF(ITK_FOUND)
    INCLUDE(${ITK_USE_FILE})
  ELSE(ITK_FOUND)
    MESSAGE(FATAL_ERROR
            "Cannot build InsightApplications without ITK.  Please set ITK_DIR.")
  ENDIF(ITK_FOUND)

  FIND_PACKAGE(FLTK)
  IF(FLTK_FOUND)
    INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
  ENDIF(FLTK_FOUND)
  
  IF ( FLTK_FOUND )
    FLTK_WRAP_UI( ImageViewer ImageViewerGUI.fl )
  ENDIF ( FLTK_FOUND )


SET (InsightApplications_SOURCE_DIR C:/InsightToolkit/ITK/InsightApplications-3.2.0)

SET ( ImageViewer_SRCS  ImageViewer.cxx  ${ImageViewer_FLTK_UI_SRCS} )


INCLUDE_DIRECTORIES ( ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer )

ADD_EXECUTABLE( ImageViewer ${ImageViewer_SRCS} )

Target_LINK_LIBRARIES ( ImageViewer
  ITKBasicFilters
  ITKIO
  ITKCommon
  ITKFltkImageViewer
)
---------------------------------------------------------------------------------------------

there was not change with ImageViewer.cxx's code and ImageViewerGUI.fl's code..

after i configure it, it work, and no error..  after i compile it, there is error,

it say: " LINK : fatal error LNK1104: cannot open file "ITKFltkImageViewer.lib" "

then i search ITKFltkImageViewer.lib, but there was not found.. 

what's wrong??? what mistake i have??  

i use CMake-2.6,   ITK-3.2.0,   FLTK-1.1.7,   Visual Studio-6, 

thank you very much..


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080811/255aa559/attachment.htm>


More information about the Insight-users mailing list