[ITK Community] [Insight-users] ITK unresolved external symbols

Brian Helba brian.helba at kitware.com
Wed Nov 27 17:38:45 EST 2013


Hi venkatesh,

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.

[1] http://qt-project.org/quarterly/view/using_cmake_to_build_qt_projects
[2] http://www.cmake.org/Wiki/CMake/Tutorials/Qt
[3] http://qt-project.org/doc/qt-5.1/qtdoc/cmake-manual.html

Enjoy,
Brian



On Tue, Nov 26, 2013 at 7:37 PM, venkatesh <venkateshfilm24 at gmail.com>wrote:

> Hi,
> I am getting 19 errors which are quite similar, everything connected to
> Unresolved external symbols.
> I am using Qt and QMake for building the ITK and VTK libs. I have added the
> path to headers too. Yet I face these problems.
>
> I built Qt,itk and vtk from source using vc11, Visual studio 2012
> professional. I first used CMAKE for building the binaries with vc11*64bit
> compiler support.And compiled using Visual studio 2012 in release and debug
> mode.
>
> *link /LIBPATH:"c:\Qt\Qt4.8.4\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT
> /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32'
> name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
> publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'"
> /OUT:release\ImageRegistration.exe
> @C:\Users\Venky\AppData\Local\Temp\ImageRegistration.exe.3892.5500.jom
>    Creating library release\ImageRegistration.lib and object
> release\ImageRegistration.exp
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_GetStockObject referenced in function "protected:
> static int __cdecl itk::Win32OutputWindow::Initialize(void)"
> (?Initialize at Win32OutputWindow@itk@@KAHXZ)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_SendMessageA referenced in function "protected:
> static
> void __cdecl itk::Win32OutputWindow::AddText(char const *)"
> (?AddText at Win32OutputWindow@itk@@KAXPEBD at Z)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_DefWindowProcA referenced in function "public: static
> __int64 __cdecl itk::Win32OutputWindow::WndProc(struct HWND__ *,unsigned
> int,unsigned __int64,__int64)"
> (?WndProc at Win32OutputWindow@itk@@SA_JPEAUHWND__@@I_K_J at Z)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_RegisterClassA referenced in function "protected:
> static int __cdecl itk::Win32OutputWindow::Initialize(void)"
> (?Initialize at Win32OutputWindow@itk@@KAHXZ)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_GetClassInfoA referenced in function "protected:
> static int __cdecl itk::Win32OutputWindow::Initialize(void)"
> (?Initialize at Win32OutputWindow@itk@@KAHXZ)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_CreateWindowExA referenced in function "protected:
> static int __cdecl itk::Win32OutputWindow::Initialize(void)"
> (?Initialize at Win32OutputWindow@itk@@KAHXZ)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_DestroyWindow referenced in function "protected:
> virtual __cdecl itk::Win32OutputWindow::~Win32OutputWindow(void)"
> (??1Win32OutputWindow at itk@@MEAA at XZ)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_ShowWindow referenced in function "protected: static
> int __cdecl itk::Win32OutputWindow::Initialize(void)"
> (?Initialize at Win32OutputWindow@itk@@KAHXZ)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_MoveWindow referenced in function "public: static
> __int64 __cdecl itk::Win32OutputWindow::WndProc(struct HWND__ *,unsigned
> int,unsigned __int64,__int64)"
> (?WndProc at Win32OutputWindow@itk@@SA_JPEAUHWND__@@I_K_J at Z)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_MessageBoxA referenced in function "protected: void
> __cdecl itk::Win32OutputWindow::PromptText(char const *)"
> (?PromptText at Win32OutputWindow@itk@@IEAAXPEBD at Z)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_LoadCursorA referenced in function "protected: static
> int __cdecl itk::Win32OutputWindow::Initialize(void)"
> (?Initialize at Win32OutputWindow@itk@@KAHXZ)
> ITKCommon-4.4.lib(itkWin32OutputWindow.obj) : error LNK2019: unresolved
> external symbol __imp_LoadIconA referenced in function "protected: static
> int __cdecl itk::Win32OutputWindow::Initialize(void)"
> (?Initialize at Win32OutputWindow@itk@@KAHXZ)
> itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol
> __imp_RegCloseKey referenced in function "public: static bool __cdecl
> itksys::SystemTools::DeleteRegistryValue(char const *,enum
> itksys::SystemTools::KeyWOW64)"
> (?DeleteRegistryValue at SystemTools@itksys@@SA_NPEBDW4KeyWOW64 at 12@@Z)
> itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol
> __imp_RegCreateKeyExA referenced in function "public: static bool __cdecl
> itksys::SystemTools::WriteRegistryValue(char const *,char const *,enum
> itksys::SystemTools::KeyWOW64)"
> (?WriteRegistryValue at SystemTools@itksys@@SA_NPEBD0W4KeyWOW64 at 12@@Z)
> itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol
> __imp_RegDeleteValueA referenced in function "public: static bool __cdecl
> itksys::SystemTools::DeleteRegistryValue(char const *,enum
> itksys::SystemTools::KeyWOW64)"
> (?DeleteRegistryValue at SystemTools@itksys@@SA_NPEBDW4KeyWOW64 at 12@@Z)
> itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol
> __imp_RegOpenKeyExA referenced in function "public: static bool __cdecl
> itksys::SystemTools::DeleteRegistryValue(char const *,enum
> itksys::SystemTools::KeyWOW64)"
> (?DeleteRegistryValue at SystemTools@itksys@@SA_NPEBDW4KeyWOW64 at 12@@Z)
> itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol
> __imp_RegQueryValueExA referenced in function "public: static class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > __cdecl
> itksys::SystemTools::GetOperatingSystemNameAndVersion(void)"
> (?GetOperatingSystemNameAndVersion at SystemTools@itksys@
> @SA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ)
> itksys-4.4.lib(SystemTools.obj) : error LNK2019: unresolved external symbol
> __imp_RegSetValueExA referenced in function "public: static bool __cdecl
> itksys::SystemTools::WriteRegistryValue(char const *,char const *,enum
> itksys::SystemTools::KeyWOW64)"
> (?WriteRegistryValue at SystemTools@itksys@@SA_NPEBD0W4KeyWOW64 at 12@@Z)
> release\ImageRegistration.exe : fatal error LNK1120: 18 unresolved
> externals
> jom:
>
> C:\Users\Venky\Desktop\Image_Registration_Files\ImageRegistration\Makefile.Release
> [release\ImageRegistration.exe] Error 1120
> jom:
> C:\Users\Venky\Desktop\Image_Registration_Files\ImageRegistration\Makefile
> [release] Error 2
> 01:17:12: The process "C:\Qt\Qt4.8.4\jom.exe" exited with code 2.
> Error while building/deploying project ImageRegistration (kit: Desk2)
> When executing step 'Make'
> 01:17:12: Elapsed time: 00:06.*
>
>
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/ITK-unresolved-external-symbols-tp7584462.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>



-- 
Brian Helba
Medical Imaging
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131127/75b9b5f2/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


More information about the Community mailing list