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">&lt;<a href="mailto:michal@srna.info">michal@srna.info</a>&gt;</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">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</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">&lt;<a href="mailto:michal@srna.info" target="_blank">michal@srna.info</a>&gt;</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&lt;TransformedImageType&gt; ConnectorType;<br>ConnectorType::Pointer connector= ConnectorType::New();<br>



<br>connector-&gt;SetInput( TransformedImportFilter-&gt;GetOutput() );<br><br>where  TransformedImportFilter is ITK output of ImportImageFilter.<br><br>I also included this headers:<br><br>#include &quot;itkImageToVTKImageFilter.h&quot; <br>



<br>When I want to compile my project, I get these errors:<br><br>1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: void * __thiscall itk::VTKImageExportBase::GetCallbackUserData(void)&quot; (?GetCallbackUserData@VTKImageExportBase@itk@@QAEPAXXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: void * (__cdecl*__thiscall itk::VTKImageExportBase::GetBufferPointerCallback(void)const )(void *)&quot; (?GetBufferPointerCallback@VTKImageExportBase@itk@@QBEP6APAXPAX@ZXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: int * (__cdecl*__thiscall itk::VTKImageExportBase::GetDataExtentCallback(void)const )(void *)&quot; (?GetDataExtentCallback@VTKImageExportBase@itk@@QBEP6APAHPAX@ZXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: void (__cdecl*__thiscall itk::VTKImageExportBase::GetUpdateDataCallback(void)const )(void *)&quot; (?GetUpdateDataCallback@VTKImageExportBase@itk@@QBEP6AXPAX@ZXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: void (__cdecl*__thiscall itk::VTKImageExportBase::GetPropagateUpdateExtentCallback(void)const )(void *,int *)&quot; (?GetPropagateUpdateExtentCallback@VTKImageExportBase@itk@@QBEP6AXPAXPAH@ZXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: int (__cdecl*__thiscall itk::VTKImageExportBase::GetNumberOfComponentsCallback(void)const )(void *)&quot; (?GetNumberOfComponentsCallback@VTKImageExportBase@itk@@QBEP6AHPAX@ZXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: char const * (__cdecl*__thiscall itk::VTKImageExportBase::GetScalarTypeCallback(void)const )(void *)&quot; (?GetScalarTypeCallback@VTKImageExportBase@itk@@QBEP6APBDPAX@ZXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: class itk::VTKImageExportBase::CallbackTypeProxy __thiscall itk::VTKImageExportBase::GetOriginCallback(void)const &quot; (?GetOriginCallback@VTKImageExportBase@itk@@QBE?AVCallbackTypeProxy@12@XZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: class itk::VTKImageExportBase::CallbackTypeProxy __thiscall itk::VTKImageExportBase::GetSpacingCallback(void)const &quot; (?GetSpacingCallback@VTKImageExportBase@itk@@QBE?AVCallbackTypeProxy@12@XZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: int * (__cdecl*__thiscall itk::VTKImageExportBase::GetWholeExtentCallback(void)const )(void *)&quot; (?GetWholeExtentCallback@VTKImageExportBase@itk@@QBEP6APAHPAX@ZXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: int (__cdecl*__thiscall itk::VTKImageExportBase::GetPipelineModifiedCallback(void)const )(void *)&quot; (?GetPipelineModifiedCallback@VTKImageExportBase@itk@@QBEP6AHPAX@ZXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;public: void (__cdecl*__thiscall itk::VTKImageExportBase::GetUpdateInformationCallback(void)const )(void *)&quot; (?GetUpdateInformationCallback@VTKImageExportBase@itk@@QBEP6AXPAX@ZXZ) referenced in function &quot;protected: __thiscall itk::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;::ImageToVTKImageFilter&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$ImageToVTKImageFilter@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2019: unresolved external symbol &quot;protected: __thiscall itk::VTKImageExportBase::VTKImageExportBase(void)&quot; (??0VTKImageExportBase@itk@@IAE@XZ) referenced in function &quot;protected: __thiscall itk::VTKImageExport&lt;class itk::Image&lt;short,3&gt; &gt;::VTKImageExport&lt;class itk::Image&lt;short,3&gt; &gt;(void)&quot; (??0?$VTKImageExport@V?$Image@F$02@itk@@@itk@@IAE@XZ)<br>



1&gt;visualization_routines.obj : error LNK2001: unresolved external symbol &quot;protected: virtual void __thiscall itk::VTKImageExportBase::UpdateInformationCallback(void)&quot; (?UpdateInformationCallback@VTKImageExportBase@itk@@MAEXXZ)<br>



1&gt;visualization_routines.obj : error LNK2001: unresolved external symbol &quot;protected: virtual int __thiscall itk::VTKImageExportBase::PipelineModifiedCallback(void)&quot; (?PipelineModifiedCallback@VTKImageExportBase@itk@@MAEHXZ)<br>



1&gt;visualization_routines.obj : error LNK2001: unresolved external symbol &quot;protected: virtual void __thiscall itk::VTKImageExportBase::UpdateDataCallback(void)&quot; (?UpdateDataCallback@VTKImageExportBase@itk@@MAEXXZ)<br>



1&gt;visualization_routines.obj : error LNK2001: unresolved external symbol &quot;protected: virtual void __thiscall itk::VTKImageExportBase::PrintSelf(class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,class itk::Indent)const &quot; (?PrintSelf@VTKImageExportBase@itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)<br clear="all">



<br>Don&#39;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>