[ITK Community] Installation of a single ITK App

Girish, Gavaskar Ruturaj gavaskar.ruturaj.girish at philips.com
Wed Feb 5 23:16:17 EST 2014


Hi,

Apologies for the long post which follows.

Here is the error I get:

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
FLTK_FLUID_EXECUTABLE
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:42 (ITK_DISABLE_FLTK_GENERATED_WARNINGS):
Unknown CMake command "ITK_DISABLE_FLTK_GENERATED_WARNINGS".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
FLTK_WRAP_UI was called with a target that was never created: RegionGrowingSegmentation. The problem was found while processing the source directory: D:/ITKApps-27-01-2014/RegionGrowingSegmentation. This FLTK_WRAP_UI call will be ignored.
FLTK_WRAP_UI was called with a target that was never created: RegionGrowingSegmentation2D. The problem was found while processing the source directory: D:/ITKApps-27-01-2014/RegionGrowingSegmentation. This FLTK_WRAP_UI call will be ignored.
Configuring incomplete, errors occurred!
See also "D:/RegionGrowingSegmentation-Build/CMakeFiles/CMakeOutput.log".

So I added the following 3 commands to CMakeLists.txt:


1)      SET(FLTK_FLUID_EXECUTABLE "C:/Program Files/FLTK/bin/fluid.exe")

2)      CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

3)      (Copied from ITKApps/CMakeLists.txt)

MACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS files)

  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)

  IF(MSVC)

    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(MSVC)

ENDMACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS)

Then I got the following error in cmake:

CMake Error at CMakeLists.txt:82 (ADD_GUI_EXECUTABLE):
Unknown CMake command "ADD_GUI_EXECUTABLE".
FLTK_WRAP_UI was called with a target that was never created: RegionGrowingSegmentation. The problem was found while processing the source directory: D:/ITKApps-27-01-2014/RegionGrowingSegmentation. This FLTK_WRAP_UI call will be ignored.
FLTK_WRAP_UI was called with a target that was never created: RegionGrowingSegmentation2D. The problem was found while processing the source directory: D:/ITKApps-27-01-2014/RegionGrowingSegmentation. This FLTK_WRAP_UI call will be ignored.
Configuring incomplete, errors occurred!

I am using Windows 7 with Visual Studio. Please help. Thanks in advance.

Regards
Ruturaj


________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140206/202a0d67/attachment-0002.html>


More information about the Community mailing list