This page explains how to install ethercatcpp framework.

Install PID

You need to first install (or reuse) a PID workspace somewhere on your filesystem. This workspace is the folder where all ethercatcpp projects will be installed in your workstation. Please refer to the website to get detailed explanation about PID.

Here is the quick procedure:

sudo apt-get install cmake git
cd <path to a folder somewhere in your filesystem where everything will be installed>
git clone https://gite.lirmm.fr/pid/pid-workspace.git
cd pid-workspace
./pid configure

It is recommended to source the pid shell script, as explained in the output of the previous command. Next examples of command consider you have done this step.

You should refer to the complete install procedure to adequately configure your workstation.

Install ethercatcpp-core

The base library that you need to install to use ethercatcpp is called ethercatcpp-core and is contained in the package with same name. To install simply do:

pid cd
pid deploy package=ethercatcpp-core

The last version of the ethercatcpp-core package will be installed.

To install a specific version, say for instance version 1.0, you can do:

pid cd
pid deploy package=ethercatcpp-core version=1.0

You are now ready to work with ethercatcpp.

Install other ethercatcpp packages

Depending on the hardware you are working on, you will have to install new ethercatcpp packages to get the drivers for those specific devices. To do this you will simply have to do:

pid cd
pid deploy package=ethercatcpp-<name>

with tag name replaced by the name of the package. For instance if you want to install the package that provides drivers for Maxon EPOS Drives do:

pid cd
pid deploy package=ethercatcpp-epos