Please keep discussion on list.<br><br>Sorry, I have never used VS except via cmake generated solution files.<br><br>Bill<br><br><div class="gmail_quote">On Sun, Apr 10, 2011 at 3:22 PM, Bc. Michal Srna <span dir="ltr"><<a href="mailto:michal@srna.info">michal@srna.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I am not using CMake to build my project, I just wanted to know, what can cause those errors. I created new project in MVSC++ added ale dependencies for ITK and it worked, so I tought to do the same with VTK and I got those errors.<br>
<br>Thanks anyway...<div><div></div><div class="h5"><br><br><div class="gmail_quote">2011/4/10 Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Are you using CMake to build your project? If so, you should not add change the VS project properties or additional dependencies.<br><br>It is possible to build an external project without CMake, but it is tricky. There are many examples here:<br>
<a href="http://itk.org/Wiki/ITK/Examples" target="_blank">http://itk.org/Wiki/ITK/Examples</a><br><br>that combine vtk and itk, but they all use cmake.<br><br>Bill<br><br><div class="gmail_quote"><div><div></div><div>
On Sun, Apr 10, 2011 at 1:08 PM, Bc. Michal Srna <span dir="ltr"><<a href="mailto:michal@srna.info" target="_blank">michal@srna.info</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>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>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>S pozdravem Bc. Michal Srna<br><br>Fotografické portfolio:<br><a href="http://michalsrna.cz" target="_blank">http://michalsrna.cz</a><br>
</font></blockquote></div><br>