No subject
Tue Apr 8 17:34:44 EDT 2008
were simply missing the installation of two header files. This is now
fixed (update your vtkINRIA3D version).
One last thing: you are missing a few libraries during linking. I would
suggest to add those:
vtkWidgets
vtkVolumeRendering
ITKCommon
ITKIO
ITKBasicFilter
in order to obtain a smooth & clean compilation.
Hope this helps.
Pierre Fillard,
Neurospin - CEA France.
> 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
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
More information about the vtkusers
mailing list