AWS Gamelift SDK 5 build error

I am currently trying to get AWS Gamelift up an running on my windows 11 PC with visual Studio 22 as per this guide

I am running into an issue where I get an MSB8066 error related to these folder locations
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5):
error MSB8066: Custom build for
exited with code 1

This leads me to believe that the problem is CMake. I did a cmake debug run
cmake E:\GameDesign\GameLift-SDK-Release-4_13_2023\GameLift-Cpp-ServerSDK-5.0.2\out -G “Visual Studio 17 2022” -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=E:\GameDesign\GameLift-SDK-Release-4_13_2023\GameLift-Cpp-ServerSDK-5.0.2\out\CMakeFiles

and got this error
CMake Warning at CMakeLists.txt:74 (message):
Detected a Windows Shared STD/NOSTD or Unreal build. Skipping unit tests

I need some help on figuring out what exactly the above message means so that I can complete this build.

Hey I’m having the same issues… using windows 11 and following the same tutorial.

Heres part of the error you missed:

Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the

I have openssl installed through git. I know its installed because when I type the command openssl I get a response. I havent found a solution yet to get around this but I see its an issue for others trying to use gamelift c++ sdk :frowning:

So after taking a few week break, I dug back into this.

It appears that my issue was the filepath name. I had the C++ SDK buried too deep into folders. I put it direct on my C:/ drive and I was able to get all but one error resolved.

Also after adding the OpenSSL directories and the msbuild.exe directory to the EnvironmentVariables PATH, all is right in the world.

So when working with the AWS GameLift SDK 5.0 here are a few things to keep in mind.

a. Get OpenSSL from here Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions choose the Latest version Win64 OpenSSL v3.1.1(DO NOT use Light)
b. Install OpenSSL
c. Add the OpenSSL directories to the PATH in EnvironmentVariables

 OPENSSL_INCLUDE_DIR = "C:\Program Files\OpenSSL-Win64\include"
  OPENSSL_LIBRARIES = "C:\Program Files\OpenSSL-Win64\lib"
  OPENSSL_ROOT_DIR = "C:\Program Files\OpenSSL-Win64"
  1. Make sure you have the directory to msbuild.exe to the PATH in EnvironmentVariables
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin

a. Make sure you are in the Visual Studio(version) Development Command Prompt.
b. cd to C:\GameLift-SDK-Release-05_11_2023\GameLift-Cpp-ServerSDK-5.0.3( or where ever you have it)
Then use the commands

mkdir out
cd out
cmake -G “Visual Studio 17 2022” -DBUILD_FOR_UNREAL=1 …
msbuild ALL_BUILD.vcxproj /p:Configuration=Release

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.