Is Gamelift for Unreal Engine Linux servers not a thing?

0

I am looking for a formal confirmation for the following:

  1. There are no precompiled .so files for the SDK.
  2. And there is no way to compile the SDK with UE5's current openssl version (1.1.1t) and without the cppsdk.so files compiled using openssl 1.1.1t, this will never work.

No matter what I try, I keep getting openssl compile error unless I am using openssl 3+

YogevN
asked 2 months ago323 views
3 Answers
0
Accepted Answer

Ok, it wasn't the environment. I was using the wrong command do build it (I was following a YouTube tutorial)

Using: cmake -G "Unix Makefiles" -DBUILD_FOR_UNREAL=1 -DCMAKE_BUILD_TYPE=Release -S . -B ./cmake-build and then: cmake --build cmake-build --target all

Solved it.

YogevN
answered 19 days ago
0

GameLift does not provide precompiled versions of the GameLift CPP Server SDK. You will need to build the GameLift Cpp Server SDK to generate the .so files while providing OpenSSL 1.1.1t to the build commands. Can you please clarify what issues are seeing when you try building the GameLift Cpp Server SDK with OpenSSL 1.1.1t on Linux (for example using 1.1.1t from https://www.openssl.org/source/old/1.1.1/)?

AWS
answered 25 days ago
  • See answer below (I need more characters)

0

I get the following error when trying to compile:

yogev@PC:/mnt/c/dev/SDK/GameLift-Cpp-ServerSDK-5.1.2$ openssl version
OpenSSL 1.1.1t  7 Feb 2023
yogev@PC:/mnt/c/dev/SDK/GameLift-Cpp-ServerSDK-5.1.2$ cmake -G "Unix Makefiles" -DBUILD_FOR_UNREAL=1 -DCMAKE_BUILD_TYPE=Release -S . -B ./out
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Unit tests are not supported for unreal build. Skipping unit tests
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/c/dev/SDK/GameLift-Cpp-ServerSDK-5.1.2/out
yogev@PC:/mnt/c/dev/SDK/GameLift-Cpp-ServerSDK-5.1.2$ sudo make

...

[ 72%] Completed 'rapidjson'
[ 72%] Built target rapidjson
[ 75%] Creating directories for 'aws-cpp-sdk-gamelift-server'
[ 78%] No download step for 'aws-cpp-sdk-gamelift-server'
[ 81%] No update step for 'aws-cpp-sdk-gamelift-server'
[ 84%] No patch step for 'aws-cpp-sdk-gamelift-server'
[ 87%] Performing configure step for 'aws-cpp-sdk-gamelift-server'
loading initial cache file /mnt/c/dev/SDK/GameLift-Cpp-ServerSDK-5.1.2/out/aws-cpp-sdk-gamelift-server-prefix/tmp/aws-cpp-sdk-gamelift-server-cache-Release.cmake
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  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)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.22/Modules/FindOpenSSL.cmake:574 (find_package_handle_standard_args)
  CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!

This only works if I install the libssl-dev package which is not 1.1.1t, and then it gets recognized. But this won't help me since it's incompatible with Unreal Engine.

I would greatly appreciate seeing a working example by anyone who got this to compile with 1.1.1(any version) It doesn't matter what I do. The 1.1.1 version isn't recognized when trying to compile this.

YogevN
answered 24 days ago
  • It looks like you have an error because some environment variables are unset. Please try setting the OpenSSL environment variables as described in the README.md document. They are normally already set on Linux, so use the Mac instructions as reference to set OPENSSL_INCLUDE_DIR, OPENSSL_LIBRARIES, and OPENSSL_ROOT_DIR to point to your OpenSSL 1.1.1t.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions