UE5.1 Project Link Errors Unresolved Externals

1959
5
01-29-2023 12:36 AM
nick_recursion
New Contributor II

I am attempting to install the ArcGISMapsSDK v1.1.0 plugin in Unreal Engine 5.1 and I receive the following errors: 

CodeDescriptionProjectFile
MSB3073The command ""C:\Program Files\Epic Games\UE_5.1\Engine\Build\BatchFiles\Build.bat" GATest3Editor Win64 Development -Project="C:\Users\xnick\Documents\Unreal Projects\starcel\GATest3.uproject" -WaitMutex -FromMsBuild" exited with code 6.GATest3C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets
LNK2019unresolved external symbol "__declspec(dllimport) void * __cdecl Windows::TlsGetValue(unsigned long)" (__imp_?TlsGetValue@Windows@@YAPEAXK@Z) referenced in function "public: virtual struct FArcGISRaycastHit __cdecl UArcGISMapComponent::GetArcGISRaycastHit(struct FHitResult)" (?GetArcGISRaycastHit@UArcGISMapComponent@@UEAA?AUFArcGISRaycastHit@@UFHitResult@@@Z)GATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.13_of_14.cpp.obj
LNK2001unresolved external symbol "__declspec(dllimport) void * __cdecl Windows::TlsGetValue(unsigned long)" (__imp_?TlsGetValue@Windows@@YAPEAXK@Z)GATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.14_of_14.cpp.obj
LNK2019unresolved external symbol "__declspec(dllimport) int __cdecl Windows::QueryPerformanceCounter(union _LARGE_INTEGER *)" (__imp_?QueryPerformanceCounter@Windows@@YAHPEAT_LARGE_INTEGER@@@Z) referenced in function "public: virtual struct FArcGISRaycastHit __cdecl UArcGISMapComponent::GetArcGISRaycastHit(struct FHitResult)" (?GetArcGISRaycastHit@UArcGISMapComponent@@UEAA?AUFArcGISRaycastHit@@UFHitResult@@@Z)GATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.13_of_14.cpp.obj
LNK2001unresolved external symbol "__declspec(dllimport) int __cdecl Windows::QueryPerformanceCounter(union _LARGE_INTEGER *)" (__imp_?QueryPerformanceCounter@Windows@@YAHPEAT_LARGE_INTEGER@@@Z)GATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.14_of_14.cpp.obj
LNK2019unresolved external symbol "__declspec(dllimport) void __cdecl Windows::DeleteCriticalSection(struct _RTL_CRITICAL_SECTION *)" (__imp_?DeleteCriticalSection@Windows@@YAXPEAU_RTL_CRITICAL_SECTION@@@Z) referenced in function "void __cdecl `anonymous namespace'::`dynamic atexit destructor for 'AndroidDefaultMemorySystemHandlerLock''(void)" (??__FAndroidDefaultMemorySystemHandlerLock@?A0x7E9DA77B@@YAXXZ)GATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.13_of_14.cpp.obj
LNK2019unresolved external symbol "__declspec(dllimport) void __cdecl Windows::EnterCriticalSection(struct _RTL_CRITICAL_SECTION *)" (__imp_?EnterCriticalSection@Windows@@YAXPEAU_RTL_CRITICAL_SECTION@@@Z) referenced in function "public: __cdecl FArcGISAndroidDefaultMemorySystemHandler::FArcGISAndroidDefaultMemorySystemHandler(void)" (??0FArcGISAndroidDefaultMemorySystemHandler@@QEAA@XZ)GATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.13_of_14.cpp.obj
LNK2019unresolved external symbol "__declspec(dllimport) void __cdecl Windows::LeaveCriticalSection(struct _RTL_CRITICAL_SECTION *)" (__imp_?LeaveCriticalSection@Windows@@YAXPEAU_RTL_CRITICAL_SECTION@@@Z) referenced in function "public: __cdecl FArcGISAndroidDefaultMemorySystemHandler::FArcGISAndroidDefaultMemorySystemHandler(void)" (??0FArcGISAndroidDefaultMemorySystemHandler@@QEAA@XZ)GATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.13_of_14.cpp.obj
LNK2019unresolved external symbol "__declspec(dllimport) unsigned long __cdecl Windows::GetCurrentThreadId(void)" (__imp_?GetCurrentThreadId@Windows@@YAKXZ) referenced in function "protected: bool __cdecl UE::Tasks::Private::FTaskBase::TryExecute(void (__cdecl*)(class UE::Tasks::Private::FTaskBase &))" (?TryExecute@FTaskBase@Private@Tasks@UE@@IEAA_NP6AXAEAV1234@@Z@Z)GATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.13_of_14.cpp.obj
LNK2019unresolved external symbol "__declspec(dllimport) void __cdecl Windows::InitializeCriticalSection(struct _RTL_CRITICAL_SECTION *)" (__imp_?InitializeCriticalSection@Windows@@YAXPEAU_RTL_CRITICAL_SECTION@@@Z) referenced in function _GLOBAL__sub_I_Module.ArcGISMapsSDK.13_of_14.cppGATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.13_of_14.cpp.obj
LNK2019unresolved external symbol "__declspec(dllimport) unsigned long __cdecl Windows::SetCriticalSectionSpinCount(struct _RTL_CRITICAL_SECTION *,unsigned long)" (__imp_?SetCriticalSectionSpinCount@Windows@@YAKPEAU_RTL_CRITICAL_SECTION@@K@Z) referenced in function _GLOBAL__sub_I_Module.ArcGISMapsSDK.13_of_14.cppGATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.13_of_14.cpp.obj
LNK2019unresolved external symbol "__declspec(dllimport) bool `public: <auto> __cdecl `public: void __cdecl FRHICommandList::DrawIndexedPrimitive(class FRHIBuffer *,int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)'::`1'::<lambda_1>::operator()<struct FLogCategoryLogRHI,wchar_t [58]>(struct FLogCategoryLogRHI const &,wchar_t const (&)[58])const '::`14'::__LogPoint3346" (__imp_?__LogPoint3346@?O@???$?RUFLogCategoryLogRHI@@$$BY0DK@_W$$V@<lambda_1>@?0??DrawIndexedPrimitive@FRHICommandList@@QEAAXPEAVFRHIBuffer@@HIIIII@Z@QEBA?A?<auto>@@AEBUFLogCategoryLogRHI@@AEAY0DK@$$CB_W@Z@4_NA) referenced in function "void __cdecl DispatchCheckVerify<void,class `public: void __cdecl FRHICommandList::DrawIndexedPrimitive(class FRHIBuffer *,int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)'::`1'::<lambda_1>,struct FLogCategoryLogRHI,wchar_t [58]>(class `public: void __cdecl FRHICommandList::DrawIndexedPrimitive(class FRHIBuffer *,int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)'::`1'::<lambda_1> &&,struct FLogCategoryLogRHI const &,wchar_t const (&)[58])" (??$DispatchCheckVerify@XV<lambda_1>@?0??DrawIndexedPrimitive@FRHICommandList@@QEAAXPEAVFRHIBuffer@@HIIIII@Z@UFLogCategoryLogRHI@@$$BY0DK@_W@@YAX$$QEAV<lambda_1>@?0??DrawIndexedPrimitive@FRHICommandList@@QEAAXPEAVFRHIBuffer@@HIIIII@Z@AEBUFLogCategoryLogRHI@@AEAY0DK@$$CB_W@Z)GATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Intermediate\ProjectFiles\Module.ArcGISMapsSDK.14_of_14.cpp.obj
LNK11209 unresolved externalsGATest3C:\Users\xnick\Documents\Unreal Projects\starcel\Plugins\ArcGISMapsSDK\Binaries\Win64\UnrealEditor-ArcGISMapsSDK.dll

 

