<div>Hi,</div><div><br></div>I am using the Cmakefiles provided with VTK. I haven't changed anything. I just activated: BUILD_EXAMPLES and VTK_USE_QT flags in the configure of cmake-gui.<div><br></div><div>I am trying to compile a simple QT viewer to see how VTK works with QT.</div>
<div><br></div><div><br><div><br></div><div><br><br><div class="gmail_quote">On Wed, Aug 29, 2012 at 3:40 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><div class="h5">On Wed, Aug 29, 2012 at 10:36 AM, Billy Araujo <span dir="ltr"><<a href="mailto:billyaraujo@gmail.com" target="_blank">billyaraujo@gmail.com</a>></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 "__declspec(dllimport) public: class QImage & __thiscall QImage::operator=(class QImage &&)" (__imp_??4QImage@@QAEAAV0@$$QAV0@@Z) referenced in function "public: virtual void __thiscall vtkQtLabelRenderStrategy::RenderLabel(int * const,class vtkTextProperty *,class vtkUnicodeString)" (?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></div></div>Are you linking to QVTK as in this example? <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance#CMakeLists.txt" target="_blank">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>
<span class="HOEnZb"><font color="#888888">
<div class="gmail_quote"><br>David</div>
</font></span></blockquote></div><br></div></div>