adamrehn / ue4-grpc-demo

Dockerised Unreal Engine 4 microservice demo using gRPC
MIT License
68 stars 24 forks source link

grpc build fails #4

Closed davidgood-tektowr closed 2 years ago

davidgood-tektowr commented 3 years ago

Hi, I have just tried to get this example running on an ubuntu 20.04 system. I have successfully installed the ue4docker tools etc. and have the full docker image. However when I run the start-server.sh script the dockerfile fails on the build grpc-ue4 step, please see the error below. Thanks for any help understanding this issue.

ERROR OUTPUT:

-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
CMake Warning at cmake/abseil-cpp.cmake:33 (message):
  gRPC_INSTALL will be forced to FALSE because gRPC_ABSL_PROVIDER is "module"
  and CMake version (3.10.2) is less than 3.13.
Call Stack (most recent call first):
  CMakeLists.txt:219 (include)

-- Found c-ares: /home/ue4/.conan/data/cares-ue4/1.16.1/adamrehn/4.23/package/2d5d64d24a14ce3202bc0a7ab502fb3deb6344eb/lib/cmake/c-ares/c-ares-config.cmake (found suitable version "1.16.1", minimum required is "1.13.0") 
CMake Error at cmake/protobuf.cmake:58 (find_package):
  Could not find a package configuration file provided by "Protobuf" with any
  of the following names:

    ProtobufConfig.cmake
    protobuf-config.cmake

  Add the installation prefix of "Protobuf" to CMAKE_PREFIX_PATH or set
  "Protobuf_DIR" to a directory containing one of the above files.  If
  "Protobuf" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:224 (include)

-- Configuring incomplete, errors occurred!
See also "/home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/build/bbaadf9c14f1821b000882e0282e20b2519fdbed/CMakeFiles/CMakeOutput.log".
See also "/home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/build/bbaadf9c14f1821b000882e0282e20b2519fdbed/CMakeFiles/CMakeError.log".
Warning: the libcxx package has been deprecated and will be removed in a future version of conan-ue4cli.
grpc-ue4/1.30.2@adamrehn/4.23: 
cares-ue4/1.16.1@adamrehn/4.23: WARN: This conanfile has no package step
protobuf-ue4/3.12.3@adamrehn/4.23: WARN: This conanfile has no package step
grpc-ue4/1.30.2@adamrehn/4.23: ERROR: Package 'bbaadf9c14f1821b000882e0282e20b2519fdbed' build failed
grpc-ue4/1.30.2@adamrehn/4.23: WARN: Build folder /home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/build/bbaadf9c14f1821b000882e0282e20b2519fdbed
ERROR: grpc-ue4/1.30.2@adamrehn/4.23: Error in build() method, line 98
        cmake.configure(source_folder="grpc", args=self.cmake_flags())
        ConanException: Error 1 while executing cd '/home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/build/bbaadf9c14f1821b000882e0282e20b2519fdbed' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="clang" -DCONAN_COMPILER_VERSION="8" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libc++" -DCMAKE_INSTALL_PREFIX="/home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/package/bbaadf9c14f1821b000882e0282e20b2519fdbed" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev '-DgRPC_BUILD_CSHARP_EXT=OFF' '-DgRPC_BUILD_TESTS=OFF' '-DgRPC_MSVC_STATIC_RUNTIME=OFF' '-DgRPC_CARES_PROVIDER=package' '-DgRPC_PROTOBUF_PACKAGE_TYPE=CONFIG' '-DgRPC_PROTOBUF_PROVIDER=package' '-DgRPC_SSL_PROVIDER=package' '-DgRPC_ZLIB_PROVIDER=package' '-Dc-ares_DIR=/home/ue4/.conan/data/cares-ue4/1.16.1/adamrehn/4.23/package/2d5d64d24a14ce3202bc0a7ab502fb3deb6344eb/lib/cmake/c-ares' '-DOPENSSL_SYSTEM_LIBRARIES=' '-DOPENSSL_USE_STATIC_LIBS=ON' '-DOPENSSL_ROOT_DIR=/home/ue4/.conan/data/OpenSSL/ue4/adamrehn/4.23/package/62aff1e13bfa6a447a1ecd8198b9e13b18a63e91' '-DProtobuf_DIR=/home/ue4/.conan/data/protobuf-ue4/3.12.3/adamrehn/4.23/package/85671f6de7947f1cae40e263f8639f526bdf7cfe/cmake' '-DZLIB_INCLUDE_DIR=/home/ue4/.conan/data/zlib/ue4/adamrehn/4.23/package/62aff1e13bfa6a447a1ecd8198b9e13b18a63e91/include' '-DZLIB_LIBRARY=/home/ue4/.conan/data/zlib/ue4/adamrehn/4.23/package/62aff1e13bfa6a447a1ecd8198b9e13b18a63e91/lib/libz_fPIC.a' '/home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/build/bbaadf9c14f1821b000882e0282e20b2519fdbed/grpc'
Traceback (most recent call last):
  File "/usr/local/bin/ue4", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/ue4cli/cli.py", line 222, in main
    SUPPORTED_COMMANDS[command]['action'](manager, args)
  File "/usr/local/lib/python3.6/dist-packages/conan_ue4cli/main.py", line 48, in main
    SUBCOMMANDS[subcommand]['function'](manager, args[1:])
  File "/usr/local/lib/python3.6/dist-packages/conan_ue4cli/commands/build.py", line 130, in build
    builder.build(name, version, args.options if args.options is not None else [])
  File "/usr/local/lib/python3.6/dist-packages/conan_ue4cli/common/PackageBuilder.py", line 45, in build
    self._executor.execute(command, cwd=tempDir, check=True)
  File "/usr/local/lib/python3.6/dist-packages/conan_ue4cli/common/CommandExecutor.py", line 19, in execute
    return subprocess.run(command, **kwargs).returncode == 0
  File "/usr/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['conan', 'install', 'grpc-ue4/1.30.2@adamrehn/4.23', '--profile=ue4.23-Linux-x86_64-unknown-linux-gnu', '--build=missing']' returned non-zero exit status 1.
The command '/bin/sh -c ue4 conan build grpc-ue4' returned a non-zero code: 1
ERROR: Service 'server' failed to build
av-jeroen commented 3 years ago

I have run into the exact same issue. Did you manage to solve it?

av-jeroen commented 3 years ago

Found the problem! https://github.com/adamrehn/ue4-conan-recipes/issues/11

adamrehn commented 2 years ago

Fixed upstream for the latest version of gRPC.