- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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
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
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
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
Wait so where would I need to put that code that you listed above and how do I make the PATH on windows, @Gelinotte?
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa