# Tips to integrate Amazon GameLift Server SDK into UE4

**URL:** <https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893>\
**Category:** Plugins\
**Tags:** aws, custom-build-step, unreal-engine, Visual-Studio, Plugins, question, CPP\
**Created:** [January 30, 2018, 10:18am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893 "2018-01-30T10:18:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyeongho\_Park](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyeongho\_Park](https://forums.unrealengine.com/u/Kyeongho_Park)\
**Post date:** [January 30, 2018, 10:18am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/1 "2018-01-30T10:18:04Z")

</div>

### Environment

- Visual Studio 2017 (15.5.5)
- UE4.18.3
- Amazon GameLift Cpp Server SDK 3.1.7

## .

## Tips to integrate Amazon GameLift Server SDK into UE4

### To build GameLift Server SDK

1. Basically refer to the official guide:

- [Integrate Amazon GameLift Servers into an Unreal Engine project - Amazon GameLift Servers](https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-engines-setup-unreal.html)
- This official guide seems too rough to follow.

1. Change `cmake` parameter:

- before:
- `cmake -G "Visual Studio 14 2015 Win64" -DBUILD_FOR_UNREAL=1 ..`
- after:
- `cmake -G "Visual Studio 15 2017 Win64" -DBUILD_FOR_UNREAL=1 -DBUILD_SHARED_LIBS=1 ..`

1. Change `boost` version:

- `1.61.0` → `1.64.0` (Caution: you’d better not try any higher version..)
- Refer to [Game Tech | AWS re:Post](https://gamedev.amazon.com/forums/articles/62441/compiling-gamelift-for-visual-studio-2017.html)

1. You may meet an encoding error on `gtest-internal.h`. Fix it manually:

- refer to [Create gtest-internal.h · google/googletest@c2d90bd · GitHub](https://github.com/google/googletest/commit/c2d90bddc6a2a562ee7750c14351e9ca16a6a37a)

1. You’d better run `msbuild` on `x64 Native Tools Command Prompt for VS 2017`, not on any normal command prompt.

After building it successfully, you should find:

- `GameLift-Cpp-ServerSDK-3.1.7\out\prefix\lib\aws-cpp-sdk-gamelift-server.lib`
- `GameLift-Cpp-ServerSDK-3.1.7\out\prefix\bin\aws-cpp-sdk-gamelift-server.dll`

.

### To update GameLiftServerSDK Plugin

1. Since UE4.16, Change the plugin’s constructor:

2. Enable exceptions to suppress error C4577, in constructor:

.

### To integrate GameLiftServerSDK Plugin into your project

1. Copy the lib/dll files into `GameLift-Unreal-plugin-3.1.7\GameLiftServerSDK\ThirdParty\GameLiftServerSDK\Win64` directory(it was initially empty when you unzipped the downloaded sdk zip file).
2. Copy the whole `GameLift-Unreal-plugin-3.1.7\GameLiftServerSDK` directory into `YourGame\Plugins` directory.

- As a result, you can find the lib/dll files on this directory:  
\*\* `YourGame\Plugins\GameLiftServerSDK\ThirdParty\GameLiftServerSDK\Win64`

1. Update `YourGame.uproject` and `Source\YourGame\YourGame.Build.cs` as the official guide, and plus:

- in `YourGame.uproject`  
\*\* You may want to build this plugin only for dedicated server.

- in `Source/YourGame/YourGame.Build.cs`  
\*\* Add this plugin into PublicDependencyModuleNames,  
\*\* and enable exceptions, only for dedicated server.  
\*\* Mention `WITH_GAMELIFT` explicitly to suppress warning C4668.

You should build `YourGame` successfully.

.

### Could anyone verify or confirm these steps, please?

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [February 1, 2018, 6:52am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/2 "2018-02-01T06:52:09Z")

</div>

Thank you for sharing this Kyeongho 🙂

---

<div class="post-metadata">

**Author:** ![chiefGui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chiefgui/32/612858_2.png) [@chiefGui](https://forums.unrealengine.com/u/chiefGui)\
**Post date:** [March 28, 2018, 4:36pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/3 "2018-03-28T16:36:21Z")

</div>

Hey @Kyeongho Park. I can confirm these steps! Thanks to them, I could build my project successfully.

There’s just one thing I’d like to note though: watch out by only allowing the server to build the SDK. This could be a problem because you have to reference the plugin on files the client also have, like the GameMode.

---

<div class="post-metadata">

**Author:** ![NorthWeapon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NorthWeapon](https://forums.unrealengine.com/u/NorthWeapon)\
**Post date:** [June 21, 2018, 12:50am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/4 "2018-06-21T00:50:27Z")

</div>

Hey guys, anybody know if this is working for UE4 version 4.19?

---

<div class="post-metadata">

**Author:** ![ToLanHD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ToLanHD](https://forums.unrealengine.com/u/ToLanHD)\
**Post date:** [July 22, 2018, 8:15pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/5 "2018-07-22T20:15:51Z")

</div>

Your tip is working on Version 4.19 and 4.20 too 😉

---

<div class="post-metadata">

**Author:** ![evandropaulino](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/evandropaulino/32/706561_2.png) [@evandropaulino](https://forums.unrealengine.com/u/evandropaulino)\
**Post date:** [August 18, 2018, 3:30am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/6 "2018-08-18T03:30:43Z")

</div>

Worked with UE 4.20, GameLift 3.2.1 and without apply fix for sioclient (in [this link](https://gamedev.amazon.com/forums/questions/69749/compile-error-for-gameliftserversdk.html))

---

<div class="post-metadata">

**Author:** ![konthol123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@konthol123](https://forums.unrealengine.com/u/konthol123)\
**Post date:** [November 22, 2018, 10:10am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/7 "2018-11-22T10:10:08Z")

</div>

[http://thamtututhanhdo.com/movie/mission-impossible-fallout-watch-online-free/](http://thamtututhanhdo.com/movie/mission-impossible-fallout-watch-online-free/)

---

<div class="post-metadata">

**Author:** ![konthol123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@konthol123](https://forums.unrealengine.com/u/konthol123)\
**Post date:** [November 22, 2018, 10:11am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/8 "2018-11-22T10:11:14Z")

</div>

[http://thamtututhanhdo.com/movie/watch-bohemian-rhapsody-2018-free-online-fullhd/](http://thamtututhanhdo.com/movie/watch-bohemian-rhapsody-2018-free-online-fullhd/)

---

<div class="post-metadata">

**Author:** ![Caviarail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Caviarail](https://forums.unrealengine.com/u/Caviarail)\
**Post date:** [November 30, 2018, 11:11pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/9 "2018-11-30T23:11:24Z")

</div>

Worked for me as well. UE 4.21, GameLift 3.2.1, VS 2017.  
Thank you big time!

Just in case: You need git installed in your Windows environment or the second big step (msbuild…) won’t work. [This](https://gitforwindows.org/) is one of many ways to go

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_76d83c7b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_76d83c7b](https://forums.unrealengine.com/u/anonymous_user_76d83c7b)\
**Post date:** [December 6, 2018, 8:50am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/10 "2018-12-06T08:50:38Z")

</div>

hey could u send me the download link?

---

<div class="post-metadata">

**Author:** ![Caviarail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Caviarail](https://forums.unrealengine.com/u/Caviarail)\
**Post date:** [December 6, 2018, 9:09am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/11 "2018-12-06T09:09:53Z")

</div>

To git? It’s already in my post, but in case you missed it: [https://gitforwindows.org/](https://gitforwindows.org/)🙂

---

<div class="post-metadata">

**Author:** ![GRIMSK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GRIMSK](https://forums.unrealengine.com/u/GRIMSK)\
**Post date:** [December 9, 2018, 5:47pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/12 "2018-12-09T17:47:50Z")

</div>

Argh!! Sorry, I just tried to delete my silly question but I blew up whole context including your kind reply… I finally succeeded to build, with 38 warnings and no error!! 🙂 Installing git was the key. Thank you so much, Caviarail!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_640418f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_640418f0](https://forums.unrealengine.com/u/anonymous_user_640418f0)\
**Post date:** [December 14, 2018, 1:23pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/13 "2018-12-14T13:23:03Z")

</div>

no, can u give me the plugin?

---

<div class="post-metadata">

**Author:** ![Caviarail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Caviarail](https://forums.unrealengine.com/u/Caviarail)\
**Post date:** [December 14, 2018, 1:32pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/14 "2018-12-14T13:32:36Z")

</div>

You mean [this](https://s3-us-west-2.amazonaws.com/gamelift-release/GameLift_02_15_2018.zip)?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_640418f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_640418f0](https://forums.unrealengine.com/u/anonymous_user_640418f0)\
**Post date:** [December 15, 2018, 9:49am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/15 "2018-12-15T09:49:20Z")

</div>

nvm, i got it working also do u know how to get gamelift client working?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_640418f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_640418f0](https://forums.unrealengine.com/u/anonymous_user_640418f0)\
**Post date:** [December 15, 2018, 9:56am UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/16 "2018-12-15T09:56:44Z")

</div>

also i crash when i connect to game lift local u know why? u can contact me on discord

---

<div class="post-metadata">

**Author:** ![Caviarail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Caviarail](https://forums.unrealengine.com/u/Caviarail)\
**Post date:** [December 15, 2018, 12:12pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/17 "2018-12-15T12:12:04Z")

</div>

Look [here](https://github.com/YetiTech-Studios/UE4GameLiftClientSDK) for the Client. For your Crash, I would need a little more info than that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_640418f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_640418f0](https://forums.unrealengine.com/u/anonymous_user_640418f0)\
**Post date:** [December 15, 2018, 2:24pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/18 "2018-12-15T14:24:18Z")

</div>

> **[Error gamelift - Pastebin.com](https://pastebin.com/dGNBDNCN)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_640418f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_640418f0](https://forums.unrealengine.com/u/anonymous_user_640418f0)\
**Post date:** [December 15, 2018, 2:26pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/19 "2018-12-15T14:26:28Z")

</div>

i ran gamelift local then ran my server and then my server crash  
DEDICATED SERVER LOG - [Crash - Pastebin.com](https://pastebin.com/xVZR5cSd)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_640418f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_640418f0](https://forums.unrealengine.com/u/anonymous_user_640418f0)\
**Post date:** [December 15, 2018, 2:47pm UTC](https://forums.unrealengine.com/t/tips-to-integrate-amazon-gamelift-server-sdk-into-ue4/415893/20 "2018-12-15T14:47:06Z")

</div>

nvm, i found out it crashed because i used print string for dedicated server i changed it to UE\_LOG and it works now
