[Insight-users] FLTK problem -- still struggling

Seniha Esen Yuksel eseny99 at yahoo.com
Wed Jun 28 00:50:24 EDT 2006


Hi all,
 I am still struggling with the FLTK. Now I tried to build the InsightApplications from the root applications directory, but now I need to set these libraries, I couldn't find where these are:
 DCMTK_dcmdata_INCLUDE_DIR        DCMTK_dcmdata_INCLUDE_DIR-NOTFOUND
   DCMTK_dcmdata_LIBRARY            DCMTK_dcmdata_LIBRARY-NOTFOUND
   DCMTK_dcmimgle_INCLUDE_DIR       DCMTK_dcmimgle_INCLUDE_DIR-NOTFOUND
   DCMTK_dcmimgle_LIBRARY           DCMTK_dcmimgle_LIBRARY-NOTFOUND
   DCMTK_dcmnet_INCLUDE_DIR         DCMTK_dcmnet_INCLUDE_DIR-NOTFOUND
   DCMTK_dcmnet_LIBRARY             DCMTK_dcmnet_LIBRARY-NOTFOUND
   DCMTK_imagedb_INCLUDE_DIR        DCMTK_imagedb_INCLUDE_DIR-NOTFOUND
   DCMTK_imagedb_LIBRARY            DCMTK_imagedb_LIBRARY-NOTFOUND
   DCMTK_ofstd_INCLUDE_DIR          DCMTK_ofstd_INCLUDE_DIR-NOTFOUND
  DCMTK_ofstd_LIBRARY              DCMTK_ofstd_LIBRARY-NOTFOUND
 
 
 So, as another attempt, I went back and tried to modify my Cmakelists and build imageviewer as a seperate application. Now the compilation is fine, but I am getting an error during make:
 /software/itksrc/InsightApplications/Auxiliary/FltkImageViewer/SliceView.h:26:23: fltkUtils.h: No such file or directory
 Is there some way to add all who is used?
 
 For the sake of having it in the list, I am writing my cmakelists here too:
 
 ======================================================
 PROJECT(ImageViewer)
 
   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)
 
 INCLUDE_DIRECTORIES (
   ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer
 )
 
 LINK_LIBRARIES (
   ITKBasicFilters
   ITKIO
   ITKFltkImageViewer
 )
 
 
 SET(ImageViewer_GUI_SRCS
   ImageViewerGUI.fl
   )
 
 FLTK_WRAP_UI( ImageViewer ${ImageViewer_GUI_SRCS} )
 
 # 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 AND NOT FLTK_USE_X)
     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})
       INSTALL_TARGETS(/bin ${name})
       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 AND NOT FLTK_USE_X)
   MACRO(ADD_GUI_EXECUTABLE name sources)
     ADD_EXECUTABLE(${name} ${sources})
     INSTALL_TARGETS(/bin ${name})
   ENDMACRO(ADD_GUI_EXECUTABLE)
 ENDIF(APPLE AND NOT FLTK_USE_X)
 
 #
 ITK_DISABLE_FLTK_GENERATED_WARNINGS("${ImageViewer_GUI_SRCS}")
 
 SET ( ImageViewer_SRCS
   ImageViewer.cxx
   ${ImageViewer_FLTK_UI_SRCS}
   )
 
 ADD_GUI_EXECUTABLE( ImageViewer "${ImageViewer_SRCS}" )
 
 =======================================================
 
 Thanks a lot for all the comments in advance!
 Esen
 
 
 

Seniha Esen Yuksel
 University of Florida

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060627/4b6d687a/attachment-0001.htm


More information about the Insight-users mailing list