This page shows how to generate the Makefiles for communication plug-ins. If you have not implemented a plug-in yet, you may use the provided example plug-ins for an initial test or refer to the page Getting Started with Plug-in Development to get information about the implementation of a plug-in.
With CMake, the build system artifacts, for example, Makefiles, are generated automatically according to the respective platform, toolchain, and generator.
To build the release version of the plug-in, you can use the following commands:
The following code shows how to build the example plug-in "event-logger" on a Windows system.
The placeholder for <MERLIC EXAMPLE DIR> and <MERLIC INSTALL DIR> must be replaced with the path to the respective location of the MERLIC examples and the MERLIC installation.
The following code shows how to build the example plug-in "event-logger" for an aarch64 Linux target on a x64 Linux host:
The placeholder for <MERLIC EXAMPLE DIR> and <MERLIC INSTALL DIR> must be replaced with the path to the respective location of the MERLIC examples and the MERLIC installation.
In addition, you have to specify the compiler executable name for the placeholder <AARCH64 CROSS COMPILER NAME>, for example, aarch64-linux-gnu-g++.
If you want to build a plug-in that requires the Boost libraries, you have to take the following into account:
"DBoost_ROOT".For more information on the Boost libraries and the installation, see the Getting Started Guide of Boost.
The provided example plug-in "action-sender" uses the Boost ASIO library for portable networking and requires Boost 1.73 or newer. Therefore, it must be built with the additional "DBoost_ROOT" argument. The following code shows the commands for Windows systems:
The placeholder for <MERLIC EXAMPLE DIR>, <MERLIC INSTALL DIR>, and <BOOST INSTALL DIR> must be replaced with the path to the respective location of the MERLIC examples, the MERLIC installation, and the Boost installation.
To get more detailed information about CMake, see the respective documentation at cmake.org/documentation.