- Newest
- Most votes
- Most comments
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.
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/)?
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.
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
, andOPENSSL_ROOT_DIR
to point to your OpenSSL 1.1.1t.
Relevant content
- Accepted Answerasked 4 years ago
- asked a year ago
- asked a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
See answer below (I need more characters)