How to compile and run a C++ example
Before you can clone the example application repositories you will need to install git. If you intend to build C++ examples you will also need to install cmake.
$ sudo apt-get install git cmake
To begin working with the C++ example applications we will clone all source code from the public GitHub repo using git.
$ git clone https://github.com/PolySync/PolySync-CPP-Examples.git
All C++ examples are built using cmake. We will demonstrate the build steps using the PublishSubscribe example.
$ cd $PSYNC_HOME/examples/cpp/PublishSubscribe $ mkdir build && cd build $ cmake .. # path to directory containing CMakeLists.txt file $ make
To run the application supply the relative path.