[Insight-users] Re: How to make a single Application OutSide the Application Main Directory

Karthik Krishnan Karthik.Krishnan at kitware.com
Fri Mar 11 16:28:35 EST 2005


Check this post from Brad.

Your system clock is set incorrectly so make keeps thinking files are 
out of date and rebuilding them.

http://public.kitware.com/pipermail/insight-users/2005-March/012258.html

Thanks
kk


Arun Kulshreshtha wrote:

> hi,
>
> Now I have modifies the CMakeLists.txt as follows...
>
> ================================================================================================================= 
>
> PROJECT(GeodesicActiveContour)
>
> # Tell CMake's FIND_PACKAGE command where to look for our Find<pkg>
> # modules.
> SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} 
> ${InsightApplications_SOURCE_DIR})
>
>  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)
>
>  FIND_PACKAGE(VTK)
>  IF (VTK_FOUND)
>      INCLUDE (${VTK_USE_FILE})
>  ENDIF (VTK_FOUND)
>
>
> INCLUDE_DIRECTORIES(
>  ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer
>  ${InsightApplications_SOURCE_DIR}/Auxiliary/VtkFltk
>  ${InsightApplications_SOURCE_DIR}/Auxiliary/vtk
>  ${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer
>  ${InsightApplications_BINARY_DIR}/Auxiliary/VtkFltk
> )
>
> SET(GeodesicActiveContour_SRCS
>  GeodesicActiveContourBase.cxx
>  GeodesicActiveContour.cxx
>  )
>
> # The fluid-generated fltk sources have many warnings.  This macro
> # will disable warnings for the generated files on some compilers.
> MACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS files)
>  IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)
>    IF(CMAKE_COMPILER_IS_GNUCXX)
>      FOREACH(f ${files})
>        STRING(REGEX REPLACE "\\.fl$" ".cxx" SRC "${f}")
>        STRING(REGEX REPLACE ".*/([^/]*)$" "\\1" SRC "${SRC}")
>        SET_SOURCE_FILES_PROPERTIES(${SRC} PROPERTIES COMPILE_FLAGS -w)
>      ENDFOREACH(f)
>    ENDIF(CMAKE_COMPILER_IS_GNUCXX)
>  ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)
> ENDMACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS)
> #
> # Macro for adding resources to GUI application on the Mac
> #
> IF(APPLE)
>  FIND_PROGRAM(ITK_APPLE_RESOURCE Rez /Developer/Tools)
>  FIND_FILE(ITK_FLTK_RESOURCE mac.r /usr/local/include/FL)
>  IF(NOT ITK_FLTK_RESOURCE)
>    MESSAGE("Fltk resources not found, GUI application will not respond 
> to mouse events")
>  ENDIF(NOT ITK_FLTK_RESOURCE)
>
>  MACRO(ADD_GUI_EXECUTABLE name sources)
>    ADD_EXECUTABLE(${name} ${sources})
>    SET(EXEC_PATH ${EXECUTABLE_OUTPUT_PATH})
>    IF(NOT EXEC_PATH)
>      SET(EXEC_PATH ${CMAKE_CURRENT_BINARY_DIR})
>    ENDIF(NOT EXEC_PATH)
>      IF(ITK_APPLE_RESOURCE)
>        ADD_CUSTOM_COMMAND(SOURCE ${name}
>                           COMMAND ${ITK_APPLE_RESOURCE}
>                           ARGS -t APPL ${ITK_FLTK_RESOURCE} -o
>                           ${EXEC_PATH}/${name}
>                           TARGET ${name})
>      ENDIF(ITK_APPLE_RESOURCE)
>  ENDMACRO(ADD_GUI_EXECUTABLE)
> ELSE(APPLE)
>  MACRO(ADD_GUI_EXECUTABLE name sources)
>    ADD_EXECUTABLE(${name} ${sources})
>  ENDMACRO(ADD_GUI_EXECUTABLE)
> ENDIF(APPLE)
>
> #
>
> ADD_GUI_EXECUTABLE(GeodesicActiveContour "${GeodesicActiveContour_SRCS}")
>
> FLTK_WRAP_UI(GeodesicActiveContour GeodesicActiveContourGUI.fl)
> ITK_DISABLE_FLTK_GENERATED_WARNINGS(GeodesicActiveContourGUI.fl)
>
> TARGET_LINK_LIBRARIES(GeodesicActiveContour ITKNumerics ITKBasicFilters
>                      ITKIO vtkHybrid vtkIO ITKVtkFltk ITKFltkImageViewer)
>
> ============================================================================================================== 
>
> Now I am getting So many errors------
>
> ]$ make
> make: *** Warning: File `cmake.depends' has modification time in the 
> future (2005-03-12 13:58:05 > 2005-03-12 01:47:55.83741)
> Building dependencies. cmake.depends...
> -- Loading VTK CMake commands
> -- Loading VTK CMake commands - done
> make: *** Warning: File `cmake.depends' has modification time in the 
> future (2005-03-12 14:03:59 > 2005-03-12 01:48:01.033742)
> make[1]: *** Warning: File `cmake.depends' has modification time in 
> the future (2005-03-12 14:03:59 > 2005-03-12 01:48:01.07599)
> make[1]: warning:  Clock skew detected.  Your build may be incomplete.
> make[1]: *** Warning: File `cmake.depends' has modification time in 
> the future (2005-03-12 14:03:59 > 2005-03-12 01:48:01.117707)
> make[1]: warning:  Clock skew detected.  Your build may be incomplete.
> make[1]: *** Warning: File `cmake.check_depends' has modification time 
> in the future (2005-03-12 14:03:59 > 2005-03-12 01:48:01.153084)
> make[2]: *** Warning: File `cmake.check_depends' has modification time 
> in the future (2005-03-12 14:03:59 > 2005-03-12 01:48:01.190019)
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[2]: *** Warning: File `cmake.check_depends' has modification time 
> in the future (2005-03-12 14:03:59 > 2005-03-12 01:48:01.232087)
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[1]: warning:  Clock skew detected.  Your build may be incomplete.
> make[1]: *** Warning: File `cmake.depends' has modification time in 
> the future (2005-03-12 14:03:59 > 2005-03-12 01:48:01.28338)
> Building object file GeodesicActiveContourGUI.o...
> In file included from /usr/include/c++/3.2.3/bits/locale_facets.tcc:41,
>                 from /usr/include/c++/3.2.3/locale:46,
>                 from /usr/include/c++/3.2.3/bits/ostream.tcc:37,
>                 from /usr/include/c++/3.2.3/ostream:275,
>                 from /usr/include/c++/3.2.3/iostream:45,
>                 from 
> /usr/people/arunk/ITK-Source/Code/Common/itkLightObject.h:24,
>                 from 
> /usr/people/arunk/ITK-Source/Code/Common/itkObject.h:23,
>                 from 
> /usr/people/arunk/ITK-Source/Code/Common/itkDataObject.h:23,
>                 from 
> /usr/people/arunk/ITK-Source/Code/Common/itkImageBase.h:23,
>                 from 
> /usr/people/arunk/ITK-Source/Code/Common/itkImage.h:20,
>                 from 
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourBase.h:21, 
>
>                 from 
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:7, 
>
>                 from 
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:3: 
>
> /usr/include/c++/3.2.3/cmath: In function `float std::acos(float)':
> /usr/include/c++/3.2.3/cmath:99: `::acosf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:105: `acos' not declared
> /usr/include/c++/3.2.3/cmath: In function `long double std::acos(long 
> double)':
> /usr/include/c++/3.2.3/cmath:109: `::acosl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:115: `asin' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::asin(float)':
> /usr/include/c++/3.2.3/cmath:119: `::asinf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::asin(long 
> double)':
> /usr/include/c++/3.2.3/cmath:127: `::asinl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:133: `atan' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::atan(float)':
> /usr/include/c++/3.2.3/cmath:137: `::atanf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::atan(long 
> double)':
> /usr/include/c++/3.2.3/cmath:145: `::atanl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:151: `atan2' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::atan2(float, 
> float)':
> /usr/include/c++/3.2.3/cmath:155: `::atan2f' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::atan2(long 
> double,
>   long double)':
> /usr/include/c++/3.2.3/cmath:164: `::atan2l' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:171: `ceil' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::ceil(float)':
> /usr/include/c++/3.2.3/cmath:175: `::ceilf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::ceil(long 
> double)':
> /usr/include/c++/3.2.3/cmath:183: `::ceill' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:189: `cos' not declared
> /usr/include/c++/3.2.3/cmath:199: `cosh' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::cosh(float)':
> /usr/include/c++/3.2.3/cmath:203: `::coshf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::cosh(long 
> double)':
> /usr/include/c++/3.2.3/cmath:211: `::coshl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:217: `exp' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::exp(float)':
> /usr/include/c++/3.2.3/cmath:221: `::expf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::exp(long 
> double)':
> /usr/include/c++/3.2.3/cmath:229: `::expl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:235: `fabs' not declared
> /usr/include/c++/3.2.3/cmath:245: `floor' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::floor(float)':
> /usr/include/c++/3.2.3/cmath:249: `::floorf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::floor(long
>   double)':
> /usr/include/c++/3.2.3/cmath:257: `::floorl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:263: `fmod' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::fmod(float, 
> float)':
> /usr/include/c++/3.2.3/cmath:267: `::fmodf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::fmod(long 
> double,
>   long double)':
> /usr/include/c++/3.2.3/cmath:276: `::fmodl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:283: `frexp' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::frexp(float, 
> int*)':
> /usr/include/c++/3.2.3/cmath:287: `::frexpf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::frexp(long 
> double,
>   int*)':
> /usr/include/c++/3.2.3/cmath:295: `::frexpl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:302: `ldexp' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::ldexp(float, int)':
> /usr/include/c++/3.2.3/cmath:306: `::ldexpf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::ldexp(long 
> double,
>   int)':
> /usr/include/c++/3.2.3/cmath:315: `::ldexpl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:322: `log' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::log(float)':
> /usr/include/c++/3.2.3/cmath:326: `::logf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::log(long 
> double)':
> /usr/include/c++/3.2.3/cmath:334: `::logl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:340: `log10' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::log10(float)':
> /usr/include/c++/3.2.3/cmath:344: `::log10f' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::log10(long
>   double)':
> /usr/include/c++/3.2.3/cmath:352: `::log10l' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:358: `modf' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::modf(float, 
> float*)':
> /usr/include/c++/3.2.3/cmath:362: `::modff' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::modf(long 
> double,
>   long double*)':
> /usr/include/c++/3.2.3/cmath:376: `::modfl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:397: `pow' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::pow(float, float)':
> /usr/include/c++/3.2.3/cmath:401: `::powf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::pow(long 
> double,
>   long double)':
> /usr/include/c++/3.2.3/cmath:410: `::powl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:429: `sin' not declared
> /usr/include/c++/3.2.3/cmath:439: `sinh' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::sinh(float)':
> /usr/include/c++/3.2.3/cmath:443: `::sinhf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::sinh(long 
> double)':
> /usr/include/c++/3.2.3/cmath:451: `::sinhl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:457: `sqrt' not declared
> /usr/include/c++/3.2.3/cmath:467: `tan' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::tan(float)':
> /usr/include/c++/3.2.3/cmath:471: `::tanf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::tan(long 
> double)':
> /usr/include/c++/3.2.3/cmath:479: `::tanl' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: At global scope:
> /usr/include/c++/3.2.3/cmath:485: `tanh' not declared
> /usr/include/c++/3.2.3/cmath: In function `float std::tanh(float)':
> /usr/include/c++/3.2.3/cmath:489: `::tanhf' undeclared (first use here)
> /usr/include/c++/3.2.3/cmath: In function `long double std::tanh(long 
> double)':
> /usr/include/c++/3.2.3/cmath:497: `::tanhl' undeclared (first use here)
> In file included from 
> /usr/people/arunk/ITK-Source/Code/Common/itkVector.txx:22,
>                 from 
> /usr/people/arunk/ITK-Source/Code/Common/itkVector.h:198,
>                 from 
> /usr/people/arunk/ITK-Source/Code/Common/itkPoint.h:20,
>                 from 
> /usr/people/arunk/ITK-Source/Code/Common/itkImageBase.h:29,
>                 from 
> /usr/people/arunk/ITK-Source/Code/Common/itkImage.h:20,
>                 from 
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourBase.h:21, 
>
>                 from 
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:7, 
>
>                 from 
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:3: 
>
> /usr/people/arunk/ITK-Source/Utilities/vxl/core/vnl/vnl_math.h: In 
> function
>   `double vnl_math_cuberoot(double)':
> /usr/people/arunk/ITK-Source/Utilities/vxl/core/vnl/vnl_math.h:219: 
> call of
>   overloaded `log(double)' is ambiguous
> /usr/include/c++/3.2.3/cmath:326: candidates are: float std::log(float)
> /usr/include/c++/3.2.3/cmath:334:                 long double 
> std::log(long
>   double)
> /usr/people/arunk/ITK-Source/Utilities/vxl/core/vnl/vnl_math.h:219: 
> call of
>   overloaded `log(double&)' is ambiguous
> /usr/include/c++/3.2.3/cmath:326: candidates are: float std::log(float)
> /usr/include/c++/3.2.3/cmath:334:                 long double 
> std::log(long
>   double)
> /usr/people/arunk/ITK-Source/Utilities/vxl/core/vnl/vnl_math.h: In 
> function
>   `double vnl_math_hypot(int, int)':
> /usr/people/arunk/ITK-Source/Utilities/vxl/core/vnl/vnl_math.h:222: 
> call of
>   overloaded `sqrt(double)' is ambiguous
> /usr/include/c++/3.2.3/cmath:461: candidates are: float std::sqrt(float)
> /usr/include/c++/3.2.3/cmath:465:                 long double 
> std::sqrt(long
>   double)
> /usr/people/arunk/ITK-Source/Utilities/vxl/core/vnl/vnl_math.h: In 
> function
>   `float vnl_math_hypot(float, float)':
> /usr/people/arunk/ITK-Source/Utilities/vxl/core/vnl/vnl_math.h:223: 
> call of
>   overloaded `sqrt(double)' is ambiguous
> /usr/include/c++/3.2.3/cmath:461: candidates are: float std::sqrt(float)
> /usr/include/c++/3.2.3/cmath:465:                 long double 
> std::sqrt(long
>   double)
> /usr/people/arunk/ITK-Source/Utilities/vxl/core/vnl/vnl_math.h: In 
> function
>   `double vnl_math_hypot(double, double)':
> /usr/people/arunk/ITK-Source/Utilities/vxl/core/vnl/vnl_math.h:224: 
> call of
>   overloaded `sqrt(double)' is ambiguous
> /usr/include/c++/3.2.3/cmath:461: candidates are: float std::sqrt(float)
> /usr/include/c++/3.2.3/cmath:465:                 long double 
> std::sqrt(long
>   double)
> In file included from 
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:3: 
>
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:8:29: 
> fltkLightButton.h: No such file or directory
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:13:29: 
> fltkProgressBar.h: No such file or directory
> In file included from 
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:3: 
>
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h: 
> At
>   global scope:
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:22: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:24: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:24: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:25: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:25: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:29: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:31: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:31: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:32: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:32: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:34: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:36: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:36: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:37: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:37: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:41: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:43: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:43: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:44: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:44: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:48: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:50: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:50: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:51: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:51: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:55: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:57: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:57: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:58: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:58: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:74: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:76: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:76: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:77: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:77: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.h:119: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:5: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:5: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:8: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:8: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx: 
> In
>   static member function `static void
>   GeodesicActiveContourGUI::cb_inputImageButton(...)':
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:9: 
> `o
>   ' undeclared (first use this function)
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:9: 
> (Each
>   undeclared identifier is reported only once for each function it 
> appears
>   in.)
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:9: 
> `v
>   ' undeclared (first use this function)
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx: 
> At
>   global scope:
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:19: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:19: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:22: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:22: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:26: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:26: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:29: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:29: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:40: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:40: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:43: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:43: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:54: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:54: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:57: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:57: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:68: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:68: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:71: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:71: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:103: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:103: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:106: 
> `
>   fltk' was not declared in this scope
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:106: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx: 
> In
>   constructor `GeodesicActiveContourGUI::GeodesicActiveContourGUI()':
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:254: 
> `
>   fltk' undeclared (first use this function)
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:254: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:257: 
> no
>   matching function for call to `Fl_Group::value(int)'
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:274: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:277: 
> no
>   matching function for call to `Fl_Group::value(int)'
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:288: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:291: 
> no
>   matching function for call to `Fl_Group::value(int)'
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:308: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:311: 
> no
>   matching function for call to `Fl_Group::value(int)'
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:328: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:331: 
> no
>   matching function for call to `Fl_Group::value(int)'
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:348: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:351: 
> no
>   matching function for call to `Fl_Group::value(int)'
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:390: 
> syntax
>   error before `::' token
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:393: 
> no
>   matching function for call to `Fl_Group::value(int)'
> /usr/people/arunk/test/GeodesicActiveContour/GeodesicActiveContourGUI.cxx:478: 
> syntax
>   error before `::' token
> make[1]: *** [GeodesicActiveContourGUI.o] Error 1
> make: *** [default_target] Error 2
>
>
> Please help me to figure out the error..
>
>
> Regards
> Arun
>
> Lino Ramirez wrote:
>
>> Hi Arun,
>>
>> The ADD_GUI_EXECUTABLE and the ITK_DISABLE_FLTK_GENERATED_WARNINGS are
>> MACROS defined in the CMakeLists.txt that you find in the main directory
>> of InsightApplications
>>
>> So if want to use them outside the main directory you have to copy 
>> them in
>> your own CMakeLists.txt (just do a search for those MACROS in the
>> CMakeLists.txt in the main directory of InsightApplications and copy 
>> paste
>> them into your own CMakeLists.txt)
>>
>> I hope this helps,
>>
>> Lino
>>
>>
>>  
>>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>



More information about the Insight-users mailing list