IDE Setup

An Integrated Development Environment (IDE) assists the developer with a built-in compiler that provides in-line code assistance. Other built-in features link to documentation contained within the PolySync API header files.

Most IDEs can be configured to read the header files. PolySync’s C developers commonly prefer NetBeans 8.1.

Download and install the IDE. The next step is to create a new project, or start a project with existing source code. Each project is an application that can have any number of header files─or include directories─attached.

To configure the IDE for PolySync application development:

  • Start a new NetBeans project, or create a project from existing source files
  • Right-click on the project name from the ‘Projects’ tab in the left-panel
  • Select Properties
  • Go to the C Compiler tab
  • Select Include Directories
  • Add the two absolute paths
  • PSYNC_HOME/include
  • PSYNC_HOME/include/deps/dcps/C/SAC

PSYNC_HOME should be converted to an absolute path. The default path is /usr/local/polysync.

NetBeans Step 01

NetBeans Step 02

NetBeans Step 03

NetBeans Step 04

IDE Node Execution

The following variables need to be defined in the IDE build environment, for PolySync nodes to properly execute within the IDE’s environment.

  • PSYNC_HOME ** Default: /usr/local/polysync
  • OSPL_HOME ** Default: /usr/local/polysync/utils/x86_64.linux
  • OSPL_URI ** Default: file:///usr/local/polysync/utils/x86_64.linux/etc/config/ospl.xml