[Insight-users] The problem of ITKFltkImageViewer.lib

Luis Ibanez luis.ibanez at kitware.com
Sun Jun 20 10:02:46 EDT 2010


Hi Shaoping,

The easy way to go about this, is to configure
InsightApplications with CMake from its top
directory.

and then build the subdirectories that
you need.

BTW: Are you trying to build the Volview Plugins ?
or are you trying to build the ImageViewer ?



     Regards,


             Luis


------------------------------------------------------------
2010/6/18 shaoping sun <sunshaoping_928 at 163.com>

> 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
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100620/ec1233d3/attachment.htm>


More information about the Insight-users mailing list