[vtkusers] how to build an vtkiniria3d example or INRIAviz4D separately?

Anthony slam_ono at yahoo.com
Tue Apr 22 23:04:17 EDT 2008


Hi everyone, 
I posted this in vtkiniria3d user mail list but I thought I could try my luck here.

I copied DataManager in Examples to other place than the source tree and tried to build it separately but i failed . It was successful when being built together with the whole vtkinria3d though .Below is my CMakeList.txt and error mess,. Thank you.

//------------------CMakeList.txt---------------------------------------
PROJECT(DataManager)

FIND_PACKAGE (ITK)
 IF (ITK_FOUND)
   INCLUDE(${USE_ITK_FILE} )
 ENDIF(ITK_FOUND)

FIND_PACKAGE (VTK)
 IF (VTK_FOUND)
   INCLUDE(${USE_VTK_FILE} )
 ENDIF(VTK_FOUND)

FIND_PACKAGE(KWWidgets)
 IF(KWWidgets_FOUND)
   INCLUDE(${KWWidgets_USE_FILE})
 ENDIF(KWWidgets_FOUND)

FIND_PACKAGE(vtkINRIA3D REQUIRED)
INCLUDE(${vtkINRIA3D_USE_FILE})

IF(APPLE)
SET(GUI_EXECUTABLE  MACOSX_BUNDLE)
ENDIF(APPLE)

ADD_EXECUTABLE(DataManager  ${GUI_EXECUTABLE}
DataManager.cxx
)

TARGET_LINK_LIBRARIES(DataManager
vtkDataManagement
vtkRenderingAddOn
vtkVisuManagement
vtkRendering
vtkIO
)

//-------------------Error Message-----------------------------------
In file included from /usr/local/include/vtkMetaDataSetSequence.h:29,
                 from /export/home/anhtuan/Download/working/DataManager/DataManager.cxx:23:
/usr/local/include/vtkMetaImageData.h:31:38: error: itkImageToVTKImageFilter.h: No such file or directory
/usr/local/include/vtkMetaImageData.h:32:38: error: itkVTKImageToImageFilter.h: No such file or directory
/usr/local/include/vtkMetaImageData.h:80: error: typedef name may not be a nested-name-specifier
/usr/local/include/vtkMetaImageData.h:80: error: expected ‘;’ before ‘<’  token
/usr/local/include/vtkMetaImageData.h:325: error: ‘ItkConverterType’ has not  been declared
/usr/local/include/vtkMetaImageData.h:325: error: expected ‘;’ before ‘m_ItkConverter’
/usr/local/include/vtkMetaImageData.h: In member function ‘void vtkMetaImageData::SetItkImage(typename itk::Image<type, 3u>::Pointer)’:
/usr/local/include/vtkMetaImageData.h:116: error: ‘ImageToVTKImageFilter’ in namespace ‘itk’ does not name a type
/usr/local/include/vtkMetaImageData.h:116: error: expected unqualified-id before ‘<’ token
/usr/local/include/vtkMetaImageData.h:117: error: ‘ConverterType’ has not been declared
/usr/local/include/vtkMetaImageData.h:117: error: expected initializer before ‘converter’
/usr/local/include/vtkMetaImageData.h:118: error: ‘converter’ was not declared in this scope
/usr/local/include/vtkMetaImageData.h:120: error: incomplete type ‘vtkImageData’ used in nested name  specifier
/usr/local/include/vtkMetaImageData.h:121: error: invalid use of undefined type ‘struct  vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct vtkImageData’
/usr/local/include/vtkMetaImageData.h:122: error: no matching function for call to ‘vtkMetaImageData::SetDataSet(vtkImageData*&)’
/usr/local/include/vtkMetaImageData.h:273: note: candidates are: virtual void vtkMetaImageData::SetDataSet(vtkDataSet*)
/usr/local/include/vtkMetaImageData.h:123: error: invalid use of undefined type ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct vtkImageData’
/usr/local/include/vtkMetaDataSetSequence.h: In member function ‘void vtkMetaDataSetSequence::WriteSingleFile(const char*)’:
/usr/local/include/vtkMetaDataSetSequence.h:101: error: incomplete type ‘vtkImageData’ used in nested name specifier
/usr/local/include/vtkMetaDataSetSequence.h:114: error:  invalid use of undefined type ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41:  error: forward declaration of ‘struct vtkImageData’
/usr/local/include/vtkMetaDataSetSequence.h:115: error: invalid use of undefined type ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct vtkImageData’
/usr/local/include/vtkMetaDataSetSequence.h:116: error: invalid use of undefined type ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct vtkImageData’
/usr/local/include/vtkMetaDataSetSequence.h:123: error: invalid use of undefined type ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct vtkImageData’
/usr/local/include/vtkMetaDataSetSequence.h:124: error: invalid use of undefined type ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct  vtkImageData’
/usr/local/include/vtkMetaDataSetSequence.h:125: error: invalid use of undefined type  ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct vtkImageData’
/usr/local/include/vtkMetaDataSetSequence.h:151: error: invalid use of undefined type ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct vtkImageData’
/usr/local/include/vtkMetaDataSetSequence.h:155: error: invalid use of undefined type ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct vtkImageData’
/usr/local/include/vtkMetaDataSetSequence.h:159: error: invalid use of undefined type ‘struct vtkImageData’
/usr/local/include/vtkSynchronizedView.h:41: error: forward declaration of ‘struct vtkImageData’
make[2]: *** [CMakeFiles/DataManager.dir/DataManager.o] Error 1
make[1]: *** [CMakeFiles/DataManager.dir/all] Error  2
make: *** [all] Error 2


 Send instant messages to your online friends http://uk.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080423/bfb72cf5/attachment.htm>


More information about the vtkusers mailing list