Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

GameLift preventing compilation #556

Open
ChalkX opened this issue Oct 17, 2021 · 4 comments
Open

GameLift preventing compilation #556

ChalkX opened this issue Oct 17, 2021 · 4 comments

Comments

@ChalkX
Copy link

ChalkX commented Oct 17, 2021

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

@AMZN-Gene
Copy link

AMZN-Gene commented Oct 18, 2021

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?

@ChalkX
Copy link
Author

ChalkX commented Oct 18, 2021

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.

@AMZN-Gene
Copy link

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

@AMZN-alexpete
Copy link

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants