<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt + VTK, VS2010. Unresolved external symbols]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I am using Qt 5.3.2 MSVC2010 OpenGL 32bit, and I downloaded and installed a library called PCL, that you can use from a pre-built all-in one package that contains already built libraries of all its dependencies (all compiled with MSVC2010).<br />
One of those dependencies, VTK, used for visualization doesn't seem to find its own libraries even if I added all of them in my .pro file, that looks like this:</p>
<p dir="auto">@QT       += core gui</p>
<p dir="auto">greaterThan(QT_MAJOR_VERSION, 4): QT += widgets</p>
<p dir="auto">TARGET = PCLTestVisualizer<br />
TEMPLATE = app</p>
<p dir="auto">SOURCES += main.cpp<br />
pclviewer.cpp</p>
<p dir="auto">HEADERS  += pclviewer.h</p>
<p dir="auto">FORMS    += pclviewer.ui</p>
<p dir="auto">INCLUDEPATH += C:\pcl32\include\pcl-1.6<br />
INCLUDEPATH += C:\pcl32\3rdParty\Boost\include<br />
INCLUDEPATH += C:\pcl32\3rdParty\Eigen\include<br />
INCLUDEPATH += C:\pcl32\3rdParty\FLANN\include<br />
INCLUDEPATH += C:\pcl32\3rdParty\Qhull\include<br />
INCLUDEPATH += C:\pcl32\3rdParty\VTK\include\vtk-5.8</p>
<p dir="auto">LIBS += -LC:\pcl32\3rdParty\Qhull\Lib <br />
-lqhullstatic</p>
<p dir="auto">LIBS += -LC:\pcl32\lib <br />
-lpcl_apps_release <br />
-lpcl_common_release <br />
-lpcl_features_release <br />
-lpcl_filters_release <br />
-lpcl_io_release <br />
-lpcl_io_ply_release <br />
-lpcl_kdtree_release <br />
-lpcl_keypoints_release <br />
-lpcl_octree_release <br />
#-lpcl_range_image_border_extractor_release <br />
-lpcl_registration_release <br />
-lpcl_sample_consensus_release <br />
-lpcl_search_release <br />
-lpcl_segmentation_release <br />
-lpcl_surface_release <br />
-lpcl_tracking_release <br />
-lpcl_visualization_release</p>
<p dir="auto">LIBS += -LC:\pcl32\3rdParty\VTK\lib\vtk-5.8 <br />
-lMapReduceMPI <br />
-lmpistubs  <br />
-lQVTK <br />
-lvtkalglib <br />
-lvtkCharts <br />
-lvtkCommon <br />
-lvtkDICOMParser <br />
-lvtkexoIIc <br />
-lvtkexpat <br />
-lvtkFiltering <br />
-lvtkfreetype <br />
-lvtkftgl <br />
-lvtkGenericFiltering <br />
-lvtkGeovis <br />
-lvtkGraphics <br />
-lvtkhdf5 <br />
-lvtkHybrid <br />
-lvtkImaging <br />
-lvtkInfovis <br />
-lvtkIO <br />
-lvtkjpeg <br />
-lvtklibxml2 <br />
-lvtkmetaio <br />
-lvtkNetCDF <br />
-lvtkNetCDF_cxx <br />
-lvtkpng <br />
-lvtkproj4 <br />
-lvtkRendering <br />
-lvtksqlite <br />
-lvtksys <br />
-lvtktiff <br />
-lvtkverdict <br />
-lvtkViews <br />
-lvtkVolumeRendering <br />
-lvtkWidgets <br />
-lvtkzlib</p>
<p dir="auto">LIBS += -LC:\pcl32\3rdParty\FLANN\lib <br />
-lflann_cpp_s</p>
<p dir="auto">LIBS += -LC:\pcl32\3rdParty\Boost\lib <br />
-llibboost_date_time-vc100-mt-1_49 <br />
-llibboost_thread-vc100-mt-1_49 <br />
-llibboost_filesystem-vc100-mt-1_49 <br />
-llibboost_system-vc100-mt-1_49 <br />
-llibboost_iostreams-vc100-mt-1_49@</p>
<p dir="auto">I get 28 unresolved external from the linker:</p>
<p dir="auto">@link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='<em>' processorArchitecture='</em>'" /MANIFEST /MANIFESTFILE:release\PCLTestVisualizer.exe.embed.manifest /OUT:release\PCLTestVisualizer.exe <a class="plugin-mentions-user plugin-mentions-a" href="/user/c">@<bdi>C</bdi></a>:\Users\Michele\AppData\Local\Temp\PCLTestVisualizer.exe.1308.16926.jom<br />
QVTK.lib(QVTKWidget.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QObject::connectNotify(char const *)" (?connectNotify@QObject@@MAEXPBD@Z)<br />
QVTK.lib(QVTKInteractorAdapter.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QObject::connectNotify(char const *)" (?connectNotify@QObject@@MAEXPBD@Z)<br />
QVTK.lib(QVTKInteractor.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QObject::connectNotify(char const *)" (?connectNotify@QObject@@MAEXPBD@Z)</p>
<p dir="auto">[CUT....]</p>
<p dir="auto">vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "public: static bool __cdecl vtksys::SystemTools::ReadRegistryValue(char const *,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp;,enum vtksys::SystemTools::KeyWOW64)" (?ReadRegistryValue@SystemTools@vtksys@@SA_NPBDAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4KeyWOW64@12@@Z)</p>
<p dir="auto">[CUT....]</p>
<p dir="auto">(?ReadRegistryValue@SystemTools@vtksys@@SA_NPBDAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4KeyWOW64@12@@Z)<br />
jom: C:\Qt\projects\build-PCLTestVisualizer-Desktop_Qt_5_3_MSVC2010_OpenGL_32bit-Release\Makefile.Release [release\PCLTestVisualizer.exe] Error 1120<br />
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function "public: static bool __cdecl vtksys::SystemTools::ReadRegistryValue(char const *,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp;,enum vtksys::SystemTools::KeyWOW64)" (?ReadRegistryValue@SystemTools@vtksys@@SA_NPBDAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4KeyWOW64@12@@Z)<br />
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "public: static bool __cdecl vtksys::SystemTools::WriteRegistryValue(char const *,char const *,enum vtksys::SystemTools::KeyWOW64)" (?WriteRegistryValue@SystemTools@vtksys@@SA_NPBD0W4KeyWOW64@12@@Z)<br />
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "public: static bool __cdecl vtksys::SystemTools::WriteRegistryValue(char const *,char const *,enum vtksys::SystemTools::KeyWOW64)" (?WriteRegistryValue@SystemTools@vtksys@@SA_NPBD0W4KeyWOW64@12@@Z)<br />
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegDeleteValueA@8 referenced in function "public: static bool __cdecl vtksys::SystemTools::DeleteRegistryValue(char const *,enum vtksys::SystemTools::KeyWOW64)" (?DeleteRegistryValue@SystemTools@vtksys@@SA_NPBDW4KeyWOW64@12@@Z)@</p>
<p dir="auto">Moreover, every .dll and .lib file related to VTK are now in my PATH variable as well. But I still got always the same results. What I am supposed to do? Am I doing something wrong with .pro file?<br />
Thanks in advance for your answers.</p>
]]></description><link>https://forum.qt.io/topic/47420/qt-vtk-vs2010-unresolved-external-symbols</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 01:23:09 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/47420.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Oct 2014 09:43:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt + VTK, VS2010. Unresolved external symbols on Fri, 21 Nov 2014 14:58:08 GMT]]></title><description><![CDATA[<p dir="auto">It's probably some windows libraries that are required by VTK and not VTK libraries themselves. One or more of these:</p>
<p dir="auto">kernel32.lib<br />
user32.lib<br />
gdi32.lib<br />
winspool.lib<br />
shell32.lib<br />
ole32.lib<br />
oleaut32.lib<br />
uuid.lib<br />
comdlg32.lib<br />
advapi32.lib</p>
<p dir="auto">Also, you should look into using CMake for your project instead of QT project files. It will take care of the libraries needed for you.</p>
<p dir="auto"><a href="http://qt-project.org/doc/qt-5/cmake-manual.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/cmake-manual.html</a></p>
]]></description><link>https://forum.qt.io/post/251284</link><guid isPermaLink="true">https://forum.qt.io/post/251284</guid><dc:creator><![CDATA[mchinand]]></dc:creator><pubDate>Fri, 21 Nov 2014 14:58:08 GMT</pubDate></item><item><title><![CDATA[Reply to Qt + VTK, VS2010. Unresolved external symbols on Fri, 21 Nov 2014 14:58:08 GMT]]></title><description><![CDATA[<p dir="auto">It's probably some windows libraries that are required by VTK and not VTK libraries themselves. One or more of these:</p>
<p dir="auto">kernel32.lib<br />
user32.lib<br />
gdi32.lib<br />
winspool.lib<br />
shell32.lib<br />
ole32.lib<br />
oleaut32.lib<br />
uuid.lib<br />
comdlg32.lib<br />
advapi32.lib</p>
<p dir="auto">Also, you should look into using CMake for your project instead of QT project files. It will take care of the libraries needed for you.</p>
<p dir="auto"><a href="http://qt-project.org/doc/qt-5/cmake-manual.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/cmake-manual.html</a></p>
]]></description><link>https://forum.qt.io/post/251848</link><guid isPermaLink="true">https://forum.qt.io/post/251848</guid><dc:creator><![CDATA[mchinand]]></dc:creator><pubDate>Fri, 21 Nov 2014 14:58:08 GMT</pubDate></item><item><title><![CDATA[Reply to Qt + VTK, VS2010. Unresolved external symbols on Wed, 19 Nov 2014 00:24:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">What version of Qt was used to build VTK ?<br />
Was VTK also built with VS2010 ?</p>
]]></description><link>https://forum.qt.io/post/251252</link><guid isPermaLink="true">https://forum.qt.io/post/251252</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 19 Nov 2014 00:24:34 GMT</pubDate></item><item><title><![CDATA[Reply to Qt + VTK, VS2010. Unresolved external symbols on Tue, 18 Nov 2014 08:40:41 GMT]]></title><description><![CDATA[<p dir="auto">the qt compile is searching the DLL file,not the static file, i think this a bug of qt</p>
]]></description><link>https://forum.qt.io/post/251231</link><guid isPermaLink="true">https://forum.qt.io/post/251231</guid><dc:creator><![CDATA[blackRock]]></dc:creator><pubDate>Tue, 18 Nov 2014 08:40:41 GMT</pubDate></item></channel></rss>