[Insight-users] Compiling errors FLTK

Luis Ibanez luis.ibanez at kitware.com
Tue Mar 14 13:42:30 EST 2006


Hi Elena,

Can you please post the content of your file "RisaApp.cxx" ?

It seems that in line 34 of that file you are calling a
method that has not been declared, or you are using a
variable that has not been declared.

This doesn't seem to be related to ITK or FLTK at all.

Please post your code to the list so we can advice you.


    Thanks


       Luis



-------------------------
M. Elena Martinez wrote:
> 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
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 



More information about the Insight-users mailing list