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!

posta 6 anni fa592 visualizzazioni
5 Risposte
0
Risposta accettata

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

con risposta 6 anni fa
profile picture
ESPERTO
verificato 6 mesi fa
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

con risposta 6 anni fa
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

con risposta 6 anni fa
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

con risposta 6 anni fa
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?

con risposta 6 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande