[IGSTK-Users] IGSTK 5.2 not compiling with Vtk 6.1 (SetInput Not Foud)

Yaniv, Ziv ZYaniv at childrensnational.org
Mon Jun 9 11:09:15 EDT 2014


Currently IGSTK still hasn't moved to VTK 6. If you want to make the move on your own, you will have to modify the IGSTK code (vtkImageData::Update method has been removed), please take a look here for the way to do it:

http://stackoverflow.com/questions/21186615/migrating-to-vtk6-is-it-not-necessary-to-update-anymore?rq=1

        regards
             Ziv

-----Original Message-----
From: IGSTK-Users [mailto:igstk-users-bounces at public.kitware.com] On Behalf Of Ernesto de la Cruz Guevara Ramírez
Sent: Friday, May 30, 2014 2:05 PM
To: igstk-users at public.kitware.com
Subject: [IGSTK-Users] IGSTK 5.2 not compiling with Vtk 6.1 (SetInput Not Foud)

Hi everybody,
I'm trying to build IGSTK 5.2 with VTK 6.1 but all i've got is a bunch of errors saying that "‘class vtkImageData’ has no member named ‘Update’" or "‘class vtkImageMapToColors’ has no member named ‘SetInput’" and other related errors. 

Any help would be appreciated.

Here is my build log:

In file included from /opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.h:218:0,
                 from /opt/IGSTK-5.2/Source/igstkUSImageObjectRepresentation.h:20,
                 from /opt/IGSTK-5.2/Source/igstkUSImageObjectRepresentation.cxx:17:
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx: In destructor ‘igstk::ImageSpatialObjectRepresentation<TImageSpatialObject>::~ImageSpatialObjectRepresentation()’:
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:190:18: error: ‘class vtkImageMapToColors’ has no member named ‘SetInput’
     m_MapColors->SetInput( NULL );
                  ^
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx: In member function ‘void igstk::ImageSpatialObjectRepresentation<TImageSpatialObject>::AttemptSetSliceNumberProcessing()’:
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:309:18: error: ‘class vtkImageData’ has no member named ‘Update’
     m_ImageData->Update();
                  ^
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx: In member function ‘virtual void igstk::ImageSpatialObjectRepresentation<TImageSpatialObject>::UpdateRepresentationProcessing()’:
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:480:18: error: ‘class vtkImageMapToColors’ has no member named ‘SetInput’
     m_MapColors->SetInput( m_ImageData );
                  ^
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx: In member function ‘void igstk::ImageSpatialObjectRepresentation<TImageSpatialObject>::ReportSliceNumberBoundsProcessing()’:
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:566:16: error: ‘class vtkImageData’ has no member named ‘Update’
   m_ImageData->Update();
                ^
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx: In member function ‘void igstk::ImageSpatialObjectRepresentation<TImageSpatialObject>::ConnectVTKPipelineProcessing()’:
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:617:16: error: ‘class vtkImageMapToColors’ has no member named ‘SetInput’
   m_MapColors->SetInput( m_ImageData );
                ^
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:618:17: error: ‘class vtkImageActor’ has no member named ‘SetInput’
   m_ImageActor->SetInput( m_MapColors->GetOutput() );
                 ^
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx: In instantiation of ‘void igstk::ImageSpatialObjectRepresentation<TImageSpatialObject>::SetImageSpatialObjectProcessing() [with TImageSpatialObject = igstk::USImageObject]’:
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:85:3:   required from ‘igstk::ImageSpatialObjectRepresentation<TImageSpatialObject>::ImageSpatialObjectRepresentation() [with TImageSpatialObject = igstk::USImageObject]’
/opt/IGSTK-5.2/Source/igstkUSImageObjectRepresentation.cxx:24:52:   required from here
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:429:7: error: ‘class vtkImageData’ has no member named ‘Update’
       this->m_ImageData->Update();
       ^
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:431:5: error: ‘class vtkImageMapToColors’ has no member named ‘SetInput’
     this->m_MapColors->SetInput( this->m_ImageData );
     ^
/opt/IGSTK-5.2/Source/igstkImageSpatialObjectRepresentation.txx:455:3: error: ‘class vtkImageActor’ has no member named ‘SetInput’
   this->m_ImageActor->SetInput( this->m_MapColors->GetOutput() );
   ^
make[2]: *** [Source/CMakeFiles/IGSTK.dir/igstkUSImageObjectRepresentation.cxx.o] Error 1
make[1]: *** [Source/CMakeFiles/IGSTK.dir/all] Error 2 VII Escuela Internacional de Verano en la UCI del 30 de junio al 11 de julio de 2014. Ver www.uci.cu _______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at https://urldefense.proofpoint.com/v1/url?u=http://www.kitware.com/opensource/opensource.html&k=6JSkda1SE0Yss6Wblf1qjA%3D%3D%0A&r=s5Zh0c5Jvla3CIDBoIrolN3b9MoEKU3idowHnKC9ouk%3D%0A&m=9A0pDVA9laXF8IsQYx%2BWA%2BppTdQu2JNujVnmz7yra4s%3D%0A&s=7e79b4f97a5d5519763b251a746ffd5c2d5c564c949e8e50bd026002dd97ac27

Follow this link to subscribe/unsubscribe:
https://urldefense.proofpoint.com/v1/url?u=http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users&k=6JSkda1SE0Yss6Wblf1qjA%3D%3D%0A&r=s5Zh0c5Jvla3CIDBoIrolN3b9MoEKU3idowHnKC9ouk%3D%0A&m=9A0pDVA9laXF8IsQYx%2BWA%2BppTdQu2JNujVnmz7yra4s%3D%0A&s=61eba7e7e0980413f5ac345f76e19213691b0b82c57e6ebf9b74e1510a58b439
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4592 / Virus Database: 3955/7590 - Release Date: 05/30/14

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.


More information about the IGSTK-Users mailing list