Any clues on how to fix it? 

0 Kudos
5 Replies
LuisMorales1980
New Contributor II
I don’t know if something changed these last month but AFAIK the SDK is still not compatible with 5.1

Best,
TomoTakeda
Esri Contributor

Hi Nick,

Unlike version 1.0.0, version 1.1.0 can run with Unreal Engine 5.1. So I'm wondering how you installed the plugin and how you are launching the project after installing it. Can you provide such info?

0 Kudos
nick_recursion
New Contributor II

I followed the instructions provided on https://developers.arcgis.com/unreal-engine/ to the best of my ability. I am using the clang compiler, maybe that is related to these issues? 

0 Kudos
TomoTakeda
Esri Contributor

Hi Nick,

Developing with Unreal Engine requires Visual Studio on Windows. 

You can find ArcGIS Maps SDK for Unreal Engine's system requirements at https://developers.arcgis.com/unreal-engine/reference/system-requirements/

And there is documentation from Unreal Engine about setting up Visual Studio at https://docs.unrealengine.com/5.1/en-US/setting-up-visual-studio-development-environment-for-cpluspl...

Hope it helps,


0 Kudos
nick_recursion
New Contributor II

Solved. 
The clang compiler is incompatible with the plugin currently and was preventing the build. 

In case it is still useful, 
Visual Studio returned the following build errors: 

 

1>Using Clang 14.0.5 compiler (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm) with Visual Studio 2022 14.33.31630 runtime (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>[Upgrade]
1>[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
1>[Upgrade]     IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
1>[Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;' in GATest3Editor.Target.cs.
1>[Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
1>[Upgrade]
1>Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
1>  Executing up to 6 processes, one per physical core
1>Building 2 actions with 2 processes...
1>[1/2] Link UnrealEditor-ArcGISMapsSDK.dll
1>   Creating library C:\Users\xnick\Documents\Unreal Projects\starcel\Plugins\ArcGISMapsSDK\Intermediate\Build\Win64\UnrealEditor\Development\ArcGISMapsSDK\UnrealEditor-ArcGISMapsSDK.suppressed.lib and object C:\Users\xnick\Documents\Unreal Projects\starcel\Plugins\ArcGISMapsSDK\Intermediate\Build\Win64\UnrealEditor\Development\ArcGISMapsSDK\UnrealEditor-ArcGISMapsSDK.suppressed.exp
1>Module.ArcGISMapsSDK.13_of_14.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void * __cdecl Windows::TlsGetValue(unsigned long)" (__imp_?TlsGetValue@Windows@@YAPEAXK@Z) referenced in function "public: virtual struct FArcGISRaycastHit __cdecl UArcGISMapComponent::GetArcGISRaycastHit(struct FHitResult)" (?GetArcGISRaycastHit@UArcGISMapComponent@@UEAA?AUFArcGISRaycastHit@@UFHitResult@@@Z)
1>Module.ArcGISMapsSDK.14_of_14.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void * __cdecl Windows::TlsGetValue(unsigned long)" (__imp_?TlsGetValue@Windows@@YAPEAXK@Z)
1>Module.ArcGISMapsSDK.13_of_14.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl Windows::QueryPerformanceCounter(union _LARGE_INTEGER *)" (__imp_?QueryPerformanceCounter@Windows@@YAHPEAT_LARGE_INTEGER@@@Z) referenced in function "public: virtual struct FArcGISRaycastHit __cdecl UArcGISMapComponent::GetArcGISRaycastHit(struct FHitResult)" (?GetArcGISRaycastHit@UArcGISMapComponent@@UEAA?AUFArcGISRaycastHit@@UFHitResult@@@Z)
1>Module.ArcGISMapsSDK.14_of_14.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl Windows::QueryPerformanceCounter(union _LARGE_INTEGER *)" (__imp_?QueryPerformanceCounter@Windows@@YAHPEAT_LARGE_INTEGER@@@Z)
1>Module.ArcGISMapsSDK.13_of_14.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Windows::DeleteCriticalSection(struct _RTL_CRITICAL_SECTION *)" (__imp_?DeleteCriticalSection@Windows@@YAXPEAU_RTL_CRITICAL_SECTION@@@Z) referenced in function "void __cdecl `anonymous namespace'::`dynamic atexit destructor for 'AndroidDefaultMemorySystemHandlerLock''(void)" (??__FAndroidDefaultMemorySystemHandlerLock@?A0x7E9DA77B@@YAXXZ)
1>Module.ArcGISMapsSDK.13_of_14.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Windows::EnterCriticalSection(struct _RTL_CRITICAL_SECTION *)" (__imp_?EnterCriticalSection@Windows@@YAXPEAU_RTL_CRITICAL_SECTION@@@Z) referenced in function "public: __cdecl FArcGISAndroidDefaultMemorySystemHandler::FArcGISAndroidDefaultMemorySystemHandler(void)" (??0FArcGISAndroidDefaultMemorySystemHandler@@QEAA@XZ)
1>Module.ArcGISMapsSDK.13_of_14.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Windows::LeaveCriticalSection(struct _RTL_CRITICAL_SECTION *)" (__imp_?LeaveCriticalSection@Windows@@YAXPEAU_RTL_CRITICAL_SECTION@@@Z) referenced in function "public: __cdecl FArcGISAndroidDefaultMemorySystemHandler::FArcGISAndroidDefaultMemorySystemHandler(void)" (??0FArcGISAndroidDefaultMemorySystemHandler@@QEAA@XZ)
1>Module.ArcGISMapsSDK.13_of_14.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned long __cdecl Windows::GetCurrentThreadId(void)" (__imp_?GetCurrentThreadId@Windows@@YAKXZ) referenced in function "protected: bool __cdecl UE::Tasks::Private::FTaskBase::TryExecute(void (__cdecl*)(class UE::Tasks::Private::FTaskBase &))" (?TryExecute@FTaskBase@Private@Tasks@UE@@IEAA_NP6AXAEAV1234@@Z@Z)
1>Module.ArcGISMapsSDK.13_of_14.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Windows::InitializeCriticalSection(struct _RTL_CRITICAL_SECTION *)" (__imp_?InitializeCriticalSection@Windows@@YAXPEAU_RTL_CRITICAL_SECTION@@@Z) referenced in function _GLOBAL__sub_I_Module.ArcGISMapsSDK.13_of_14.cpp
1>Module.ArcGISMapsSDK.13_of_14.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned long __cdecl Windows::SetCriticalSectionSpinCount(struct _RTL_CRITICAL_SECTION *,unsigned long)" (__imp_?SetCriticalSectionSpinCount@Windows@@YAKPEAU_RTL_CRITICAL_SECTION@@K@Z) referenced in function _GLOBAL__sub_I_Module.ArcGISMapsSDK.13_of_14.cpp
1>Module.ArcGISMapsSDK.14_of_14.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool `public: <auto> __cdecl `public: void __cdecl FRHICommandList::DrawIndexedPrimitive(class FRHIBuffer *,int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)'::`1'::<lambda_1>::operator()<struct FLogCategoryLogRHI,wchar_t [58]>(struct FLogCategoryLogRHI const &,wchar_t const (&)[58])const '::`14'::__LogPoint3346" (__imp_?__LogPoint3346@?O@???$?RUFLogCategoryLogRHI@@$$BY0DK@_W$$V@<lambda_1>@?0??DrawIndexedPrimitive@FRHICommandList@@QEAAXPEAVFRHIBuffer@@HIIIII@Z@QEBA?A?<auto>@@AEBUFLogCategoryLogRHI@@AEAY0DK@$$CB_W@Z@4_NA) referenced in function "void __cdecl DispatchCheckVerify<void,class `public: void __cdecl FRHICommandList::DrawIndexedPrimitive(class FRHIBuffer *,int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)'::`1'::<lambda_1>,struct FLogCategoryLogRHI,wchar_t [58]>(class `public: void __cdecl FRHICommandList::DrawIndexedPrimitive(class FRHIBuffer *,int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)'::`1'::<lambda_1> &&,struct FLogCategoryLogRHI const &,wchar_t const (&)[58])" (??$DispatchCheckVerify@XV<lambda_1>@?0??DrawIndexedPrimitive@FRHICommandList@@QEAAXPEAVFRHIBuffer@@HIIIII@Z@UFLogCategoryLogRHI@@$$BY0DK@_W@@YAX$$QEAV<lambda_1>@?0??DrawIndexedPrimitive@FRHICommandList@@QEAAXPEAVFRHIBuffer@@HIIIII@Z@AEBUFLogCategoryLogRHI@@AEAY0DK@$$CB_W@Z)
1>C:\Users\xnick\Documents\Unreal Projects\starcel\Plugins\ArcGISMapsSDK\Binaries\Win64\UnrealEditor-ArcGISMapsSDK.dll : fatal error LNK1120: 9 unresolved externals
1>[2/2] WriteMetadata GATest3Editor.target cancelled
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_5.1\Engine\Build\BatchFiles\Build.bat" GATest3Editor Win64 Development -Project="C:\Users\xnick\Documents\Unreal Projects\starcel\GATest3.uproject" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "GATest3.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

 

0 Kudos