pnt1614
2018-11-09 04:08:37 UTC
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)" (?***@QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::glInit(void)" (?***@QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::initializeOverlayGL(void)"
(?***@QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "public: virtual class
QPaintEngine * __cdecl QGLWidget::paintEngine(void)const "
(?***@QGLWidget@@UEBAPEAVQPaintEngine@@XZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::paintEvent(class QPaintEvent *)"
(?***@QGLWidget@@MEAAXPEAVQPaintEvent@@@Z)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::paintOverlayGL(void)" (?***@QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::resizeEvent(class QResizeEvent *)"
(?***@QGLWidget@@MEAAXPEAVQResizeEvent@@@Z)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::resizeOverlayGL(int,int)" (?***@QGLWidget@@***@Z)
error LNK2001: unresolved external symbol "public: virtual void __cdecl
QGLWidget::updateGL(void)" (?***@QGLWidget@@UEAAXXZ)
error LNK2001: unresolved external symbol "public: virtual void __cdecl
QGLWidget::updateOverlayGL(void)" (?***@QGLWidget@@UEAAXXZ)
The following image shows how I configured in CMake
<Loading Image...
>
Anybody experienced this problem? Please, help me.
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
(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)" (?***@QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::glInit(void)" (?***@QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::initializeOverlayGL(void)"
(?***@QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "public: virtual class
QPaintEngine * __cdecl QGLWidget::paintEngine(void)const "
(?***@QGLWidget@@UEBAPEAVQPaintEngine@@XZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::paintEvent(class QPaintEvent *)"
(?***@QGLWidget@@MEAAXPEAVQPaintEvent@@@Z)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::paintOverlayGL(void)" (?***@QGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::resizeEvent(class QResizeEvent *)"
(?***@QGLWidget@@MEAAXPEAVQResizeEvent@@@Z)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl
QGLWidget::resizeOverlayGL(int,int)" (?***@QGLWidget@@***@Z)
error LNK2001: unresolved external symbol "public: virtual void __cdecl
QGLWidget::updateGL(void)" (?***@QGLWidget@@UEAAXXZ)
error LNK2001: unresolved external symbol "public: virtual void __cdecl
QGLWidget::updateOverlayGL(void)" (?***@QGLWidget@@UEAAXXZ)
The following image shows how I configured in CMake
<Loading Image...
Anybody experienced this problem? Please, help me.
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers