I install grpc by vcpkg install grpc
and add it to cmake file .
Now I want to generate grpc c++ file , I run :
protoc --cpp_out=grpc_file/ --grpc_out=grpc_file/ --proto_path=grpc_proto/ ./grpc_proto/side_information.proto
It returns error :
protoc-gen-grpc: program not found or is not executable
--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.
What should I do to use the grpc_cpp_plugin installed by vcpkg ? My workspace is :
.
├── CMakeLists.txt
├── Readme.md
├── build
├── build_envs.sh
├── grpc_file
├── grpc_proto
├── main.cpp
├── twitter.json
└── vcpkg