[Insight-users] The problem of ITKFltkImageViewer.lib
shaoping sun
sunshaoping_928 at 163.com
Fri Jun 18 22:59:48 EDT 2010
Hi,all users:
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)
IF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )
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)
ENDIF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )
INCLUDE_DIRECTORIES (
${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer
)
SET(ImageViewer_GUI_SRCS
ImageViewerGUI.fl
)
FLTK_WRAP_UI( ImageViewer ${ImageViewer_GUI_SRCS} )
SET ( ImageViewer_SRCS
ImageViewer.cxx
${ImageViewer_FLTK_UI_SRCS}
)
ITK_DISABLE_FLTK_GENERATED_WARNINGS("${ImageViewer_SRCS}")
ADD_GUI_EXECUTABLE( ImageViewer "${ImageViewer_SRCS}" )
TARGET_LINK_LIBRARIES (ImageViewer
ITKBasicFilters
ITKIO
ITKFltkImageViewer
)
there was not change with ImageViewer.cxx code and ImageViewerGUI.fl 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 "..\VolviewPlugIns\bin\Debug\ITKFltkImageViewer.lib "
then i search ITKFltkImageViewer.lib, but there was not found..
what's wrong??? what mistake i have??
i use CMake-2.8, ITK-3.18.0, FLTK-1.1.10, Visual Studio2005
thank you very much.
shaoping sun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100619/1b09da3e/attachment.htm>
More information about the Insight-users
mailing list