[vtkusers] Problem building VTK against Anaconda Qt

Kent Ogden ogdenk at upstate.edu
Sun Apr 3 21:13:12 EDT 2016


Hi,
 
I have been trying to build VTK (and ITK) with Python bindings for use in Anaconda2.  I am using VS 2015 on Win 7 with the most recent Anaconda and VTK 6.3 (I get the same problem with version 7).  Most of VTK builds properly, but I get link errors for a few of the projects:
 
226>QVTKWidget.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QImage & __cdecl QImage::operator=(class QImage &&)" (__imp_??4QImage@@QEAAAEAV0@$$QEAV0@@Z) referenced in function "protected: virtual void __cdecl QVTKWidget::paintEvent(class QPaintEvent *)" (?paintEvent at QVTKWidget@@MEAAXPEAVQPaintEvent@@@Z)
226>QVTKPaintEngine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QPixmap & __cdecl QPixmap::operator=(class QPixmap &&)" (__imp_??4QPixmap@@QEAAAEAV0@$$QEAV0@@Z) referenced in function "public: virtual void __cdecl QVTKPaintEngine::drawPixmap(class QRectF const &,class QPixmap const &,class QRectF const &)" (?drawPixmap at QVTKPaintEngine@@UEAAXAEBVQRectF@@AEBVQPixmap@@0 at Z)
226>vtkQtTableModelAdapter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QString & __cdecl QString::operator=(class QString &&)" (__imp_??4QString@@QEAAAEAV0@$$QEAV0@@Z) referenced in function "private: void __cdecl vtkQtTableModelAdapter::updateModelColumnHashTables(void)" (?updateModelColumnHashTables at vtkQtTableModelAdapter@@AEAAXXZ)
226>C:\KW\VTKBuild\bin\Release\vtkGUISupportQt-6.3.dll : fatal error LNK1120: 3 unresolved externals
232>------ Build started: Project: vtkRenderingQt, Configuration: Release x64 ------
233>------ Build started: Project: vtkGUISupportQtOpenGL, Configuration: Release x64 ------
232>  Building Custom Rule C:/KW/VTK-6.3.0/Rendering/Qt/CMakeLists.txt
233>  Building Custom Rule C:/KW/VTK-6.3.0/GUISupport/QtOpenGL/CMakeLists.txt
 
I am not very experienced with Qt, could there be something missing from the Anaconda distro that is causing this error?  This is preventing me from importing vtk in Python, the process halts because of the missing dll.
 
Thanks for any thoughts/comments/suggestions.
 
Kent
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160403/9303ed30/attachment.html>


More information about the vtkusers mailing list