Hi all,<br> 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:<br> DCMTK_dcmdata_INCLUDE_DIR DCMTK_dcmdata_INCLUDE_DIR-NOTFOUND<br> DCMTK_dcmdata_LIBRARY DCMTK_dcmdata_LIBRARY-NOTFOUND<br> DCMTK_dcmimgle_INCLUDE_DIR DCMTK_dcmimgle_INCLUDE_DIR-NOTFOUND<br> DCMTK_dcmimgle_LIBRARY DCMTK_dcmimgle_LIBRARY-NOTFOUND<br> DCMTK_dcmnet_INCLUDE_DIR DCMTK_dcmnet_INCLUDE_DIR-NOTFOUND<br> DCMTK_dcmnet_LIBRARY DCMTK_dcmnet_LIBRARY-NOTFOUND<br>
DCMTK_imagedb_INCLUDE_DIR DCMTK_imagedb_INCLUDE_DIR-NOTFOUND<br> DCMTK_imagedb_LIBRARY DCMTK_imagedb_LIBRARY-NOTFOUND<br> DCMTK_ofstd_INCLUDE_DIR DCMTK_ofstd_INCLUDE_DIR-NOTFOUND<br> DCMTK_ofstd_LIBRARY DCMTK_ofstd_LIBRARY-NOTFOUND<br> <br> <br> 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:<br> /software/itksrc/InsightApplications/Auxiliary/FltkImageViewer/SliceView.h:26:23: fltkUtils.h: No such file or directory<br> Is there some way to add all who is used?<br> <br> For the sake of having it in the list, I am writing my cmakelists here too:<br> <br>
======================================================<br> PROJECT(ImageViewer)<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 InsightApplications 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> ENDIF(FLTK_FOUND)<br> <br> INCLUDE_DIRECTORIES (<br> ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer<br> )<br> <br> LINK_LIBRARIES (<br> ITKBasicFilters<br> ITKIO<br> ITKFltkImageViewer<br> )<br> <br> <br> SET(ImageViewer_GUI_SRCS<br> ImageViewerGUI.fl<br> )<br> <br> FLTK_WRAP_UI( ImageViewer ${ImageViewer_GUI_SRCS} )<br> <br> # The fluid-generated fltk sources
have many warnings. This macro<br> # will disable warnings for the generated files on some compilers.<br> MACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS files)<br> IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)<br> IF(CMAKE_COMPILER_IS_GNUCXX)<br> FOREACH(f ${files})<br> STRING(REGEX REPLACE "\\.fl$" ".cxx" SRC "${f}")<br> STRING(REGEX REPLACE ".*/([^/]*)$" "\\1" SRC "${SRC}")<br> SET_SOURCE_FILES_PROPERTIES(${SRC} PROPERTIES COMPILE_FLAGS -w)<br> ENDFOREACH(f)<br> ENDIF(CMAKE_COMPILER_IS_GNUCXX)<br> ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)<br> ENDMACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS)<br> #<br> #<br> <br> # Macro for adding resources to GUI application on the Mac<br> #<br> IF(APPLE AND NOT
FLTK_USE_X)<br> FIND_PROGRAM(ITK_APPLE_RESOURCE Rez /Developer/Tools)<br> FIND_FILE(ITK_FLTK_RESOURCE mac.r /usr/local/include/FL)<br> IF(NOT ITK_FLTK_RESOURCE)<br> MESSAGE("Fltk resources not found, GUI application will not respond to mouse events")<br> ENDIF(NOT ITK_FLTK_RESOURCE)<br> <br> MACRO(ADD_GUI_EXECUTABLE name sources)<br> ADD_EXECUTABLE(${name} ${sources})<br> INSTALL_TARGETS(/bin ${name})<br> SET(EXEC_PATH ${EXECUTABLE_OUTPUT_PATH})<br> IF(NOT EXEC_PATH)<br> SET(EXEC_PATH ${CMAKE_CURRENT_BINARY_DIR})<br> ENDIF(NOT EXEC_PATH)<br> IF(ITK_APPLE_RESOURCE)<br>
ADD_CUSTOM_COMMAND(SOURCE ${name}<br> COMMAND ${ITK_APPLE_RESOURCE}<br> ARGS -t APPL ${ITK_FLTK_RESOURCE} -o<br> ${EXEC_PATH}/${name}<br> TARGET ${name})<br> ENDIF(ITK_APPLE_RESOURCE)<br>
ENDMACRO(ADD_GUI_EXECUTABLE)<br> ELSE(APPLE AND NOT FLTK_USE_X)<br> MACRO(ADD_GUI_EXECUTABLE name sources)<br> ADD_EXECUTABLE(${name} ${sources})<br> INSTALL_TARGETS(/bin ${name})<br> ENDMACRO(ADD_GUI_EXECUTABLE)<br> ENDIF(APPLE AND NOT FLTK_USE_X)<br> <br> #<br> ITK_DISABLE_FLTK_GENERATED_WARNINGS("${ImageViewer_GUI_SRCS}")<br> <br> SET ( ImageViewer_SRCS<br> ImageViewer.cxx<br> ${ImageViewer_FLTK_UI_SRCS}<br> )<br> <br> ADD_GUI_EXECUTABLE( ImageViewer "${ImageViewer_SRCS}" )<br> <br> =======================================================<br> <br> Thanks a lot for all the comments in advance!<br> Esen<br> <br> <br> <BR><BR>Seniha Esen Yuksel<br> University of Florida<br><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com