Re: QVTKWidget visual studio 2017 linking issue
shadab anwar <[email protected]>
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <CAEW39-pf=xCukDkM8=cvUD5Knn6=Mnchp+5uwkbGh5=nZ_G74A@mail.gmail.com> |
Hi, Check whether QT is build on 64 bit or 32 bit ( by going in ‘about’). The libraries should be build with same version i.e. 64 or 32 bit as that of QT. Best, Shadab On Wed, 2 Jan 2019 at 10:36 AM, massinissa bandou < [email protected]> wrote: > I have built VTK 7.1.1 with Qt5 on windows platform with visual studio > 2017. > I have copied QVTKWidgetPlugin.lib to Qt lib as well as > QVTKWidgetPlugin.dll > in Qt plugin folder. I have also obtained the QVTKWidget when opening Qt > designer. I created a new Qt project on visual studio and included the > headers and linked it with libraries generated by Cmake when building VTK. > However I got the following linking problem when compiling my project: > > /MainWindow.obj : *error LNK2019: unresolved external symbol "public: > __cdecl QVTKWidget::QVTKWidget*(class QWidget *,class QFlags<enum > Qt::WindowType>)" > (??0QVTKWidget@@QEAA@PEAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) > referenced in function "public: void __cdecl > Ui_MainWindowClass::setupUi(class QMainWindow *)" > (?setupUi@Ui_MainWindowClass@@QEAAXPEAVQMainWindow@@@Z) > > 1>C:\Users\massi\OneDrive\Desktop\ImageAnalyzer\ImageAnalyzer\x64\Release\\ImageAnalyzer.exe > : fatal error LNK1120: 1 unresolved externals/ > > Can you help me on this matter? > > Thanks in advance! > > Massinissa Bandou > > > > > ----- > Software Design Engineer > -- > 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://vtk.org/mailman/listinfo/vtkusers > _______________________________________________ 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://vtk.org/mailman/listinfo/vtkusers