GameLift-Cpp-ServerSDK build failed for unreal engine

0

Hello, I follow this explanation https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-engines-setup-unreal.html

get an error when Build the C++ Server SDK libraries for Unreal Engine.|

Error log:

https://gist.github.com/sfak88/e2b5691b9caf5fedd0df3f45de69e124

An example of errors:

 -- Looking for dlfcn.h
  -- Looking for dlfcn.h - not found
  -- Looking for errno.h
  -- Looking for errno.h - found
  -- Looking for fcntl.h
  -- Looking for fcntl.h - found
  -- Looking for link.h
  -- Looking for link.h - not found
  -- Looking for malloc/malloc.h
  -- Looking for malloc/malloc.h - not found
  -- Looking for signal.h
  -- Looking for signal.h - found
  -- Looking for sys/ioctl.h
  -- Looking for sys/ioctl.h - not found
  -- Looking for sys/mman.h
  -- Looking for sys/mman.h - not found
  -- Looking for sys/param.h
  -- Looking for sys/param.h - not found
  -- Looking for sys/resource.h
  -- Looking for sys/resource.h - not found
  -- Looking for sys/stat.h
  -- Looking for sys/stat.h - found
  -- Looking for sys/time.h
  -- Looking for sys/time.h - not found
  -- Looking for sys/types.h
  -- Looking for sys/types.h - found
  -- Looking for sysexits.h
  -- Looking for sysexits.h - not found
  -- Looking for termios.h
  -- Looking for termios.h - not found
  -- Looking for unistd.h
  -- Looking for unistd.h - not found
  -- Looking for valgrind/valgrind.h
  -- Looking for valgrind/valgrind.h - not found
  -- Looking for fenv.h
  -- Looking for fenv.h - found
  -- Looking for FE_ALL_EXCEPT
  -- Looking for FE_ALL_EXCEPT - found
  -- Looking for FE_INEXACT
  -- Looking for FE_INEXACT - found
  -- Looking for mach/mach.h
  -- Looking for mach/mach.h - not found
  -- Looking for histedit.h
  -- Looking for histedit.h - not found
  -- Looking for CrashReporterClient.h
  -- Looking for CrashReporterClient.h - not found
  -- Looking for pfm_initialize in pfm
  -- Looking for pfm_initialize in pfm - not found
  -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
  -- Looking for xar_open in xar
  -- Looking for xar_open in xar - not found
  -- Looking for arc4random
  -- Looking for arc4random - not found
  -- Looking for backtrace
  -- Looking for backtrace - not found
  -- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
  -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
  -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
  -- Looking for __register_frame
  -- Looking for __register_frame - not found
  -- Looking for __deregister_frame
  -- Looking for __deregister_frame - not found
  -- Looking for _Unwind_Backtrace
  -- Looking for _Unwind_Backtrace - not found
  -- Looking for getpagesize
  -- Looking for getpagesize - not found
  -- Looking for sysconf
  -- Looking for sysconf - not found
  -- Looking for getrusage
  -- Looking for getrusage - not found
  -- Looking for setrlimit
  -- Looking for setrlimit - not found
  -- Looking for isatty
  -- Looking for isatty - not found
  -- Looking for futimens
  -- Looking for futimens - not found
  -- Looking for futimes
  -- Looking for futimes - not found
  -- Looking for posix_fallocate
  -- Looking for posix_fallocate - not found
  -- Looking for sigaltstack
  -- Looking for sigaltstack - not found
  -- Looking for lseek64
  -- Looking for lseek64 - not found
  -- Looking for mallctl
  -- Looking for mallctl - not found
  -- Looking for mallinfo
  -- Looking for mallinfo - not found
  -- Looking for mallinfo2
  -- Looking for mallinfo2 - not found
  -- Looking for malloc_zone_statistics
  -- Looking for malloc_zone_statistics - not found
  -- Looking for getrlimit
  -- Looking for getrlimit - not found
  -- Looking for posix_spawn
  -- Looking for posix_spawn - not found
  -- Looking for pread
  -- Looking for pread - not found
  -- Looking for sbrk
  -- Looking for sbrk - not found
  -- Looking for strerror
  -- Looking for strerror - found
  -- Looking for strerror_r
  -- Looking for strerror_r - not found
  -- Looking for strerror_s
  -- Looking for strerror_s - found
  -- Looking for setenv
  -- Looking for setenv - not found
  -- Looking for _chsize_s
  -- Looking for _chsize_s - found
  -- Looking for _alloca
  -- Looking for _alloca - not found
  -- Looking for __alloca
  -- Looking for __alloca - not found
  -- Looking for __chkstk
  -- Looking for __chkstk - found
  -- Looking for __chkstk_ms
  -- Looking for __chkstk_ms - not found
  -- Looking for ___chkstk
  -- Looking for ___chkstk - not found
  -- Looking for ___chkstk_ms
  -- Looking for ___chkstk_ms - not found
  -- Looking for __ashldi3
  -- Looking for __ashldi3 - not found
  -- Looking for __ashrdi3
  -- Looking for __ashrdi3 - not found
  -- Looking for __divdi3
  -- Looking for __divdi3 - not found
  -- Looking for __fixdfdi
  -- Looking for __fixdfdi - not found
  -- Looking for __fixsfdi
  -- Looking for __fixsfdi - not found
  -- Looking for __floatdidf
  -- Looking for __floatdidf - not found
  -- Looking for __lshrdi3
  -- Looking for __lshrdi3 - not found
  -- Looking for __moddi3
  -- Looking for __moddi3 - not found
  -- Looking for __udivdi3
  -- Looking for __udivdi3 - not found
  -- Looking for __umoddi3
  -- Looking for __umoddi3 - not found
  -- Looking for __main
  -- Looking for __main - not found
  -- Looking for __cmpdi2
  -- Looking for __cmpdi2 - not found
  -- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
  -- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed
  -- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
  -- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Failed
  -- Looking for __GLIBC__
  -- Looking for __GLIBC__ - not found
  -- Looking for proc_pid_rusage
  -- Looking for proc_pid_rusage - not found
  -- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE
  -- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE - Success
  -- Performing Test LLVM_HAS_ATOMICS
  -- Performing Test LLVM_HAS_ATOMICS - Success
  -- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG
  -- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Failed
  -- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
  -- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Failed
  -- Native target architecture is X86
  -- Threads enabled.
  -- Doxygen disabled.
  -- Go bindings disabled.
  -- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
  -- OCaml bindings disabled.
  -- Could NOT find Python module pygments
  -- Could NOT find Python module pygments.lexers.c_cpp
  -- Could NOT find Python module yaml
  -- LLVM host triple: x86_64-pc-windows-msvc
  -- LLVM default target triple: x86_64-pc-windows-msvc
  -- Using Debug VC++ CRT: MDd
  -- Using Release VC++ CRT: MD
  -- Using MinSizeRel VC++ CRT: MD
  -- Using RelWithDebInfo VC++ CRT: MD
  -- Using Release VC++ CRT: MD
  -- Looking for os_signpost_interval_begin
  -- Looking for os_signpost_interval_begin - not found
  CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) (Required
    is at least version "3.6")
  Call Stack (most recent call first):
    C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
    C:/Program Files/CMake/share/cmake-3.27/Modules/FindPython/Support.cmake:3824 (find_package_handle_standard_args)
    C:/Program Files/CMake/share/cmake-3.27/Modules/FindPython3.cmake:545 (include)
    CMakeLists.txt:715 (find_package)


  -- Configuring incomplete, errors occurred!
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241
,5): error MSB8066: Custom build for 'C:\GameLift-Cpp-ServerSDK-5.0.4\out\CMakeFiles\647b40c7d09f19ed2b56da862b27faab\c
lang-format-mkdir.rule;C:\GameLift-Cpp-ServerSDK-5.0.4\out\CMakeFiles\647b40c7d09f19ed2b56da862b27faab\clang-format-dow
nload.rule;C:\GameLift-Cpp-ServerSDK-5.0.4\out\CMakeFiles\647b40c7d09f19ed2b56da862b27faab\clang-format-update.rule;C:\
GameLift-Cpp-ServerSDK-5.0.4\out\CMakeFiles\647b40c7d09f19ed2b56da862b27faab\clang-format-patch.rule;C:\GameLift-Cpp-Se
rverSDK-5.0.4\out\CMakeFiles\647b40c7d09f19ed2b56da862b27faab\clang-format-configure.rule;C:\GameLift-Cpp-ServerSDK-5.0
.4\out\CMakeFiles\647b40c7d09f19ed2b56da862b27faab\clang-format-build.rule;C:\GameLift-Cpp-ServerSDK-5.0.4\out\CMakeFil
es\647b40c7d09f19ed2b56da862b27faab\clang-format-install.rule;C:\GameLift-Cpp-ServerSDK-5.0.4\out\CMakeFiles\622c631ac9
9b4119af534885e5fbb659\clang-format-complete.rule;C:\GameLift-Cpp-ServerSDK-5.0.4\out\CMakeFiles\f01cc9fdc62450e61ce68b
7fff2eb459\clang-format.rule;C:\GameLift-Cpp-ServerSDK-5.0.4\thirdparty\CMakeLists.txt' exited with code 1. [C:\GameLif
t-Cpp-ServerSDK-5.0.4\out\thirdparty\clang-format.vcxproj]
Done Building Project "C:\GameLift-Cpp-ServerSDK-5.0.4\out\thirdparty\clang-format.vcxproj" (default targets) -- FAILED
.

If any information is needed please let me know, Thank you

ufhs
asked a year ago345 views
2 Answers
0

Hi ufhs,

Your error message includes the following output:

Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) (Required is at least version "3.6")

Please try installing Python version 3.6 or later and then try building again. Let us know if you have further errors.

AWS
answered a year ago
0

Hi, from the error message I've seen

CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) (Required
    is at least version "3.6")

Did you have your python environment configured correctly? Python 3.6+ is required to build the SDK, which you can follow the README to install.

AWS
fzehao
answered a year ago

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