Awesome
Analogy-cpp-Logging
C++ gRPC client that streams messages to Analogy Log Server.
Windows
steps to install gRPC C++ library/dependencies:
-
install vcpkg. See Quick start for windows.
-
install gRPC C++ from the command line:
- 32 bit:
vcpkg install grpc:x86-windows
orvcpkg install grpc
- 64 bit:
vcpkg install grpc:x64-windows
-
If zlib support is desired, you'll also need to install the zlib feature:
vcpkg install protobuf[zlib]
orvcpkg install protobuf[zlib]:x64-windows
-
Once installed, you can find the installed packages in the vcpkg directory under the folder <vcpkg_installed_path>\packages. In order to make the packages available system-wide, you need to issue the command
vcpkg integrate install
-
(this step is not needed asthe c++ files were alread generated): Generating c++ files:
- from the proto folder run:
protoc -I=. --cpp_out=. Analogy.proto
protoc -I=. --grpc_out=. --plugin=protoc-gen-grpc="<vcpkg_install_path>\packages\grpc_x64-windows\tools\grpc\grpc_cpp_plugin.exe" Analogy.proto
6.Creating a project using CMake:
- from the build folder run the following command:
cmake -G "Visual Studio 16 2019" ../ -DCMAKE_TOOLCHAIN_FILE=<vcpkg_install_path>/scripts/buildsystems/vcpkg.cmake
7.now from the build folder you can open the visual studio solution and run the client project or run cmake build .