lumberyard icon indicating copy to clipboard operation
lumberyard copied to clipboard

GameLift preventing compilation

Open ChalkX opened this issue 3 years ago • 4 comments

Describe the bug I tried making a new project, but Lumberyard is failing to build or compile the project. According to the logs, the issue lies with GameLift.

Steps to reproduce Create a new project in Lumberyard and include the GameLift Gem, then rebuild the project

Expected behavior The project build successfully

Screenshots/Logs https://pastebin.com/raw/vSbsGaeX

Lumberyard version v1.28.0.0

ChalkX avatar Oct 17 '21 10:10 ChalkX

Hmm, after adding the GameLift Gem did you also lmbr_waf configure? I'll follow up with the GameLift team regarding the compilation errors, but that should all compile fine. When you get a chance, let me know what Visual Studio version are you using :) The permission denied warnings also look troublesome. Do you have any applications holding onto the these DLLs? What happens if you restart the computer and then recompile?

AMZN-Gene avatar Oct 18 '21 18:10 AMZN-Gene

Hey, thanks for the quick reply. I used the setup assistant, I haven't used the command prompt for any of this - I didn't think I had to. I'm using Visual Studio 2019 Community 16.11.5, but I haven't even opened the project in Visual Studio since I can't compile it. This is a completely fresh project. I did try restarting the computer, but to no avail - I'll try it again and see if it does anything.

ChalkX avatar Oct 18 '21 19:10 ChalkX

Were you able to try again? How did it go?

AMZN-Gene avatar Nov 08 '21 18:11 AMZN-Gene

You can fix this issue by adding the Outcome.h include in dev\Gems\GameLift\Code\Include\GameLift\Session\GameLiftClientService.h on line 34 like this

#pragma warning(push)
#pragma warning(disable: 4355) // <future> includes ppltasks.h which throws a C4355 warning: 'this' used in base member initializer list
#include <aws/core/Utils/Outcome.h> // pull in the full Outcome class to avoid an is_destructable intrinsic error due to forward declare in GameLiftClient.h
#include <aws/gamelift/GameLiftClient.h>
#pragma warning(pop)

AMZN-alexpete avatar Feb 15 '22 19:02 AMZN-alexpete