Hello VTK users,<br><br>in my project I use ITKv4 and now I would like to use some features of VTK. I downloaded the latest version vtk-5.6.1, used CMAKE, without errors build VTK with MVSC++ 2008 and added path to all VTK libraries to project properties. I also added all VTK *.lib files to Additional Dependencies under project properties. <br>
<br>Now I want only to connect output of ITK pipeline to VTK, the code is:<br><br>typedef itk::ImageToVTKImageFilter<TransformedImageType> ConnectorType;<br>ConnectorType::Pointer connector= ConnectorType::New();<br>
<br>connector->SetInput( TransformedImportFilter->GetOutput() );<br><br>where TransformedImportFilter is ITK output of ImportImageFilter.<br><br>I also included this headers:<br><br>#include "itkImageToVTKImageFilter.h" <br>
<br>When I want to compile my project, I get these errors:<br><br>1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: void * __thiscall itk::VTKImageExportBase::GetCallbackUserData(void)" (?GetCallbackUserData@VTKImageExportBase@itk@@QAEPAXXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: void * (__cdecl*__thiscall itk::VTKImageExportBase::GetBufferPointerCallback(void)const )(void *)" (?GetBufferPointerCallback@VTKImageExportBase@itk@@QBEP6APAXPAX@ZXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: int * (__cdecl*__thiscall itk::VTKImageExportBase::GetDataExtentCallback(void)const )(void *)" (?GetDataExtentCallback@VTKImageExportBase@itk@@QBEP6APAHPAX@ZXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: void (__cdecl*__thiscall itk::VTKImageExportBase::GetUpdateDataCallback(void)const )(void *)" (?GetUpdateDataCallback@VTKImageExportBase@itk@@QBEP6AXPAX@ZXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: void (__cdecl*__thiscall itk::VTKImageExportBase::GetPropagateUpdateExtentCallback(void)const )(void *,int *)" (?GetPropagateUpdateExtentCallback@VTKImageExportBase@itk@@QBEP6AXPAXPAH@ZXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: int (__cdecl*__thiscall itk::VTKImageExportBase::GetNumberOfComponentsCallback(void)const )(void *)" (?GetNumberOfComponentsCallback@VTKImageExportBase@itk@@QBEP6AHPAX@ZXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: char const * (__cdecl*__thiscall itk::VTKImageExportBase::GetScalarTypeCallback(void)const )(void *)" (?GetScalarTypeCallback@VTKImageExportBase@itk@@QBEP6APBDPAX@ZXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: class itk::VTKImageExportBase::CallbackTypeProxy __thiscall itk::VTKImageExportBase::GetOriginCallback(void)const " (?GetOriginCallback@VTKImageExportBase@itk@@QBE?AVCallbackTypeProxy@12@XZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: class itk::VTKImageExportBase::CallbackTypeProxy __thiscall itk::VTKImageExportBase::GetSpacingCallback(void)const " (?GetSpacingCallback@VTKImageExportBase@itk@@QBE?AVCallbackTypeProxy@12@XZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: int * (__cdecl*__thiscall itk::VTKImageExportBase::GetWholeExtentCallback(void)const )(void *)" (?GetWholeExtentCallback@VTKImageExportBase@itk@@QBEP6APAHPAX@ZXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: int (__cdecl*__thiscall itk::VTKImageExportBase::GetPipelineModifiedCallback(void)const )(void *)" (?GetPipelineModifiedCallback@VTKImageExportBase@itk@@QBEP6AHPAX@ZXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "public: void (__cdecl*__thiscall itk::VTKImageExportBase::GetUpdateInformationCallback(void)const )(void *)" (?GetUpdateInformationCallback@VTKImageExportBase@itk@@QBEP6AXPAX@ZXZ) referenced in function "protected: __thiscall itk::ImageToVTKImageFilter<class itk::Image<short,3> >::ImageToVTKImageFilter<class itk::Image<short,3> >(void)" (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2019: unresolved external symbol "protected: __thiscall itk::VTKImageExportBase::VTKImageExportBase(void)" (??0VTKImageExportBase@itk@@IAE@XZ) referenced in function "protected: __thiscall itk::VTKImageExport<class itk::Image<short,3> >::VTKImageExport<class itk::Image<short,3> >(void)" (??0?$VTKImageExport@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>
1>visualization_routines.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::VTKImageExportBase::UpdateInformationCallback(void)" (?UpdateInformationCallback@VTKImageExportBase@itk@@MAEXXZ)<br>
1>visualization_routines.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall itk::VTKImageExportBase::PipelineModifiedCallback(void)" (?PipelineModifiedCallback@VTKImageExportBase@itk@@MAEHXZ)<br>
1>visualization_routines.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::VTKImageExportBase::UpdateDataCallback(void)" (?UpdateDataCallback@VTKImageExportBase@itk@@MAEXXZ)<br>
1>visualization_routines.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall itk::VTKImageExportBase::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const " (?PrintSelf@VTKImageExportBase@itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)<br clear="all">
<br>Don't know, what am I doing wrong?<br><br><br><br>Best regards,<br><br>Michal<br><br>Faculty of Biomedical Engineering CTU<br>