C++ Example application and service that utilizes up-transport-zenoh-cpp
- Compiler: GCC/G++ 11 or Clang 13
- Ubuntu 22.04
- conan : 1.59 or latest 2.X
Use the up-conan-recipes repo and compile the following recipes:
$ conan create --version 1.6.0-alpha4 --build=missing up-core-api/release
$ conan create --version 1.0.1-dev --build=missing up-cpp/developer
$ conan create --version 1.0.0-dev --build=missing up-transport-zenoh-cpp/developer
$ cd up-zenoh-example-cpp
$ conan install --build=missing .
$ cmake --preset conan-release
$ cd build/Release
$ cmake --build . -- -j
$ cd up-zenoh-example-cpp
$ conan install --build=missing --settings=build_type=Debug .
$ cmake --preset conan-debug
$ cd build/Debug
$ cmake --build . -- -j
After completing the project build, the build artifacts can generally be found in the build/Release/bin
directory within your workspace.
You can run the example using the supplied configuration file located in the /resources
directory.For instance, to run the RPC example, use the following commands:
$ ./rpc_server <path/to/config>
$ ./rpc_client <path/to/config>