Sorry. I think this problem is due to linking 2008 qt libs with VS 2010.<br><br><br><div class="gmail_quote">On Wed, Aug 29, 2012 at 6:16 PM, 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>Although it seems to be correctly linked with QT (QtCore, QtGui, etc), the simpleView gives these errors:</div><div>
<br></div><div>Error<span style="white-space:pre-wrap">        </span>3<span style="white-space:pre-wrap">        </span>error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: class QString &amp; __thiscall QString::operator=(class QString &amp;&amp;)&quot; (__imp_??4QString@@QAEAAV0@$$QAV0@@Z) referenced in function &quot;private: void __thiscall vtkQtTableModelAdapter::updateModelColumnHashTables(void)&quot; (?updateModelColumnHashTables@vtkQtTableModelAdapter@@AAEXXZ)<span style="white-space:pre-wrap">        </span>D:\Libraries\VTK\vtk-5.10.0\Build\msvc10\Examples\GUI\Qt\SimpleView\QVTK.lib(vtkQtTableModelAdapter.obj)<span style="white-space:pre-wrap">        </span>SimpleView</div>

<div><br></div><div>Error<span style="white-space:pre-wrap">        </span>2<span style="white-space:pre-wrap">        </span>error LNK2019: unresolved external symbol &quot;__declspec(dllimport) public: class QPixmap &amp; __thiscall QPixmap::operator=(class QPixmap &amp;&amp;)&quot; (__imp_??4QPixmap@@QAEAAV0@$$QAV0@@Z) referenced in function &quot;public: virtual void __thiscall QVTKPaintEngine::drawPixmap(class QRectF const &amp;,class QPixmap const &amp;,class QRectF const &amp;)&quot; (?drawPixmap@QVTKPaintEngine@@UAEXABVQRectF@@ABVQPixmap@@0@Z)<span style="white-space:pre-wrap">        </span>D:\Libraries\VTK\vtk-5.10.0\Build\msvc10\Examples\GUI\Qt\SimpleView\QVTK.lib(QVTKPaintEngine.obj)<span style="white-space:pre-wrap">        </span>SimpleView</div>

<div><br></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;protected: virtual void __thiscall QVTKWidget::paintEvent(class QPaintEvent *)&quot; (?paintEvent@QVTKWidget@@MAEXPAVQPaintEvent@@@Z)<span style="white-space:pre-wrap">        </span>D:\Libraries\VTK\vtk-5.10.0\Build\msvc10\Examples\GUI\Qt\SimpleView\QVTK.lib(QVTKWidget.obj)<span style="white-space:pre-wrap">        </span>SimpleView</div>

<div><br></div><div>Error<span style="white-space:pre-wrap">        </span>4<span style="white-space:pre-wrap">        </span>error LNK1120: 3 unresolved externals<span style="white-space:pre-wrap">        </span>D:\Libraries\VTK\vtk-5.10.0\Build\msvc10\bin\Debug\SimpleView.exe<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>SimpleView</div>

<div><br></div><div><div>Linker:</div><div><br></div><div><div>kernel32.lib</div><div>user32.lib</div><div>gdi32.lib</div><div>winspool.lib</div><div>shell32.lib</div><div>ole32.lib</div><div>oleaut32.lib</div><div>uuid.lib</div>

<div>comdlg32.lib</div><div>advapi32.lib</div><div>..\..\..\..\bin\Debug\QVTK.lib</div><div>D:\Libraries\Qt\4.8.2\lib\QtGuid4.lib</div><div>D:\Libraries\Qt\4.8.2\lib\QtSqld4.lib</div><div>D:\Libraries\Qt\4.8.2\lib\QtCored4.lib</div>

<div>..\..\..\..\bin\Debug\vtkRendering.lib</div><div>..\..\..\..\bin\Debug\vtkGraphics.lib</div><div>..\..\..\..\bin\Debug\vtkIO.lib</div><div>..\..\..\..\bin\Debug\vtkCommon.lib</div><div>..\..\..\..\bin\Debug\vtkInfovis.lib</div>

<div>..\..\..\..\bin\Debug\vtkViews.lib</div><div>..\..\..\..\bin\Debug\vtkWidgets.lib</div><div>..\..\..\..\bin\Debug\vtkHybrid.lib</div><div>..\..\..\..\bin\Debug\vtkexoIIc.lib</div><div>..\..\..\..\bin\Debug\vtkVolumeRendering.lib</div>

<div>..\..\..\..\bin\Debug\vtkverdict.lib</div><div>..\..\..\..\bin\Debug\vtkftgl.lib</div><div>..\..\..\..\bin\Debug\vtkfreetype.lib</div><div>..\..\..\..\bin\Debug\vtkDICOMParser.lib</div><div>..\..\..\..\bin\Debug\vtkNetCDF_cxx.lib</div>

<div>..\..\..\..\bin\Debug\vtkNetCDF.lib</div><div>..\..\..\..\bin\Debug\vtkhdf5_hl.lib</div><div>..\..\..\..\bin\Debug\vtkhdf5.lib</div><div>..\..\..\..\bin\Debug\LSDyna.lib</div><div>..\..\..\..\bin\Debug\vtkmetaio.lib</div>

<div>comctl32.lib</div><div>..\..\..\..\bin\Debug\vtksqlite.lib</div><div>..\..\..\..\bin\Debug\vtkpng.lib</div><div>..\..\..\..\bin\Debug\vtktiff.lib</div><div>..\..\..\..\bin\Debug\vtkjpeg.lib</div><div>..\..\..\..\bin\Debug\vtkexpat.lib</div>

<div>vfw32.lib</div><div>opengl32.lib</div><div>..\..\..\..\bin\Debug\vtklibxml2.lib</div><div>..\..\..\..\bin\Debug\vtkzlib.lib</div><div>..\..\..\..\bin\Debug\vtkalglib.lib</div><div>..\..\..\..\bin\Debug\vtkImaging.lib</div>

<div>..\..\..\..\bin\Debug\vtkFiltering.lib</div><div>..\..\..\..\bin\Debug\vtksys.lib</div><div>ws2_32.lib</div><div>wsock32.lib</div><div>..\..\..\..\bin\Debug\vtkQtChart.lib</div><div>D:\Libraries\Qt\4.8.2\lib\QtWebKitd4.lib</div>

<div>D:\Libraries\Qt\4.8.2\lib\QtXmlPatternsd4.lib</div><div>D:\Libraries\Qt\4.8.2\lib\QtNetworkd4.lib</div></div><br></div><div class="HOEnZb"><div class="h5"><div><br></div><br><div class="gmail_quote">On Wed, Aug 29, 2012 at 3:51 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@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 class="gmail_quote"><div>On Wed, Aug 29, 2012 at 10:48 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>Hi,</div><div><br></div>I am using the Cmakefiles provided with VTK. I haven&#39;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>


</blockquote><div><br></div></div>We need the CMakeLists.txt of the simple project you are trying to build.<span><font color="#888888"><br clear="all"><br>David </font></span></div>
</blockquote></div><br>
</div></div></blockquote></div><br>