When I try to build my project errors are reported with not finding gflags, gtest, and libprotobuf. Add dependencies as:, with Includes going in C/C++ > Additional Include Directories.To the new project 'Add' > 'Existing Item' and add greeter_ from grpc/examples/cpp.I keep the grpc.sln open in VS and 'Add' > 'New Project' ![]() /examples/protos/helloworld.proto -proto_path=././examples/protos Protoc -grpc_out=./hello_proto -plugin=protoc-gen-grpc=grpc_cpp_plugin.exe. I get .cc, .h, helloworld.pb.cc and helloworld.pb.h and move them all to grpc/examples/cpp/helloworld: Generate c files from proto in example folder. Build grpc/vsprojects/grpc.sln in VS in Debug mode (only the grpc++ part as I read somewhere 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 created in previous step.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 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 protobuf.sln in Visual Studio in Release mode (set for each part of the solution Property Manager > C/C++ > Code Generation > Runtime Library > /MDd).Get gmock and gtest for protobuf (not in the guide, but else it.It might not be necessary but I am a beginner with C++ and with VS so I am not at all sure I am doing it correctly: To be safe, I'll write step by step of what I am doing. ![]() I am using Visual Studio 2015, Win7 64-bit. I have been trying for 3 days by now to find how to install and use gRPC on windows with no luck.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |