[ITK] [ITK-users] Error converting ITK to VTK
viana
vianamp at gmail.com
Fri May 22 16:53:40 EDT 2015
Hi Bill. I just tried to compile the example in this page using the given
CMakeLists.txt file. I got this error. Any idea?
Scanning dependencies of target ImageToVTKImageFilter
[100%] Building CXX object
CMakeFiles/ImageToVTKImageFilter.dir/ImageToVTKImageFilter.cxx.o
/Users/matheusviana/Desktop/ImageToVTKImageFilter/ImageToVTKImageFilter.cxx:7:28:
error: vtkImageViewer.h: No such file or directory
/Users/matheusviana/Desktop/ImageToVTKImageFilter/ImageToVTKImageFilter.cxx:
In function ‘int main(int, char**)’:
/Users/matheusviana/Desktop/ImageToVTKImageFilter/ImageToVTKImageFilter.cxx:49:
error: invalid use of incomplete type ‘struct vtkRenderWindow’
/Users/matheusviana/Desktop/VTK-master/Rendering/Core/vtkRenderWindowInteractor.h:62:
error: forward declaration of ‘struct vtkRenderWindow’
/Users/matheusviana/Desktop/VTK-master/Common/Core/vtkSmartPointer.h: In
static member function ‘static vtkSmartPointer<T> vtkSmartPointer<T>::New()
[with T = vtkRenderWindow]’:
/Users/matheusviana/Desktop/ImageToVTKImageFilter/ImageToVTKImageFilter.cxx:48:
instantiated from here
/Users/matheusviana/Desktop/VTK-master/Common/Core/vtkSmartPointer.h:117:
error: incomplete type ‘vtkRenderWindow’ used in nested name specifier
/Users/matheusviana/Desktop/VTK-master/Common/Core/vtkSmartPointer.h: In
member function ‘T* vtkSmartPointer<T>::operator->() const [with T =
vtkRenderWindow]’:
/Users/matheusviana/Desktop/ImageToVTKImageFilter/ImageToVTKImageFilter.cxx:49:
instantiated from here
/Users/matheusviana/Desktop/VTK-master/Common/Core/vtkSmartPointer.h:94:
error: invalid static_cast from type ‘vtkObjectBase* const’ to type
‘vtkRenderWindow*’
/Users/matheusviana/Desktop/VTK-master/Common/Core/vtkSmartPointer.h: In
member function ‘vtkSmartPointer<T>::operator T*() const [with T =
vtkRenderWindow]’:
/Users/matheusviana/Desktop/ImageToVTKImageFilter/ImageToVTKImageFilter.cxx:58:
instantiated from here
/Users/matheusviana/Desktop/VTK-master/Common/Core/vtkSmartPointer.h:79:
error: invalid static_cast from type ‘vtkObjectBase* const’ to type
‘vtkRenderWindow*’
make[2]: ***
[CMakeFiles/ImageToVTKImageFilter.dir/ImageToVTKImageFilter.cxx.o] Error 1
make[1]: *** [CMakeFiles/ImageToVTKImageFilter.dir/all] Error 2
make: *** [all] Error 2
--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Error-converting-ITK-to-VTK-tp7587392p7587401.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list