Building error Gamelift Server SDK into Unreal

Hi all,

First all, sorry for my english, I am not a native speaker.

I am triying to build the gamelift game server sdk following this link:

https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-engines-setup-unreal.html

I did the firsts steps (it works):

mkdir out
cd out

cmake -G “Visual Studio 15 2017 Win64” -DBUILD_FOR_UNREAL=1 …

But, when I tried the last step:

msbuild ALL_BUILD.vcxproj /p:Configuration=Release

It failed showing next error:

error.png

I configured a PATH variable, like this:
8184-config.pngconfig.png

And I installed Visual studio 2015 and 2017 with the below configuration:

vs-config.png

I have tried a lot of configurations, but I was able to build the solution.

Can you help me?

Thanks in advance. Kind regards.

Hi Pip,

Thanks for your help, it works now!!

My problem was the msbuild PATH was poiting to:

C:\Windows\Microsoft.NET\Framework\v4.0.30319

I changed it to (as you said):

C:\Program Files(x86)\Microsoft VisualStudio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe

Thanks a lot.

Best regards.

Confirm which msbuild your path is resolving to. It could be that your env is resolving to a msbuild from a different Visual Studio version ie ensure its pointing to

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe