Answer the question
In order to leave comments, you need to log in
How to properly install gRPC c++?
Installed according to the instructions from the official site . Here is a list of commands, taking into account the location in the directories:
git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
cd grpc
git submodule update --init
make
cd third_party/protobuf
make && sudo make install
cd examples/cpp/helloworld/
Package grpc was not found in the pkg-config search path.
Perhaps you should add the directory containing `grpc.pc' to the PKG_CONFIG_PATH environment variable
export PKG_CONFIG_PATH=<REPOSITORY ROOT>/libs/opt/pkgconfig/
In file included from helloworld.grpc.pb.cc:6:0:
helloworld.grpc.pb.h:24:55: fatal error: grpcpp/impl/codegen/async_generic_service.h: Нет такого файла или каталога
Answer the question
In order to leave comments, you need to log in
Try:
git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
cd grpc
git submodule update --init
make
sudo make install # <<< установка grpc
cd third_party/protobuf
make && sudo make install
pkg-config --libs grpc
-L/usr/local/lib -lgrpc
pkg-config --libs protobuf
-L/usr/local/lib -lprotobuf -pthread -lpthread
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question