[Insight-users] Compiling errors FLTK

M. Elena Martinez elena at leibniz.iimas.unam.mx
Mon Mar 13 12:23:42 EST 2006


Dear all,

I have more than a week! stuck and this is the 3er email I
write!! and I got no answer!! I am desperate!! I hope somebody
can help me!

I have ITK 2.2.0, cmake 2.05 and fltk 1.1.7

I build all the examples from InsightApplications with out
problems and I have build the library FltkImageViewer at
Auxiliary.

I am trying to run my own local application following the
examples like Morphogenesis or Curves2DExtractor.

I have tried several version of CMakeLists.txt without success.

Last one give me these errors:

elena at greta:~/ProyectosITK/ICCH/RISA_ITK$ cmake .
-- Check for working C compiler: gcc -- works
-- Check for working CXX compiler: c++ -- works
-- Configuring done
-- Generating done
-- Build files have been written to: /home/elena/ProyectosITK/ICCH/RISA_ITK
elena at greta:~/ProyectosITK/ICCH/RISA_ITK$ make
Building dependencies cmake.check_depends...
Building object file main.o...
Building object file RisaAppBase.o...
Building object file RisaApp.o...
/home/elena/ProyectosITK/ICCH/RISA_ITK/RisaApp.cxx: In constructor `
RisaApp::RisaApp()':
/home/elena/ProyectosITK/ICCH/RISA_ITK/RisaApp.cxx:34: error: `Observe'
undeclared (first use this function)
/home/elena/ProyectosITK/ICCH/RISA_ITK/RisaApp.cxx:34: error: (Each undeclared
identifier is reported only once for each function it appears in.)
make[1]: *** [RisaApp.o] Error 1
make: *** [default_target] Error 2
elena at greta:~/ProyectosITK/ICCH/RISA_ITK$

The CMakeLists.txt is as follows:

PROJECT(RISA_ITK)


# Look for FLTK
INCLUDE (${CMAKE_ROOT}/Modules/FindFLTK.cmake)
# and ITK
INCLUDE (${CMAKE_ROOT}/Modules/FindITK.cmake)

IF (USE_ITK_FILE)
  INCLUDE(${USE_ITK_FILE})
ENDIF(USE_ITK_FILE)

SET(InsightApplications_SOURCE_DIR /home/elena/ITK/InsightApplications-2.2.0)
SET(InsightApplications_BINARY_DIR /home/elena/ITK/InsightApplications-2.2.0)

INCLUDE_DIRECTORIES( ${RISA_ITK_SOURCE_DIR} ${FLTK_INCLUDE_PATH}
${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer
${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer )

LINK_LIBRARIES(

  # FLTK libraries
  ${FLTK_BASE_LIBRARY}
  ${FLTK_GL_LIBRARY}
  ${FLTK_FORMS_LIBRARY}
  ${FLTK_IMAGES_LIBRARY}
  ${FLTK_PLATFORM_DEPENDENT_LIBS}

  ITKFltkImageViewer
  ITKBasicFilters
  ITKCommon
  ITKIO
  ITKNumerics
  ITKMetaIO )

SET(
    RISA_ITK_App_SRCS
    RisaAppBase
    RisaApp )

ADD_EXECUTABLE(
    RisaAppGUI
    main
    ${RISA_ITK_App_SRCS}  )

--------------------

I hope somebody can help!!


Many thanks,


Elena



More information about the Insight-users mailing list