小编jir*_*ipi的帖子

Windows上的gRPC C++

我已经尝试了3天,现在找到如何在没有运气的情况下在Windows上安装和使用gRPC.我使用的是Visual Studio 2015,Win7 64位.为了安全起见,我会一步一步地写下我正在做的事情.它可能没有必要,但我是C++和VS的初学者,所以我不确定我是否正确地做到了:

(以下指南http://www.infopulse.com/blog/grpc-framework-by-google-tutorial/):

  • 从git,init子模块获取gRPC
  • 为protobuf获取gmock和gtest(不在指南中,但是它不起作用)
  • 在protobuf上运行cmake
  • 在发布模式下在Visual Studio中构建protobuf.sln(为解决方案的每个部分设置Property Manager> C/C++>代码生成>运行时库> / MDd)
  • Copy Release/ folder to protobuf/cmake/ (instead of Debug/ as in intructions - that would give me libprotobufd.lib instead of libprotobuf.lib which is required)
  • Build grpc/vsprojects/grpc_protoc_plugins.sln in VS also in Release mode and again set for each part of the solution Property Manager > C/C++ > Code Generation > Runtime Library > /MDd
  • Copy protoc.exe from protobuf/cmake/Release to grpc/vsprojects/Release, which was …

c++ windows visual-studio-2015 grpc

12
推荐指数
3
解决办法
1万
查看次数

标签 统计

c++ ×1

grpc ×1

visual-studio-2015 ×1

windows ×1