[Insight-users] FltkImageViewer
Julien Jomier
jjomier at cs.unc.edu
Wed Aug 11 15:29:03 EDT 2004
Hi Rudi,
Can you post your *CMakeCache.txt* and not the CMakeLists.txt. The
CMakeCache.txt shoud be located in the binary directory where you are
building InsightApplications.
Also are you using CMake 2.0 patch 2 or patch 3?
Julien
> -----Original Message-----
> From: insight-users-bounces at itk.org
> [mailto:insight-users-bounces at itk.org] On Behalf Of Rudi Ratlos
> Sent: Wednesday, August 11, 2004 3:22 PM
> To: Julien Jomier
> Cc: Insight-users at itk.org
> Subject: RE: [Insight-users] FltkImageViewer
>
>
> Hi Julien,
> thanks for your help !
> I use cmake version 2.0:
>
> 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})
> ELSE(FLTK_FOUND)
> MESSAGE(FATAL_ERROR
> "Cannot build InsightApplications without
> FLTK. Please set FLTK_DIR.")
> ENDIF(FLTK_FOUND)
>
>
> SET(FltkImageViewer_SRCS
> fltkBox3D.cxx
> fltkCone3D.cxx
> fltkClippingPlane3DDrawer.cxx
> fltkCylinder3D.cxx
> fltkFrustum3D.cxx
> fltkGlWindow.cxx
> fltkGlWindowInteractive.cxx
> fltkGlWindowInteractiveFlat.cxx
> fltkImage2DViewerWindow.cxx
> fltkRGBImage2DViewerWindow.cxx
> fltkLightButton.cxx
> fltkProgressBar.cxx
> fltkShape3D.cxx
> fltkSphere3D.cxx
> fltkWindowInteractive.cxx
> fltkTimeProbeGUI.cxx
> fltkTimeProbesCollector.cxx
> fltkUtils.cxx
> )
>
> SET(FltkImageViewer_GUI_SRCS
> fltkClippingPlane3DDrawerGUI.fl
> fltkDisplayGlWindowGUI.fl
> fltkDisplayGlWindowFlatGUI.fl
> fltkFrustumFunctionControlGUI.fl
> fltkImageViewerGUI.fl
> fltkImage2DViewerGUI.fl
> fltkRGBImage2DViewerGUI.fl
> fltkRegularStepGradientDescentGUI.fl
> fltkSlice2DDrawerGUI.fl
> fltkSlice3DDrawerGUI.fl
> fltkSphereFunctionControlGUI.fl
> fltkTimeProbesCollectorGUI.fl
> )
>
> IF(WIN32)
> ADD_DEFINITIONS(-DWIN32)
> ENDIF(WIN32)
>
> INCLUDE_DIRECTORIES(
>
> ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer
>
> ${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer
> )
>
> ADD_LIBRARY(ITKFltkImageViewer
> ${FltkImageViewer_SRCS})
>
> TARGET_LINK_LIBRARIES(ITKFltkImageViewer
> ${FLTK_LIBRARIES} ${OPENGL_glu_LIBRARY}
> ${OPENGL_LIBRARIES})
>
> # Take the list of GUI files, generate .cxx and .h
> from them and add
> # them to the build process of the target
> FLTK_WRAP_UI(ITKFltkImageViewer
> ${FltkImageViewer_GUI_SRCS} )
>
> # The fluid-generated fltk sources have many warnings.
> Disable
> # warnings for the generated files on some compilers.
> IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}
> GREATER 1.6)
> IF(CMAKE_COMPILER_IS_GNUCXX)
> FOREACH(f ${FltkImageViewer_GUI_SRCS})
> STRING(REGEX REPLACE "\\.fl$" ".cxx" SRC "${f}")
> SET(SRC
> ${InsightApplications_BINARY_DIR}/Auxiliary/FltkImageViewer/${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)
>
>
>
>
>
> --- Julien Jomier <jjomier at cs.unc.edu> wrote:
>
> > Hi Rudi,
> >
> > Can you post your CMakeCache.txt? Also, what version
> > of CMake are you using?
> > Regarding your other question: .lib are libraries
> > generated on Windows
> > systems and .a on linux systems.
> >
> > regards,
> >
> > Julien
> >
> > > -----Original Message-----
> > > From: insight-users-bounces at itk.org
> > > [mailto:insight-users-bounces at itk.org] On Behalf
> > Of Rudi Ratlos
> > > Sent: Wednesday, August 11, 2004 2:11 PM
> > > To: Luis Ibanez
> > > Cc: insight-users at itk.org
> > > Subject: Re: [Insight-users] FltkImageViewer
> > >
> > >
> > > Hi Luis,
> > > I reconfigured everything but still have the same
> > > errors, allthough all the .cxx files are there and
> > I
> > > am running the Application from the top directory.
> > >
> > > I am also wondering about the .a lib files I have.
> > > Could this be a problem ?
> > > Thanks for your help
> > > Rudi
> > > --- Luis Ibanez <luis.ibanez at kitware.com> wrote:
> > >
> > > >
> > > > Hi Rudi,
> > > >
> > > > You are probably attempting to run CMake
> > > > in a subdirectory of InsightApplications.
> > > >
> > > > Presumably in the subdirectory
> > > >
> > > > InsightApplications/Auxiliary
> > > >
> > > >
> > > >
> > > >
> > > > Please, don't do that.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > InsightApplications should be configured from
> > the
> > > > top directory.
> > > >
> > > > Please follow the instructions in the Wiki pages
> > > >
> > > > http://www.itk.org/Wiki/ITK_Insight_Applications
> > > >
> > > >
> > > > and let us know if you find further problems,
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > > >
> > > > Luis
> > > >
> > > >
> > > >
> > > > ---------------------
> > > > Rudi Ratlos wrote:
> > > >
> > > > > Hi,
> > > > > I have some problems testing fltk with
> > > > > FltkImageViewer. I set all paths in cmake also
> > for
> > > > the
> > > > > libraries and fluid correctly. (However in my
> > lib
> > > > path
> > > > > are .a files and not .lib files e.g. fltkd.a
> > > > instead
> > > > > of fltkd.lib). I have no idea, any help
> > > > appreciated
> > > > > Thanks
> > > > > Rudi
> > > > >
> > > > > CMake Error: can not find file
> > > > >
> > > >
> > >
> >
> /Auxiliary/FltkImageViewer/fltkClippingPlane3DDrawerGUI.cxx
> > > > >
> > > > > Tried .c .C .c++ .cc .cpp .cxx .m .M .mm .h
> > .h++
> > > > .hm
> > > > > .hpp .hxx .in .txx
> > > > >
> > > > > CMake Error: CMake failed to properly look up
> > > > > cmSourceFile:
> > > > >
> > > >
> > >
> >
> /Auxiliary/FltkImageViewer/fltkClippingPlane3DDrawerGUI.cxx
> > > > >
> > > > > CMake Error: can not find file
> > > > >
> > > >
> > >
> >
> /Auxiliary/FltkImageViewer/fltkDisplayGlWindowGUI.cxx
> > > > >
> > > > > Tried .c .C .c++ .cc .cpp .cxx .m .M .mm .h
> > .h++
> > > > .hm
> > > > > .hpp .hxx .in .txx
> > > > >
> > > > > CMake Error: CMake failed to properly look up
> > > > > cmSourceFile:
> > > > >
> > > >
> > >
> >
> /Auxiliary/FltkImageViewer/fltkDisplayGlWindowGUI.cxx
> > > > >
> > > > > CMake Error: can not find file
> > > > >
> > > >
> > >
> >
> /Auxiliary/FltkImageViewer/fltkDisplayGlWindowFlatGUI.cxx
> > > > >
> > > > > Tried .c .C .c++ .cc .cpp .cxx .m .M .mm .h
> > .h++
> > > > .hm
> > > > > .hpp .hxx .in .txx
> > > > >
> > > > > CMake Error: CMake failed to properly look up
> > > > > cmSourceFile:
> > > > >
> > > >
> > >
> >
> /Auxiliary/FltkImageViewer/fltkDisplayGlWindowFlatGUI.cxx
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > Read only the mail you want - Yahoo! Mail
> > > > SpamGuard.
> > > > > http://promotions.yahoo.com/new_mail
> > > > >
> > _______________________________________________
> > > > > Insight-users mailing list
> > > > > Insight-users at itk.org
> > > > >
> > http://www.itk.org/mailman/listinfo/insight-users
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > New and Improved Yahoo! Mail - Send 10MB messages!
> > > http://promotions.yahoo.com/new_mail
> > > _______________________________________________
> > > Insight-users mailing list
> > > Insight-users at itk.org
> > > http://www.itk.org/mailman/listinfo/insight-users
> > >
> >
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> 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