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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCMTK_dcmdata_INCLUDE_DIR-NOTFOUND<br>  &nbsp;DCMTK_dcmdata_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCMTK_dcmdata_LIBRARY-NOTFOUND<br>  &nbsp;DCMTK_dcmimgle_INCLUDE_DIR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCMTK_dcmimgle_INCLUDE_DIR-NOTFOUND<br>  &nbsp;DCMTK_dcmimgle_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCMTK_dcmimgle_LIBRARY-NOTFOUND<br>  &nbsp;DCMTK_dcmnet_INCLUDE_DIR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCMTK_dcmnet_INCLUDE_DIR-NOTFOUND<br>  &nbsp;DCMTK_dcmnet_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCMTK_dcmnet_LIBRARY-NOTFOUND<br> 
 &nbsp;DCMTK_imagedb_INCLUDE_DIR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCMTK_imagedb_INCLUDE_DIR-NOTFOUND<br>  &nbsp;DCMTK_imagedb_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCMTK_imagedb_LIBRARY-NOTFOUND<br>  &nbsp;DCMTK_ofstd_INCLUDE_DIR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCMTK_ofstd_INCLUDE_DIR-NOTFOUND<br> &nbsp;DCMTK_ofstd_LIBRARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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> &nbsp; FIND_PACKAGE(ITK)<br> &nbsp; IF(ITK_FOUND)<br> &nbsp;&nbsp;&nbsp; INCLUDE(${ITK_USE_FILE})<br> &nbsp; ELSE(ITK_FOUND)<br> &nbsp;&nbsp;&nbsp; MESSAGE(FATAL_ERROR<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cannot build InsightApplications without ITK.&nbsp; Please set ITK_DIR.")<br> &nbsp; ENDIF(ITK_FOUND)<br> <br> &nbsp; FIND_PACKAGE(FLTK)<br> &nbsp; IF(FLTK_FOUND)<br> &nbsp;&nbsp;&nbsp; INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<br> &nbsp; ENDIF(FLTK_FOUND)<br> <br> INCLUDE_DIRECTORIES (<br> &nbsp; ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer<br> )<br> <br> LINK_LIBRARIES (<br> &nbsp; ITKBasicFilters<br> &nbsp; ITKIO<br> &nbsp; ITKFltkImageViewer<br> )<br> <br> <br> SET(ImageViewer_GUI_SRCS<br> &nbsp; ImageViewerGUI.fl<br> &nbsp; )<br> <br> FLTK_WRAP_UI( ImageViewer ${ImageViewer_GUI_SRCS} )<br> <br> # The fluid-generated fltk sources
 have many warnings.&nbsp; This macro<br> # will disable warnings for the generated files on some compilers.<br> MACRO(ITK_DISABLE_FLTK_GENERATED_WARNINGS files)<br> &nbsp; IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)<br> &nbsp;&nbsp;&nbsp; IF(CMAKE_COMPILER_IS_GNUCXX)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FOREACH(f ${files})<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STRING(REGEX REPLACE "\\.fl$" ".cxx" SRC "${f}")<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STRING(REGEX REPLACE ".*/([^/]*)$" "\\1" SRC "${SRC}")<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET_SOURCE_FILES_PROPERTIES(${SRC} PROPERTIES COMPILE_FLAGS -w)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENDFOREACH(f)<br> &nbsp;&nbsp;&nbsp; ENDIF(CMAKE_COMPILER_IS_GNUCXX)<br> &nbsp; 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> &nbsp;&nbsp;&nbsp; FIND_PROGRAM(ITK_APPLE_RESOURCE Rez /Developer/Tools)<br> &nbsp;&nbsp;&nbsp; FIND_FILE(ITK_FLTK_RESOURCE mac.r /usr/local/include/FL)<br> &nbsp;&nbsp;&nbsp; IF(NOT ITK_FLTK_RESOURCE)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MESSAGE("Fltk resources not found, GUI application will not respond to mouse events")<br> &nbsp;&nbsp;&nbsp; ENDIF(NOT ITK_FLTK_RESOURCE)<br> <br> &nbsp;&nbsp;&nbsp; MACRO(ADD_GUI_EXECUTABLE name sources)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ADD_EXECUTABLE(${name} ${sources})<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INSTALL_TARGETS(/bin ${name})<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET(EXEC_PATH ${EXECUTABLE_OUTPUT_PATH})<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF(NOT EXEC_PATH)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET(EXEC_PATH ${CMAKE_CURRENT_BINARY_DIR})<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENDIF(NOT EXEC_PATH)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF(ITK_APPLE_RESOURCE)<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ADD_CUSTOM_COMMAND(SOURCE ${name}<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COMMAND ${ITK_APPLE_RESOURCE}<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARGS -t APPL ${ITK_FLTK_RESOURCE} -o<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${EXEC_PATH}/${name}<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TARGET ${name})<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENDIF(ITK_APPLE_RESOURCE)<br> &nbsp;&nbsp;&nbsp;
 ENDMACRO(ADD_GUI_EXECUTABLE)<br> ELSE(APPLE AND NOT FLTK_USE_X)<br> &nbsp; MACRO(ADD_GUI_EXECUTABLE name sources)<br> &nbsp;&nbsp;&nbsp; ADD_EXECUTABLE(${name} ${sources})<br> &nbsp;&nbsp;&nbsp; INSTALL_TARGETS(/bin ${name})<br> &nbsp; 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> &nbsp; ImageViewer.cxx<br> &nbsp; ${ImageViewer_FLTK_UI_SRCS}<br> &nbsp; )<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>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com