[Insight-users] Compilation error inInsightApplications\ThinPlateSpines

Julien Jomier jjomier at cs.unc.edu
Mon Jun 21 13:12:20 EDT 2004


Hi Hans,

As Luis said, you need to include some files from InsightApplications.
I've attached a FindInsightApplications.cmake file that you can use for your
application.
You need to copy the file in your source directory of your application and
add a line like this one in your CMakeLists.txt:

INCLUDE(${ThinPlateSplines _SOURCE_DIR}/FindInsightApplications.cmake)

Hope this helps,

Julien

-----Original Message-----
From: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org]
On Behalf Of Hans Wolf
Sent: Monday, June 21, 2004 1:03 PM
To: Luis Ibanez
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Compilation error
inInsightApplications\ThinPlateSpines


Hi Luis,

To compile ThinPlateSplines I have modified CMakeLists.txt as follows: 

PROJECT( ThinPlateSplines )

#
#  FIND ITK
#
FIND_PACKAGE(ITK)
IF (USE_ITK_FILE)
  INCLUDE (${USE_ITK_FILE})
ELSE (USE_ITK_FILE)
  MESSAGE( FATAL_ERROR "This application requires ITK. One of these
components is missing. Please verify configuration")
ENDIF (USE_ITK_FILE)

#
# FIND VTK
#
FIND_PACKAGE(VTK)
IF (USE_VTK_FILE)
  INCLUDE (${USE_VTK_FILE})
ELSE (USE_VTK_FILE)
  MESSAGE( FATAL_ERROR "This application requires VTK. One of these
components is missing. Please verify configuration")
ENDIF (USE_VTK_FILE)

#
# FIND FLTK
#
FIND_PACKAGE(FLTK)
IF (FLTK_FOUND)
  INCLUDE_DIRECTORIES (${FLTK_INCLUDE_DIR})
ELSE (FLTK_FOUND)
  MESSAGE( FATAL_ERROR "This application requires FLTK. One of these
components is missing. Please verify configuration")
ENDIF (FLTK_FOUND)

INCLUDE_DIRECTORIES(
  ${ThinPlateSplines_SOURCE_DIR}
  )
#
#  Define the list of source files
#
SET(APPLICATION_SOURCES
  ThinPlateSplinesApplicationBase.cxx
  ThinPlateSplinesApplication.cxx 
  main.cxx
  )

ADD_EXECUTABLE( ThinPlateSplines ${APPLICATION_SOURCES})
FLTK_WRAP_UI(ThinPlateSplines ThinPlateSplinesApplicationGUI.fl)
#ITK_DISABLE_FLTK_GENERATED_WARNINGS(ThinPlateSplinesApplicationGUI.fl)
#TARGET_LINK_LIBRARIES(ThinPlateSplines ITKBasicFilters ITKIO
# ITKFltkImageViewer ITKVtkFltk vtkHybrid)



Thanks,
Hans

Luis Ibanez <luis.ibanez at kitware.com> wrote:

Hi Hans,

The Applications are configured to be build from the top
directory of InsightApplications.

If you want to build a single one, the easy way is to still
configure all of them from the top directory, then open the
InsightApplications.dsw workspace and selecting the project
of the single application that you want to build.

If you want to separate one of the applications, there is a
good number of modifications that you will have to make on
the configuration, because some of the GUI applications share
resources such as the FLTK viewers and the VTK helper classes.


Regards,


Luis




-------------------
Hans Wolf wrote:

> Hello Luis,
> 
> I post my CMakeCache.txt file.
> 
> Just one thing, I'm just trying to compile ThinPlateSpines, I haven't 
> compil ed the other Applications.
> 
> Thanks,
> Hans
> 
> ////////////////////////////////////////////
> # This is the CMakeCache file.
> # For build in directory: 
> c:/itk_160/InsightApplications-1.6.0-BIN/ThinPlateSpines
> # 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 co mmands 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
> //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 linker.
> CMAKE_EXE_LINKER_FLAGS:STRING=/STACK:10000000 /machine:I386
/INCREMENTAL:YES
> //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=
> //Flags used by the linker during the creation of dll's.
> CMAKE_SHARED_LINKER_FLAGS:STRING=/STACK:10000000 /machine:I386 
> /INCREMENTAL:YES
> //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 t his 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:/fltk-1.1.5rc1-source/fltk-1.1.5rc1/lib/fltkd.l
ib
> //Path to a program.
>
FLTK_FLUID_EXECUTABLE:FILEPATH=C:/fltk-1.1.5rc1-source/fltk-1.1.5rc1/fluid/f
luidd.exe
> //Where can one of the fltkforms, fltkformsd or fltk_forms libraries
> // be found
>
FLTK_FORMS_LIBRARY:FILEPATH=C:/fltk-1.1.5rc1-source/fltk-1.1.5rc1/lib/fltkfo
rmsd.lib
> //Where can one of the fltkgl, fltkgld or fltk_gl libraries be
> // found
>
FLTK_GL_LIBRARY:FILEPATH=C:/fltk-1.1.5rc1-source/fltk-1.1.5rc1/lib/fltkgld.l
ib
> //Where can one of the fltkimages, fltkimagesd or fltk_images libraries
> // be found
>
FLTK_IMAGES_LIBRARY:FILEPATH=C:/fltk-1.1.5rc1-source/fltk-1.1.5rc1/lib/fltki
magesd.lib
> //What is the path where the file FL/Fl.h can be found
> FLTK_INCLUDE_DIR:PATH=C:/fltk-1.1.5rc1-source/fltk-1.1.5rc1
> //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_160/InsightToolkit-1.6.0-BIN
> //Single output directory for building all libraries.
> LIBRARY_OUTPUT_PATH:PATH=
> //Value Computed by CMake
>
Project_BINARY_DIR:STATIC=C:/itk_160/InsightApplications-1.6.0-BIN/ThinPlate
Spines
> //Value Computed by CMake
>
Project_SOURCE_DIR:STATIC=C:/itk_160/InsightApplications-1.6.0/ThinPlateSpli
nes
> //Location of Tcl library imported from VTK. This may mean your
> // project is depending on VTK to get this setting. Consider using
> // FindTCL.cmake.
> TCL_LIBRARY:FILEPATH=
> //Location of Tk library imported from VTK. This may mean your
> // project is depending on VTK to get this setting. Consider using
> // FindTCL.cmake.
> TK_LIBRARY:FILEPATH=
> //Value Computed by CMake
>
ThinPlateSplines_BINARY_DIR:STATIC=C:/itk_160/InsightApplications-1.6.0-BIN/
ThinPlateSpines
> //Value Computed by CMake
>
ThinPlateSplines_SOURCE_DIR:STATIC=C:/itk_160/InsightApplications-1.6.0/Thin
PlateSplines
> //The directory containing VTKConfig.cmake. This is either the
> // root of the build tree, or PREFIX/lib/vtk for an installation.
> // For VTK 4.0, this is the location of UseVTK.cmake. This is
> // either the roo t of the build tree or PREFIX/include/vtk for
> // an installation.
> VTK_DIR:PATH=C:/vtk_42/VTKBIN
> 
> ########################
> # INTERNAL cache entries
> ########################
> //Advanced flag for variable: CMAKE_AR
> CMAKE_AR-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:/itk_160/InsightApplications-1.6.0-BIN/ThinPl
ateSpines
> //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:INTERN AL=patch 1
> //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_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
> //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
> //Name of generator.
> CMAKE_GENERATOR:INTERNAL=Visual Studio 7 .NET 2003
> //Start directory with the t op level CMakeLists.txt file for this
> // project
>
CMAKE_HOME_DIRECTORY:INTERNAL=C:/itk_160/InsightApplications-1.6.0/ThinPlate
Splines
> //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
> //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_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
> //Advanced flag for variable: TCL_LIBRARY
> TCL_LIBRARY-ADVANCED:INTERNAL=1
> //Advanced flag for variable: TK_LIBRARY
> TK_LIBRARY-ADVANCED:INTERNAL=1
> //Path to an executable
>
ThinPlateSplines_CMAKE_PATH:INTERNAL=C:/itk_160/InsightApplications-1.6.0-BI
N/ThinPlateSpines
> 
> 
> */Luis Ibanez /* wrote:
> 
> 
> Hi Hans,
> 
> The file:
> 
> fltkTimeProbesCollectorGUI.h
> 
> should be generated by FLTK fluid during the build
> process of the directory:
> 
> InsightApplications/Auxiliary/FltkImageViewer
> 
> 
> The file should appear in the Binary directory where
> you are attempting to build InsightApplications, and
> it should be in the subdirectory
> 
> Auxiliary/FltkImageViewer
> 
> 
> If the file is not there, then it is very likely
> that you have not specified correctly the location
> of fluid.exe.
> 
> Please verify this by running CMake and checking on
> the advanced values.
> 
> If you continue experiencing any problems, then please
> post the CMakeCache.txt file to the users-list. This
> file is generated by CMake in the binary directory of
> InsightApplications.
> 
> 
> Thanks
> 
> 
> 
> Luis
> 
> 
> -----------------
> Hans Wolf wrote:
> >
> > Hello,
> >
> > I've installed ITK+VTK+FLTK, configured de advanced values of
> FLTK in
> > Cmake but I still get this error:
> >
> >
>
C:\itk_160\InsightApplications-1.6.0\Auxiliary\FltkImageViewer\fltkTimeProbe
sCollector.h(21):
> 
> > fatal error C1083: Cannot open include file:
> > 'fltkTimeProbesCollectorGUI.h': No such file or directory
> > and I don't find this file anywhere....
> >
> > Thanks,
> > Hans
> >
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> Bestellen Sie Y! DSL und erhalten Sie die *AVM "FritzBox SL" für 0€. Sie 
> sparen 119€ und bekommen 2 Monate Grundgebührbefreiung.*
> http://de.adsl.yahoo.com 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users






Bestellen Sie Y! DSL und erhalten Sie die AVM "FritzBox SL" für 0€. Sie
sparen 119€ und bekommen 2 Monate Grundgebührbefreiung.
http://de.adsl.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindInsightApplications.cmake
Type: application/octet-stream
Size: 1666 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20040621/8d096509/FindInsightApplications.obj


More information about the Insight-users mailing list