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
E:\GameDesign\GameLift-SDK-Release-4_13_2023\GameLift-Cpp-ServerSDK-5.0.2\out\CMakeFiles\8e4189e333e9cc0be6feecf8c63550b3\clang-format-configure.rule;
E:\GameDesign\GameLift-SDK-Release-4_13_2023\GameLift-Cpp-ServerSDK-5.0.2\out\CMakeFiles\8e4189e333e9cc0be6feecf8c63550b3\clang-format-build.rule;
E:\GameDesign\GameLift-SDK-Release-4_13_2023\GameLift-Cpp-ServerSDK-5.0.2\out\CMakeFiles\8e4189e333e9cc0be6feecf8c63550b3\clang-format-install.rule;
E:\GameDesign\GameLift-SDK-Release-4_13_2023\GameLift-Cpp-ServerSDK-5.0.2\out\CMakeFiles\04a6c2d1e5e457d707c0e45b76a5d721\clang-format-complete.rule;
E:\GameDesign\GameLift-SDK-Release-4_13_2023\GameLift-Cpp-ServerSDK-5.0.2\out\CMakeFiles\7b004e7e43af61887ed5e22ab3bda222\clang-format.rule’
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
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR)
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
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.
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