[Insight-users] The problem of ITKFltkImageViewer.lib
Luis Ibanez
luis.ibanez at kitware.com
Sun Jun 20 14:03:21 EDT 2010
Hi Shaoping,
Again:
Do not configure individual directories.
Please configure InsightApplications from
the Top directory
and
BUILD the individual subdirectories
that you are interested on.
This means that you will open the
InsightApplications.sln file inside Visual Studio,
then look for the project that you want to build,
right clidk on it , and select "Build".
Regards,
Luis
-------------------------------------------------------
2010/6/20 shaoping sun <sunshaoping_928 at 163.com>
> Hi Luis:
>
> First of all,thank you for your help. I try it with your suggestion. I
> configure InsightApplications with CMake from its top directory.there are
> several previous errors. Then, I build two directories separately.I try
> configure the directory of Volview Plugins with cmake and compile it with
> vs2005 separately,there is no error.However, when I configure the directory
> of ImageViewer with cmake separately,there is a error. The error
> information is as follow:
>
> CMake Error: Error required internal CMake variable not set, cmake may be
> not be built correctly.
>
> Missing variable is:
>
> FLTK_FLUID_EXECUTABLE
>
> CMake Error at CMakeLists.txt:35 (ITK_DISABLE_FLTK_GENERATED_WARNINGS):
>
> Unknown CMake command "ITK_DISABLE_FLTK_GENERATED_WARNINGS".
>
> FLTK_WRAP_UI was called with a target that was never created:
> ImageViewer. The problem was found while processing the source directory:
> D:/ITK/InsightApplications-3.16.0/ImageViewer. This FLTK_WRAP_UI call will
> be ignored.
>
> Configuring incomplete, errors occurred!
>
> the information of CMakeLists.txt of ImageViewer is :
>
> cmake_minimum_required(VERSION 2.6)
> 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
> )
>
> what is wrong? I hope you help me .thank you very much.
>
> regards
>
> shaoping sun
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100620/c4e64309/attachment.htm>
More information about the Insight-users
mailing list