【问题标题】:vcpkg Unable to compile grpc's specified versionvcpkg 无法编译grpc的指定版本
【发布时间】:2019-07-17 11:55:05
【问题描述】:

由于项目需要,需要使用vcpkg来安装1.18grpc和3.6.1.3protobuf,所以我修改vcpkg-master\ports\rpc\CONTROL为指定版本,当然我也修改了CONTROL protobuf.Finally 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.

【问题讨论】:

    标签: protocol-buffers grpc vcpkg


    【解决方案1】:

    我在#8710 中发现了与您的问题相同的问题,我认为它对您有用:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-08-18
      • 1970-01-01
      • 2018-04-16
      • 2021-09-10
      • 2012-01-06
      • 2018-06-30
      • 1970-01-01
      相关资源
      最近更新 更多