[Insight-users] help... error in ImageViewer...
William Whartenby
wwill066 at yahoo.com
Tue Aug 12 13:59:06 EDT 2008
Hi
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)
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
----- Original Message ----
From: knoppix corn <knoppixc at yahoo.com>
To: ITK <insight-users at itk.org>
Sent: Monday, August 11, 2008 10:06:51 PM
Subject: [Insight-users] help... error in ImageViewer...
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/20080812/98bfa631/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cmakelists.txt
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080812/98bfa631/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080812/98bfa631/attachment-0001.txt>
More information about the Insight-users
mailing list