<div dir="ltr"><div>Hi venkatesh,</div><div><br></div>CMake is the preferred and best-supported configuration tool for any projects that use VTK or ITK. Both Qt4 [1][2] and Qt5 [3] fully support using CMake instead of QMake, and there should be a good deal of documentation on the web to help you get started.<div>
<br></div><div><div>[1] <a href="http://qt-project.org/quarterly/view/using_cmake_to_build_qt_projects">http://qt-project.org/quarterly/view/using_cmake_to_build_qt_projects</a><br></div><div>[2] <a href="http://www.cmake.org/Wiki/CMake/Tutorials/Qt">http://www.cmake.org/Wiki/CMake/Tutorials/Qt</a></div>
<div>[3] <a href="http://qt-project.org/doc/qt-5.1/qtdoc/cmake-manual.html">http://qt-project.org/doc/qt-5.1/qtdoc/cmake-manual.html</a></div></div><div><br></div><div>Enjoy,</div><div>Brian</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Nov 26, 2013 at 7:37 PM, venkatesh <span dir="ltr">&lt;<a href="mailto:venkateshfilm24@gmail.com" target="_blank">venkateshfilm24@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I am getting 19 errors which are quite similar, everything connected to<br>
Unresolved external symbols.<br>
I am using Qt and QMake for building the ITK and VTK libs. I have added the<br>
path to headers too. Yet I face these problems.<br>
<br>
I built Qt,itk and vtk from source using vc11, Visual studio 2012<br>
professional. I first used CMAKE for building the binaries with vc11*64bit<br>
compiler support.And compiled using Visual studio 2012 in release and debug<br>
mode.<br>
<br>
*link /LIBPATH:&quot;c:\Qt\Qt4.8.4\lib&quot; /NOLOGO /DYNAMICBASE /NXCOMPAT<br>
/INCREMENTAL:NO /SUBSYSTEM:WINDOWS &quot;/MANIFESTDEPENDENCY:type=&#39;win32&#39;<br>
name=&#39;Microsoft.Windows.Common-Controls&#39; version=&#39;6.0.0.0&#39;<br>
publicKeyToken=&#39;6595b64144ccf1df&#39; language=&#39;*&#39; processorArchitecture=&#39;*&#39;&quot;<br>
/OUT:release\ImageRegistration.exe<br>
@C:\Users\Venky\AppData\Local\Temp\ImageRegistration.exe.3892.5500.jom<br>
   Creating library release\ImageRegistration.lib and object<br>
