[vtkusers] need help

Brian Gee Chacko hebrev at gmail.com
Tue Feb 5 11:22:37 EST 2008


Hi all i have found this error while generating the workspaces that included
both FLTK and VTK

The name of my project was vMAV12. I presume the error came in the
CMakeLists file itself, the following are the contents of the file

PROJECT (vMAV12)

FIND_PACKAGE(VTK REQUIRED)
IF(NOT VTK_USE_RENDERING)
  MESSAGE(FATAL_ERROR "Example ${PROJECT_NAME} requires VTK_USE_RENDERING.")
ENDIF(NOT VTK_USE_RENDERING)
INCLUDE(${VTK_USE_FILE})

FIND_PACKAGE ( FLTK)
IF ( FLTK_FOUND)
INCLUDE_DIRECTORIES( ${FLTK_INCLUDE_DIR} )
ENDIF( FLTK_FOUND)

ADD_EXECUTABLE(vMAV12 vMAV12.cxx)

IF (FLTK_FOUND)
FLTK_WRAP_UI(vMAV12 vMAV12GUI.fl)
ENDIF (FLTK_FOUND)

TARGET_LINK_LIBRARIES(vMAV12 vtkRendering vtkFiltering vtkImaging vtkHybrid
vtkWidgets ${FLTK_LIBRARIES})



The error message was

"It appears that you have not added these source files to your target . You
change your CMakeLists.txt file to directly add the generated files to the
target. For example FLTK_WRAP_UI..................."



Could somebody please rectify this. I got the CMakeLists.txt from

http://www.itk.org/CourseWare/Training/GettingStarted-IV.pdf



Regards

Brian Gee Chacko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080205/d2696e49/attachment.htm>


More information about the vtkusers mailing list