I am a new member of this group. Just joined today. Looking forward to learning more about using bazel to build grpc c++ applications. I am working on a windows machine.
I started with the helloworld tutorial explained on the
grpc.io website. I've attached my files to this conversation. My folder contains the basic greeter client and server files along with the helloworld.proto file. I am struggling with getting the correct WORKSPACE and BUILD files. My current files are also in the attachment. Any help / suggestions are highly appreciated.
Here's the error message on running "bazel build :greeter_server" in the vs code powershell terminal:
ERROR: D:/work/git/tutorials/grpc/grpc_getting_started/BUILD:35:16: Action helloworld.grpc.pb.h failed (Exit -1073741515): protoc.exe failed: error executing command
cd C:/users/bj3pgh/_bazel_bj3pgh/4ot2dzx3/execroot/__main__
bazel-out/host/bin/external/com_google_protobuf/protoc.exe --plugin=protoc-gen-PLUGIN=bazel-out/host/bin/external/com_github_grpc_grpc/src/compiler/grpc_cpp_plugin.exe --PLUGIN_out=bazel-out/x64_windows-fastbuild/bin --proto_path=. --proto_path=bazel-out/x64_windows-fastbuild/bin helloworld.proto
Execution platform: @local_config_platform//:host
Target //:greeter_server failed to build
ERROR: D:/work/git/tutorials/grpc/grpc_getting_started/BUILD:53:10 Action helloworld.grpc.pb.h failed (Exit -1073741515): protoc.exe failed: error executing command
cd C:/users/bj3pgh/_bazel_bj3pgh/4ot2dzx3/execroot/__main__
bazel-out/host/bin/external/com_google_protobuf/protoc.exe --plugin=protoc-gen-PLUGIN=bazel-out/host/bin/external/com_github_grpc_grpc/src/compiler/grpc_cpp_plugin.exe --PLUGIN_out=bazel-out/x64_windows-fastbuild/bin --proto_path=. --proto_path=bazel-out/x64_windows-fastbuild/bin helloworld.proto
Execution platform: @local_config_platform//:host
INFO: Elapsed time: 1.299s, Critical Path: 0.27s
INFO: 5 processes: 5 internal.
FAILED: Build did NOT complete successfully
--------------------------------------------------------------------------------------------------------------------------------------------
Thank you in advance.