0

由于项目需要,需要使用vcpkg来安装1.18grpc和3.6.1.3protobuf,所以我将vcpkg-master\ports\rpc\CONTROL修改为指定版本,当然我也修改了protobuf的CONTROL。最后vcpkg报错:Error: Building package grpc: x86-windows failed with: BUILD_FAILED

windows10 ,the latest version of vcpkg-master.zip

Building package grpc[core]:x86-windows...
-- Note: grpc only supports static library linkage. Building static library.
-- Using cached D:/Google/vcpkg-master/downloads/grpc-grpc-75475f090875e737ad6909a6057c59577f0c79b1.tar.gz
-- Extracting source D:/Google/vcpkg-master/downloads/grpc-grpc-75475f090875e737ad6909a6057c59577f0c79b1.tar.gz
-- Applying patch 00001-fix-uwp.patch
-- Applying patch 00002-static-linking-in-linux.patch
-- Applying patch 00003-undef-base64-macro.patch
-- Applying patch 00004-link-gdi32-on-windows.patch
-- Using source at D:/Google/vcpkg-master/buildtrees/grpc/src/577f0c79b1-086c8c6e6c
-- Configuring x86-windows
-- Building x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
    Command failed: D:/Google/vcpkg-master/downloads/tools/cmake-3.14.0-windows/cmake-3.14.0-win32-x86/bin/cmake.exe --build . --config Debug --target install -- -v
    Working Directory: D:/Google/vcpkg-master/buildtrees/grpc/x86-windows-dbg
    See logs for more information:
      D:\Google\vcpkg-master\buildtrees\grpc\install-x86-windows-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:96 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
  ports/grpc/portfile.cmake:73 (vcpkg_install_cmake)
  scripts/ports.cmake:73 (include)


I hope that vcpkg can install the specified version of protobuf and grpc, but the actual vcpkg only installed protobuf, and grpc failed.
4

1 回答 1

0

我在#8710中发现了与您的问题相同的问题,我认为它可以为您工作:

似乎该功能与系统功能重复。你能解压这个补丁,把它移到VCPKG_PATH/ports/grpc/并添加行: fix-duplicate-gettid.patchVCPKG_PATH/ports/grpc/portfile.cmake第 27 行,然后尝试重建 grpc?

于 2019-12-09T06:57:31.437 回答