[vtkusers] Compiling HelloWorld and other qt based examples - vtk-5.10.0
Billy Araujo
billyaraujo at gmail.com
Wed Aug 29 13:16:05 EDT 2012
Although it seems to be correctly linked with QT (QtCore, QtGui, etc), the
simpleView gives these errors:
Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport)
public: class QString & __thiscall QString::operator=(class QString &&)"
(__imp_??4QString@@QAEAAV0@$$QAV0@@Z) referenced in function "private: void
__thiscall vtkQtTableModelAdapter::updateModelColumnHashTables(void)"
(?updateModelColumnHashTables at vtkQtTableModelAdapter@@AAEXXZ)
D:\Libraries\VTK\vtk-5.10.0\Build\msvc10\Examples\GUI\Qt\SimpleView\QVTK.lib(vtkQtTableModelAdapter.obj)
SimpleView
Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport)
public: class QPixmap & __thiscall QPixmap::operator=(class QPixmap &&)"
(__imp_??4QPixmap@@QAEAAV0@$$QAV0@@Z) referenced in function "public:
virtual void __thiscall QVTKPaintEngine::drawPixmap(class QRectF const
&,class QPixmap const &,class QRectF const &)" (?drawPixmap at QVTKPaintEngine
@@UAEXABVQRectF@@ABVQPixmap@@0 at Z)
D:\Libraries\VTK\vtk-5.10.0\Build\msvc10\Examples\GUI\Qt\SimpleView\QVTK.lib(QVTKPaintEngine.obj)
SimpleView
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport)
public: class QImage & __thiscall QImage::operator=(class QImage &&)"
(__imp_??4QImage@@QAEAAV0@$$QAV0@@Z) referenced in function "protected:
virtual void __thiscall QVTKWidget::paintEvent(class QPaintEvent *)"
(?paintEvent at QVTKWidget@@MAEXPAVQPaintEvent@@@Z)
D:\Libraries\VTK\vtk-5.10.0\Build\msvc10\Examples\GUI\Qt\SimpleView\QVTK.lib(QVTKWidget.obj)
SimpleView
Error 4 error LNK1120: 3 unresolved externals
D:\Libraries\VTK\vtk-5.10.0\Build\msvc10\bin\Debug\SimpleView.exe 1 1
SimpleView
Linker:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
..\..\..\..\bin\Debug\QVTK.lib
D:\Libraries\Qt\4.8.2\lib\QtGuid4.lib
D:\Libraries\Qt\4.8.2\lib\QtSqld4.lib
D:\Libraries\Qt\4.8.2\lib\QtCored4.lib
..\..\..\..\bin\Debug\vtkRendering.lib
..\..\..\..\bin\Debug\vtkGraphics.lib
..\..\..\..\bin\Debug\vtkIO.lib
..\..\..\..\bin\Debug\vtkCommon.lib
..\..\..\..\bin\Debug\vtkInfovis.lib
..\..\..\..\bin\Debug\vtkViews.lib
..\..\..\..\bin\Debug\vtkWidgets.lib
..\..\..\..\bin\Debug\vtkHybrid.lib
..\..\..\..\bin\Debug\vtkexoIIc.lib
..\..\..\..\bin\Debug\vtkVolumeRendering.lib
..\..\..\..\bin\Debug\vtkverdict.lib
..\..\..\..\bin\Debug\vtkftgl.lib
..\..\..\..\bin\Debug\vtkfreetype.lib
..\..\..\..\bin\Debug\vtkDICOMParser.lib
..\..\..\..\bin\Debug\vtkNetCDF_cxx.lib
..\..\..\..\bin\Debug\vtkNetCDF.lib
..\..\..\..\bin\Debug\vtkhdf5_hl.lib
..\..\..\..\bin\Debug\vtkhdf5.lib
..\..\..\..\bin\Debug\LSDyna.lib
..\..\..\..\bin\Debug\vtkmetaio.lib
comctl32.lib
..\..\..\..\bin\Debug\vtksqlite.lib
..\..\..\..\bin\Debug\vtkpng.lib
..\..\..\..\bin\Debug\vtktiff.lib
..\..\..\..\bin\Debug\vtkjpeg.lib
..\..\..\..\bin\Debug\vtkexpat.lib
vfw32.lib
opengl32.lib
..\..\..\..\bin\Debug\vtklibxml2.lib
..\..\..\..\bin\Debug\vtkzlib.lib
..\..\..\..\bin\Debug\vtkalglib.lib
..\..\..\..\bin\Debug\vtkImaging.lib
..\..\..\..\bin\Debug\vtkFiltering.lib
..\..\..\..\bin\Debug\vtksys.lib
ws2_32.lib
wsock32.lib
..\..\..\..\bin\Debug\vtkQtChart.lib
D:\Libraries\Qt\4.8.2\lib\QtWebKitd4.lib
D:\Libraries\Qt\4.8.2\lib\QtXmlPatternsd4.lib
D:\Libraries\Qt\4.8.2\lib\QtNetworkd4.lib
On Wed, Aug 29, 2012 at 3:51 PM, David Doria <daviddoria at gmail.com> wrote:
> On Wed, Aug 29, 2012 at 10:48 AM, Billy Araujo <billyaraujo at gmail.com>wrote:
>
>> Hi,
>>
>> 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.
>>
>> I am trying to compile a simple QT viewer to see how VTK works with QT.
>>
>
> We need the CMakeLists.txt of the simple project you are trying to build.
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120829/2fc907ee/attachment.htm>
More information about the vtkusers
mailing list