Dear Customers,

The PolySync Support Center is now just for submitting tickets to our support team. All articles and tutorials have been moved to the new PolySync Help Center and the content below will be removed shortly.

Thank you,
The PolySync Team

Compile and run C examples

How to compile and run a C example

Before you can clone the example application repositories you will need to install git.

$ sudo apt-get install git

To begin working with the C example applications we will clone all source code from the public GitHub repo with git.

$ git clone https://github.com/PolySync/PolySync-C-Examples.git

All C examples are built using Make. We will demonstrate the build steps using the publish-subscribe example.

$ cd $PSYNC_HOME/examples/c/publish_subscribe
$ make

To run the application supply the relative path.

$ ./bin/polysync-publish-subscribe-c

You can quickly install the binary to the system -- PSYNC_HOME/bin -- using the make install command.

$ make install 
Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Lyle Johnson

    Fixed! Thank you for pointing it out.

  • 0
    Avatar
    Luciw

    Typo: repository is named PolySync-C-Examples, not C-Examples

Please sign in to leave a comment.