[vtkusers] Error when building VTK 8.1.1 with Qt 5.6.3 (64 bits)

pnt1614 minpu.code at gmail.com
Thu Nov 8 23:08:37 EST 2018


I want to use VTK with Qt in Visual Studio 2015 64 bits so I use CMake
(3.12.4) to build VTK 8.1.1 with Qt 5.6.3. Everything is fine in CMake but I
get the following errors when running ALL_BUILD in visual studio 2015:

error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::glDraw(void)" (?glDraw at QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::glInit(void)" (?glInit at QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::initializeOverlayGL(void)"
(?initializeOverlayGL at QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "public: virtual class
QPaintEngine * __cdecl QGLWidget::paintEngine(void)const "
(?paintEngine at QGLWidget@@UEBAPEAVQPaintEngine@@XZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::paintEvent(class QPaintEvent *)"
(?paintEvent at QGLWidget@@MEAAXPEAVQPaintEvent@@@Z)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::paintOverlayGL(void)" (?paintOverlayGL at QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::resizeEvent(class QResizeEvent *)"
(?resizeEvent at QGLWidget@@MEAAXPEAVQResizeEvent@@@Z)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::resizeOverlayGL(int,int)" (?resizeOverlayGL at QGLWidget@@MEAAXHH at Z)
error LNK2001: unresolved external symbol "public: virtual void __cdecl
QGLWidget::updateGL(void)" (?updateGL at QGLWidget@@UEAAXXZ)
error LNK2001: unresolved external symbol "public: virtual void __cdecl
QGLWidget::updateOverlayGL(void)" (?updateOverlayGL at QGLWidget@@UEAAXXZ)

The following image shows how I configured in CMake
<http://vtk.1045678.n5.nabble.com/file/t342361/CMake.jpg> 

Anybody experienced this problem? Please, help me.



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list