release\ImageRegistration.exp<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_GetStockObject referenced in function &quot;protected:<br>
static int __cdecl itk::Win32OutputWindow::Initialize(void)&quot;<br>
(?Initialize@Win32OutputWindow@itk@@KAHXZ)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_SendMessageA referenced in function &quot;protected: static<br>
void __cdecl itk::Win32OutputWindow::AddText(char const *)&quot;<br>
(?AddText@Win32OutputWindow@itk@@KAXPEBD@Z)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_DefWindowProcA referenced in function &quot;public: static<br>
__int64 __cdecl itk::Win32OutputWindow::WndProc(struct HWND__ *,unsigned<br>
int,unsigned __int64,__int64)&quot;<br>
(?WndProc@Win32OutputWindow@itk@@SA_JPEAUHWND__@@I_K_J@Z)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_RegisterClassA referenced in function &quot;protected:<br>
static int __cdecl itk::Win32OutputWindow::Initialize(void)&quot;<br>
(?Initialize@Win32OutputWindow@itk@@KAHXZ)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_GetClassInfoA referenced in function &quot;protected:<br>
static int __cdecl itk::Win32OutputWindow::Initialize(void)&quot;<br>
(?Initialize@Win32OutputWindow@itk@@KAHXZ)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_CreateWindowExA referenced in function &quot;protected:<br>
static int __cdecl itk::Win32OutputWindow::Initialize(void)&quot;<br>
(?Initialize@Win32OutputWindow@itk@@KAHXZ)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_DestroyWindow referenced in function &quot;protected:<br>
virtual __cdecl itk::Win32OutputWindow::~Win32OutputWindow(void)&quot;<br>
(??1Win32OutputWindow@itk@@MEAA@XZ)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_ShowWindow referenced in function &quot;protected: static<br>
int __cdecl itk::Win32OutputWindow::Initialize(void)&quot;<br>
(?Initialize@Win32OutputWindow@itk@@KAHXZ)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_MoveWindow referenced in function &quot;public: static<br>
__int64 __cdecl itk::Win32OutputWindow::WndProc(struct HWND__ *,unsigned<br>
int,unsigned __int64,__int64)&quot;<br>
(?WndProc@Win32OutputWindow@itk@@SA_JPEAUHWND__@@I_K_J@Z)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_MessageBoxA referenced in function &quot;protected: void<br>
__cdecl itk::Win32OutputWindow::PromptText(char const *)&quot;<br>
(?PromptText@Win32OutputWindow@itk@@IEAAXPEBD@Z)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_LoadCursorA referenced in function &quot;protected: static<br>
int __cdecl itk::Win32OutputWindow::Initialize(void)&quot;<br>
(?Initialize@Win32OutputWindow@itk@@KAHXZ)<br>
ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved<br>
external symbol __imp_LoadIconA referenced in function &quot;protected: static<br>
int __cdecl itk::Win32OutputWindow::Initialize(void)&quot;<br>
(?Initialize@Win32OutputWindow@itk@@KAHXZ)<br>
itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol<br>
__imp_RegCloseKey referenced in function &quot;public: static bool __cdecl<br>
itksys::SystemTools::DeleteRegistryValue(char const *,enum<br>
itksys::SystemTools::KeyWOW64)&quot;<br>
(?DeleteRegistryValue@SystemTools@itksys@@SA_NPEBDW4KeyWOW64@12@@Z)<br>
itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol<br>
__imp_RegCreateKeyExA referenced in function &quot;public: static bool __cdecl<br>
itksys::SystemTools::WriteRegistryValue(char const *,char const *,enum<br>
itksys::SystemTools::KeyWOW64)&quot;<br>
(?WriteRegistryValue@SystemTools@itksys@@SA_NPEBD0W4KeyWOW64@12@@Z)<br>
itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol<br>
__imp_RegDeleteValueA referenced in function &quot;public: static bool __cdecl<br>
itksys::SystemTools::DeleteRegistryValue(char const *,enum<br>
itksys::SystemTools::KeyWOW64)&quot;<br>
(?DeleteRegistryValue@SystemTools@itksys@@SA_NPEBDW4KeyWOW64@12@@Z)<br>
itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol<br>
__imp_RegOpenKeyExA referenced in function &quot;public: static bool __cdecl<br>
itksys::SystemTools::DeleteRegistryValue(char const *,enum<br>
itksys::SystemTools::KeyWOW64)&quot;<br>
(?DeleteRegistryValue@SystemTools@itksys@@SA_NPEBDW4KeyWOW64@12@@Z)<br>
itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol<br>
__imp_RegQueryValueExA referenced in function &quot;public: static class<br>
std::basic_string&lt;char,struct std::char_traits&amp;lt;char&gt;,class<br>
std::allocator&lt;char&gt; &gt; __cdecl<br>
itksys::SystemTools::GetOperatingSystemNameAndVersion(void)&quot;<br>
(?GetOperatingSystemNameAndVersion@SystemTools@itksys@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)<br>
itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol<br>
__imp_RegSetValueExA referenced in function &quot;public: static bool __cdecl<br>
itksys::SystemTools::WriteRegistryValue(char const *,char const *,enum<br>
itksys::SystemTools::KeyWOW64)&quot;<br>
(?WriteRegistryValue@SystemTools@itksys@@SA_NPEBD0W4KeyWOW64@12@@Z)<br>
release\ImageRegistration.exe : fatal error LNK1120: 18 unresolved externals<br>
jom:<br>
C:\Users\Venky\Desktop\Image_Registration_Files\ImageRegistration\Makefile.Release<br>
[release\ImageRegistration.exe] Error 1120<br>
jom:<br>
C:\Users\Venky\Desktop\Image_Registration_Files\ImageRegistration\Makefile<br>
[release] Error 2<br>
01:17:12: The process &quot;C:\Qt\Qt4.8.4\jom.exe&quot; exited with code 2.<br>
Error while building/deploying project ImageRegistration (kit: Desk2)<br>
When executing step &#39;Make&#39;<br>
01:17:12: Elapsed time: 00:06.*<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/ITK-unresolved-external-symbols-tp7584462.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/ITK-unresolved-external-symbols-tp7584462.html</a><br>

Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Brian Helba<br>Medical Imaging<br>Kitware, Inc.<br>
</div>