Question on Intergrating Amazon GameLift Server SDK into Unreal Engine?

0

Hello! I was in the process of integrating the Amazon GameLift Plugin into Unreal Engine by following this tutorial: https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-engines-setup-unreal.html

I am confused about the part where it says, "To build the SDK libraries, go to the directory GameLift-cpp-ServerSDK-**<version>** and compile with the flag -DBUILD_FOR_UNREAL set to true. The following instructions show how to compile using cmake."

I have cmake downloaded but I do not know if this is the right one or how to use it. Here is a pictrue:

REMOVEDUPLOAD

How would I type in the code, "mkdir out cd out cmake -G "Visual Studio 15 2017 Win64" -DBUILD_FOR_UNREAL=1 .. msbuild ALL_BUILD.vcxproj /p:Configuration=Release" into cmake. Is this even the correct cmake?

Help is appreciuated! Thanks!

질문됨 5년 전480회 조회
5개 답변
0
수락된 답변

Hi @REDACTEDUSER

You are on the right track! What is described in the ReadMe file of the project is commands meant to be used in cmd.exe or any command line tool.

Now, CMake will take care of generating the whole Visual Studio projects for you. After you have that generated, you will be able to build the code using either MSBuild or with Visual Studio itself.

If you want to use the CMake GUI, then you'll need to tell CMake where to find the source code[1] (Should be the root of the SDK code you downloaded) and where to put the generated files [2]. See REMOVEDUPLOADcmakegui.jpg

REMOVEDUPLOAD Then, you'll want to click Generate. This will give you a menu of all possible CMake options. You'll want to check BUILD_FOR_UNREAL. See REMOVEDUPLOADcmakegui-generate.jpg

REMOVEDUPLOAD Last but not least, you'll want to hit Configure. This will ask you for the Generator you want to use (Visual Studio 15 2017 Win64 in your case I believe). And then CMake will generate the build files for you!

From that point on, all that is left to do is to build the code. CMake gives you an option to open the project and will open it with Visual Studio. Make sure to pick Release and ALL_BUILD and you should be good! See REMOVEDUPLOADgameliftserversdk-microsoft-visual-studio.jpg

Again, all this can be done via the command line as described in the ReadMe file.

I hope this helps!

Alexis

답변함 5년 전
profile picture
전문가
검토됨 한 달 전
0

Hey there! I did what you told me to do and I get this error. REMOVEDUPLOADcapturerrr.png

Here is the error message: https://pastebin.com/WZETXpy4

The Amazon GameLift Server SDK files are located here: C:\dev\GameLift_12_14_2018\GameLift-SDK-Release-3.3.0\GameLift-Cpp-ServerSDK-3.3.0

Thanks for your help so far! @REDACTEDUSER

답변함 5년 전
0

So I figured out my error and I built the project in the visual studio solution. It did build successfully but it didnt't generate the file called aws-cpp-sdk-gamelift-server.dll. It made the .lib version of it but not the dll version. Instead, all I got was an exe called Protec. How do I get the dll file? @REDACTEDUSER

답변함 5년 전
0

Ah! So I see you figured out that you needed a git client. So, if you do not see a dll file in /out/prefix/bin it means the code built without the proper CMAKE_FLAGS. You should see a CMakeCache.txt file in your 'out' folder which will tell you what flags were present when CMake generated the project. Look for:

//Flag to easily configure the sdk for Unreal.
BUILD_FOR_UNREAL:BOOL=1

If it shows something else, then you probably built the sdk statically.

Now, I understand CMake can be quite the ramp up and can be confusing. If you can add CMake on your Windows PATH, I would suggest we start from a clean 'out' folder and use the following command lines (From the root of the sdk code):

> mkdir outForUnreal
> cd outForUnreal
> cmake -G "Visual Studio 15 2017 Win64" .. -DBUILD_FOR_UNREAL=1
> msbuild ALL_BUILD.vcxproj /p:Configuration=Release

I think this would be the simplest approach if you don't want to bother with CMake too much.

Hope this helps.

Cheers!

Alexis

답변함 5년 전
0

Wait so where would I need to put that code that you listed above and how do I make the PATH on windows, @Gelinotte?

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