This README.md shows how to use the vearch c++ grpc client.
-
Installation grpc You can follow the guide(https://github.com/grpc/grpc/tree/master/src/cpp)
-
Set environment variables
grpc_path="your install path of grpc" export PATH=$grpc_path/bin:$PATH export LIBRARY_PATH=$LIBRARY_PATH:$grpc_path/lib:$grpc_path/lib64 export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$grpc_path/include export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$grpc_path/lib/pkgconfig:$grpc_path/lib64/pkgconfig
-
How to use
client.h is the package of vearch c++ client, test_client.cc shows how to use it. You can build the test_client.cc just by:
make
, then you can get the executable file test_client.