YetiTech-Studios / UE4GameLiftClientSDK

Gamelift Client SDK for Unreal Engine 4.
MIT License
79 stars 41 forks source link

Error cause aws custom memory management #27

Open Budi-9 opened 4 years ago

Budi-9 commented 4 years ago

aws-sdk-cpp version 1.7.240

aws-sdk-cpp/aws-cpp-sdk-core/CMakeLists.txt

if(CUSTOM_MEMORY_MANAGEMENT OR (BUILD_SHARED_LIBS AND NOT DEFINED CUSTOM_MEMORY_MANAGEMENT))
    set(USE_AWS_MEMORY_MANAGEMENT ON)
    message(STATUS "Custom memory management enabled; stl objects now using custom allocators")
else()
    set(USE_AWS_MEMORY_MANAGEMENT OFF)
    message(STATUS "Custom memory management disabled")
endif()

Can't build CUSTOM_MEMORY_MANAGEMENT ON. AWSCore.cpp

.
.
Aws::InitSDK(options); // Error allocation memory

Can't compile when CUSTOM_MEMORY_MANAGEMENT OFF.

1>Building 2 actions with 12 processes...
1>  [1/2] UE4Editor-GameLiftClientSDK.dll
1>     Creating library D:\Projects\UnrealProjects\OnlineGame\Plugins\GameLiftClientSDK\Intermediate\Build\Win64\UE4Editor\Development\GameLiftClientSDK\UE4Editor-GameLiftClientSDK.suppressed.lib and object D:\Projects\UnrealProjects\OnlineGame\Plugins\GameLiftClientSDK\Intermediate\Build\Win64\UE4Editor\Development\GameLiftClientSDK\UE4Editor-GameLiftClientSDK.suppressed.exp
1>Module.GameLiftClientSDK.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Aws::GameLift::Model::DescribeGameSessionQueuesRequest::SetNames(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class Aws::Allocator<char> >,class Aws::Allocator<class std::basic_string<char,struct std::char_traits<char>,class Aws::Allocator<char> > > > const &)" (__imp_?SetNames@DescribeGameSessionQueuesRequest@Model@GameLift@Aws@@QEAAXAEBV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$Allocator@D@Aws@@@std@@V?$Allocator@V?$basic_string@DU?$char_traits@D@std@@V?$Allocator@D@Aws@@@std@@@Aws@@@std@@@Z) referenced in function "public: enum EActivateStatus __cdecl UGameLiftDescribeGameSessionQueues::Activate(void)" (?Activate@UGameLiftDescribeGameSessionQueues@@QEAA?AW4EActivateStatus@@XZ)
1>D:\Projects\UnrealProjects\OnlineGame\Plugins\GameLiftClientSDK\Binaries\Win64\UE4Editor-GameLiftClientSDK.dll : fatal error LNK1120: 1 unresolved externals
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.22\Engine\Build\BatchFiles\Build.bat" OnlineGameEditor Win64 Development -Project="D:\Projects\UnrealProjects\OnlineGame\OnlineGame.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project "OnlineGame.vcxproj" -- FAILED.
chris-gong commented 4 years ago

I'm not sure if this has to do with custom memory management, but I have seen those errors before and I have resolved them before by adding specific flags in the LinuxToolChain.cs file in the engine source code.

I cover that in this video from 0:50-2:22

Budi-9 commented 4 years ago

I have never tried that. is it possible that this bug only occurs on windows platforms?

When i'm rewrite the code with aws-sdk-cpp dll and code from 1.7.242. That bug it's gone. But i still want to test it on linux.