<div class="gmail_quote">On Wed, Aug 29, 2012 at 10:36 AM, Billy Araujo <span dir="ltr">&lt;<a href="mailto:billyaraujo@gmail.com" target="_blank">billyaraujo@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I get the following link problem compiling vtk 5.10 with QT support. I configured the project with cmake and I am using VS 2010.</div><div><br></div><div><div>Error<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: class QImage &amp; __thiscall QImage::operator=(class QImage &amp;&amp;)&quot; (__imp_??4QImage@@QAEAAV0@$$QAV0@@Z) referenced in function &quot;public: virtual void __thiscall vtkQtLabelRenderStrategy::RenderLabel(int * const,class vtkTextProperty *,class vtkUnicodeString)&quot; (?RenderLabel@vtkQtLabelRenderStrategy@@UAEXQAHPAVvtkTextProperty@@VvtkUnicodeString@@@Z)<span style="white-space:pre-wrap">        </span>D:\Libraries\VTK\vtk-5.10.0\Build\msvc10\Examples\Infovis\Cxx\vtkRendering.lib(vtkQtLabelRenderStrategy.obj)<span style="white-space:pre-wrap">        </span>HelloWorld</div>

</div><div><br></div><div>I got similar problem with GeovisCxxTests. I changed linking order and it solved it.</div><div><br></div><div>Any ideas?</div></blockquote><div><br></div>Are you linking to QVTK as in this example? <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance#CMakeLists.txt">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance#CMakeLists.txt</a><br clear="all">
<br>Please show us your CMakeLists.txt file.</div><div class="gmail_quote"><br></div><div class="gmail_quote">For Geovis, as long as you have built VTK with VTK_USE_GEOVIS=ON, you should just need to link to the standard ${VTK_LIBRARIES} in the target_link_libraries call.</div>
<div class="gmail_quote"><br>David</div>