[Insight-users] ITK + FLTK compile error
Alex Houston
ahouston_29@yahoo.com
Fri May 21 15:35:44 EDT 2004
--0-1124337310-1085150144=:68552
Content-Type: multipart/alternative; boundary="0-1127294175-1085150144=:68552"
--0-1127294175-1085150144=:68552
Content-Type: text/plain; charset=us-ascii
The CMakeCache file is attached
Thanks luis for all ur help
A. Houston
Luis Ibanez <luis.ibanez@kitware.com> wrote:
Hi Alex,
Please post the CMakeCache.txt file that CMake
generates in the Binary directory where you are
trying to build InsightApplications.
Thanks
Luis
----------------------
Alex Houston wrote:
> Hi
>
> I am trying to run the program
> InsightApplications/RegionGrowingSegmentation
>
> I have ITK version 1.6 , FLTK 1.1.4 and cmake 1.8 patch 3 and I am using
> .net
>
> I get the error "unknow command ADD_GUI_EXCUTABLE"
>
> All the directories and lib files are set correctly in cmake window { 4
> FLTK lib, fluid executable and fltk include are all set coorectly}
>
> below is CMakeLists.txt
>
> PROJECT( RegionGrowingSegmentation )
>
> FIND_PACKAGE(ITK)
> IF(ITK_FOUND)
> INCLUDE(${ITK_USE_FILE})
> ELSE(ITK_FOUND)
> MESSAGE(FATAL_ERROR
> "Cannot build without ITK. Please set ITK_DIR.")
> ENDIF(ITK_FOUND)
>
> FIND_PACKAGE(FLTK)
> IF(FLTK_FOUND)
> INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
> ELSE(FLTK_FOUND)
> MESSAGE(FATAL_ERROR
> "Cannot build without FLTK. Please set FLTK components.")
> ENDIF(FLTK_FOUND)
>
> SET(RegionGrowingSegmentation_SRCS
> RegionGrowingSegmentationBase.cxx
> RegionGrowingSegmentation.cxx
> )
> SET(RegionGrowingSegmentation_GUI_SRCS
> RegionGrowingSegmentationGUI.fl
> )
> ADD_GUI_EXECUTABLE(RegionGrowingSegmentation
> "${RegionGrowingSegmentation_SRCS}")
> FLTK_WRAP_UI( RegionGrowingSegmentation
> ${RegionGrowingSegmentation_GUI_SRCS} )
>
>
> Thanks
> A. Houston
>
> PS: is it Anything to do with TARGET_LINK_LIBRARIES or INCLUDE_DIRECTORIES
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Domains - Claim yours for only $14.70/year
>
>
_______________________________________________
Insight-users mailing list
Insight-users@itk.org
http://www.itk.org/mailman/listinfo/insight-users
---------------------------------
Do you Yahoo!?
Yahoo! Domains - Claim yours for only $14.70/year
--0-1127294175-1085150144=:68552
Content-Type: text/html; charset=us-ascii
<DIV>
<DIV>The CMakeCache file is attached </DIV>
<DIV> </DIV>
<DIV>Thanks luis for all ur help</DIV>
<DIV>A. Houston<BR><BR><B><I>Luis Ibanez <luis.ibanez@kitware.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Hi Alex,<BR><BR>Please post the CMakeCache.txt file that CMake<BR>generates in the Binary directory where you are<BR>trying to build InsightApplications.<BR><BR><BR>Thanks<BR><BR><BR>Luis<BR><BR><BR>----------------------<BR>Alex Houston wrote:<BR><BR>> Hi<BR>> <BR>> I am trying to run the program <BR>> InsightApplications/RegionGrowingSegmentation<BR>> <BR>> I have ITK version 1.6 , FLTK 1.1.4 and cmake 1.8 patch 3 and I am using <BR>> .net<BR>> <BR>> I get the error "unknow command ADD_GUI_EXCUTABLE"<BR>> <BR>> All the directories and lib files are set correctly in cmake window { 4 <BR>> FLTK lib, fluid executable and fltk include are all set coorectly}<BR>> <BR>> below is CMakeLists.txt<BR>> <BR>> PROJECT( RegionGrowingSegmentation )<BR>> <BR>> FIND_PACKAGE(ITK)<BR>> IF(ITK_FOUND)<BR>> INCLUDE(${ITK_USE_FILE})<BR>>
ELSE(ITK_FOUND)<BR>> MESSAGE(FATAL_ERROR<BR>> "Cannot build without ITK. Please set ITK_DIR.")<BR>> ENDIF(ITK_FOUND)<BR>> <BR>> FIND_PACKAGE(FLTK)<BR>> IF(FLTK_FOUND)<BR>> INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>> ELSE(FLTK_FOUND)<BR>> MESSAGE(FATAL_ERROR<BR>> "Cannot build without FLTK. Please set FLTK components.")<BR>> ENDIF(FLTK_FOUND)<BR>> <BR>> SET(RegionGrowingSegmentation_SRCS<BR>> RegionGrowingSegmentationBase.cxx<BR>> RegionGrowingSegmentation.cxx<BR>> )<BR>> SET(RegionGrowingSegmentation_GUI_SRCS<BR>> RegionGrowingSegmentationGUI.fl<BR>> )<BR>> ADD_GUI_EXECUTABLE(RegionGrowingSegmentation <BR>> "${RegionGrowingSegmentation_SRCS}")<BR>> FLTK_WRAP_UI( RegionGrowingSegmentation <BR>> ${RegionGrowingSegmentation_GUI_SRCS} )<BR>> <BR>> <BR>> Thanks<BR>> A. Houston<BR>> <BR>> PS: is it Anything to do with TARGET_LINK_LIBRARIES or INCLUDE_DIRECTORIES<BR>> <BR>> <BR>> <BR>>
------------------------------------------------------------------------<BR>> Do you Yahoo!?<BR>> Yahoo! Domains - Claim yours for only $14.70/year <BR>> <HTTP: evt="23613/*http://smallbusiness.promotions.yahoo.com/offer" us.rd.yahoo.com><BR>> <BR><BR><BR><BR>_______________________________________________<BR>Insight-users mailing list<BR>Insight-users@itk.org<BR>http://www.itk.org/mailman/listinfo/insight-users</BLOCKQUOTE></DIV><p>
<hr size=1><font face=arial size=-1>Do you Yahoo!?<br>Yahoo! Domains - <a href="http://us.rd.yahoo.com/evt=23613/*http://smallbusiness.promotions.yahoo.com/offer">Claim yours for only $14.70/year</a>
--0-1127294175-1085150144=:68552--
--0-1124337310-1085150144=:68552
Content-Type: text/plain; name="CMakeCache.txt"
Content-Description: CMakeCache.txt
Content-Disposition: inline; filename="CMakeCache.txt"
# This is the CMakeCache file.
# For build in directory: c:/ITKtest/RegionGrowingSegmentation/bin
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//Path to a program.
CMAKE_AR:FILEPATH=CMAKE_AR-NOTFOUND
//For backwards compatibility, what version of CMake commands and
// syntax should this version of CMake allow.
CMAKE_BACKWARDS_COMPATIBILITY:STRING=1.8
//Semicolon separated list of supported configuration types, only
// supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything
// else will be ignored.
CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release
//C++ compiler
CMAKE_CXX_COMPILER:STRING=cl
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING= /W3 /Zm1000 /GX /GR
//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=/MDd /Zi /Od /GZ
//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=/MD /O1
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=/MD /O2
//Flags used by the compiler during Release with Debug Info builds.
//
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2
//Size of stack for programs.
CMAKE_CXX_STACK_SIZE:STRING=10000000
//Size of stack for programs.
CMAKE_CXX_WARNING_LEVEL:STRING=3
//C compiler
CMAKE_C_COMPILER:STRING=cl
//Flags for C compiler.
CMAKE_C_FLAGS:STRING= /W3 /Zm1000
//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=/MDd /Zi /Od /GZ
//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=/MD /O1
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=/MD /O2
//Flags used by the compiler during Release with Debug Info builds.
//
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=/STACK:10000000 /machine:I386 /INCREMENTAL:YES
//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=/debug /pdbtype:sept
//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
//
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /pdbtype:sept
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local
//make program
CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~1/MICROS~1.NET/Common7/IDE/devenv.com
//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=/STACK:10000000 /machine:I386 /INCREMENTAL:YES
//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=/debug /pdbtype:sept
//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
//
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /pdbtype:sept
//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=/STACK:10000000 /machine:I386 /INCREMENTAL:YES
//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/debug /pdbtype:sept
//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
//
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /pdbtype:sept
//If set, runtime paths are not added when using shared libraries.
//
CMAKE_SKIP_RPATH:BOOL=OFF
//Libraries linked by defalut with all applications.
CMAKE_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF
//Single output directory for building all executables.
EXECUTABLE_OUTPUT_PATH:PATH=
//Where can one of the fltk or fltkd libraries be found
FLTK_BASE_LIBRARY:FILEPATH=C:/ITK/fltk-1.1.4/lib/fltkd.lib
//Path to a program.
FLTK_FLUID_EXECUTABLE:FILEPATH=C:/ITK/fltk-1.1.4/fluid/fluidd.exe
//Where can one of the fltkforms, fltkformsd or fltk_forms libraries
// be found
FLTK_FORMS_LIBRARY:FILEPATH=C:/ITK/fltk-1.1.4/lib/fltkformsd.lib
//Where can one of the fltkgl, fltkgld or fltk_gl libraries be
// found
FLTK_GL_LIBRARY:FILEPATH=C:/ITK/fltk-1.1.4/lib/fltkgld.lib
//Where can one of the fltkimages, fltkimagesd or fltk_images libraries
// be found
FLTK_IMAGES_LIBRARY:FILEPATH=C:/ITK/fltk-1.1.4/lib/fltkimagesd.lib
//What is the path where the file FL/Fl.h can be found
FLTK_INCLUDE_DIR:PATH=C:/ITK/fltk-1.1.4
//Use FLTK version 1.0.11
FLTK_VERSION_1.0.11:BOOL=OFF
//Use FLTK version 1.1
FLTK_VERSION_1.1:BOOL=ON
//The directory containing ITKConfig.cmake. This is either the
// root of the build tree, or PREFIX/lib/InsightToolkit for an
// installation.
ITK_DIR:PATH=C:/ITK/InsightBinary-1.6.0
//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=
//Value Computed by CMake
RegionGrowingSegmentation_BINARY_DIR:STATIC=C:/ITKtest/RegionGrowingSegmentation/bin
//Dependencies for the target
RegionGrowingSegmentation_LIB_DEPENDS:STATIC=ITKCommon;ITKNumerics;ITKBasicFilters;ITKIO;ITKFltkImageViewer;
//Value Computed by CMake
RegionGrowingSegmentation_SOURCE_DIR:STATIC=C:/ITKtest/RegionGrowingSegmentation/source
########################
# INTERNAL cache entries
########################
//Advanced flag for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=C:/PROGRA~1/MICROS~1.NET/Common7/IDE/devenv.com
//This is the directory where this CMakeCahe.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=c:/ITKtest/RegionGrowingSegmentation/bin
//Major version of cmake used to create the current loaded cache
//
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=1
//Minor version of cmake used to create the current loaded cache
//
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Major version of cmake used to create the current loaded cache
//
CMAKE_CACHE_RELEASE_VERSION:INTERNAL=patch 3
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake.exe
//Advanced flag for variable: CMAKE_CONFIGURATION_TYPES
CMAKE_CONFIGURATION_TYPES-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//Result of TRY_COMPILE
CMAKE_CXX_COMPILER_WORKS:INTERNAL=TRUE
//Advanced flag for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_STACK_SIZE
CMAKE_CXX_STACK_SIZE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_WARNING_LEVEL
CMAKE_CXX_WARNING_LEVEL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//Result of TRY_COMPILE
CMAKE_C_COMPILER_WORKS:INTERNAL=TRUE
//Advanced flag for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=C:/Program Files/CMake/bin/CMakeSetup.exe
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
//
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
//
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Visual Studio 7
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=C:/ITKtest/RegionGrowingSegmentation/source
//Advanced flag for variable: CMAKE_INSTALL_PREFIX
CMAKE_INSTALL_PREFIX-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
//
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
//
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
//
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//noop for ranlib
CMAKE_RANLIB:INTERNAL=:
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=C:/Program Files/CMake
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
//
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
//
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
//
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_STANDARD_LIBRARIES
CMAKE_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//FLTK library, headers and Fluid are available
FLTK_FOUND:INTERNAL=1
//Advanced flag for variable: FLTK_VERSION_1.0.11
FLTK_VERSION_1.0.11-ADVANCED:INTERNAL=1
//Advanced flag for variable: FLTK_VERSION_1.1
FLTK_VERSION_1.1-ADVANCED:INTERNAL=1
//Can we honour the FLTK_WRAP_UI command
FLTK_WRAP_UI:INTERNAL=1
--0-1124337310-1085150144=:68552--
More information about the Insight-users
mailing list