Building The C++ Examples

To begin, make sure that you have already [cloned the C++ example repo](/articles/?p=738). ```bash $ cd ~/repolink/polysync-examples/PolySync-CPP-Examples/ $ tree -L 1 . ├── CANReader ├── CANWriter ├── DataGenerator ├── Echo ├── HelloWorld ├── HelloWorldPublisher ├── HelloWorldSubscriber ├── LogfileIterator ├── LogfileQueueReader ├── LogfileWriter ├── ParameterGetSet ├── PublishSubscribe ├── README.md ├── Record ├── Replay ├── SampleApplication ├── SerialConfig ├── SerialReader ├── SerialWriter ├── SharedMemoryImageDataViewer ├── SingleTransform ├── SocketReader ├── SocketWriter ├── TransformStack ├── VideoDeviceViewer └── VideoEncodeDecode ``` Each example has a `CMakeLists.txt` file that is set up for the project. To build the project, run `cmake`: ```bash $ cd DataGenerator $ mkdir build && cd build $ cmake .. $ make $ ./polysync-data-generator-cpp ```