<div><div dir="auto">Hi,</div></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto">Shadab</div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, 2 Jan 2019 at 10:36 AM, massinissa bandou <<a href="mailto:massinissa.bandou@gmail.com">massinissa.bandou@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have built VTK 7.1.1 with Qt5 on windows platform with visual studio 2017.<br>
I have copied QVTKWidgetPlugin.lib to Qt lib as well as QVTKWidgetPlugin.dll<br>
in Qt plugin folder. I have also obtained the QVTKWidget when opening Qt<br>
designer. I created a new Qt project on visual studio and included the<br>
headers and linked it with libraries generated by Cmake when building VTK.<br>
However I got the following linking problem when compiling my project:<br>
<br>
/MainWindow.obj : *error LNK2019: unresolved external symbol "public:<br>
__cdecl QVTKWidget::QVTKWidget*(class QWidget *,class QFlags<enum<br>
Qt::WindowType>)"<br>
(??0QVTKWidget@@QEAA@PEAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z)<br>
referenced in function "public: void __cdecl<br>
Ui_MainWindowClass::setupUi(class QMainWindow *)"<br>
(?setupUi@Ui_MainWindowClass@@QEAAXPEAVQMainWindow@@@Z)<br>
1>C:\Users\massi\OneDrive\Desktop\ImageAnalyzer\ImageAnalyzer\x64\Release\\ImageAnalyzer.exe<br>
: fatal error LNK1120: 1 unresolved externals/ <br>
<br>
Can you help me on this matter?<br>
<br>
Thanks in advance!<br>
<br>
Massinissa Bandou<br>
<br>
<br>
<br>
<br>
-----<br>
Software Design Engineer<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div></div>