Plugin failed with status code

31 views
Skip to first unread message

Suraj Kottayi

unread,
Mar 26, 2024, 2:09:41 AMMar 26
to grpc.io

How do i generate code using cmake, during configuration.??
The issue with cmake command execute_process() is that the argument "--plugin=protoc-gen-grpc=/usr/local/grpc_cpp_plugin"
has to be absolute, trying to change it into a variable is throwing =>

: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc_out: protoc-gen-grpc: Plugin failed with status code 1

AJ Heller

unread,
Mar 26, 2024, 4:13:05 PMMar 26
to grpc.io
Did you follow the quickstart guide to build and install gRPC and protocol buffers using cmake? https://grpc.io/docs/languages/cpp/quickstart/

Best,
-aj
Reply all
Reply to author
Forward
0 new messages