The recommended way to install rotor is to use conan package manager.
Among the various ways to include rotor in a project, but the most trivial one is to just check install it to local conan cache via:
Please note, that it might take some some time before the new rotor
release appears in conan center as this is intentionally non-automated and human-supervised process for inclusion.
C++ 17 is required to use rotor.
The core dependency rotor-core
needs intrusive pointer support from boost-smartptr and boost::posix_time::time_duration
. (That might be changed in future, PRs are welcome).
The optional event-loop specific supervisors depend on corresponding loop libraries, i.e. rotor-asio
depends on boost-asio; the rotor-wx
depends wx-widgets.
rotor
uses cmake
for building; it supports the following building options
BUILD_BOOST_ASIO
- build with boost-asio support (off
by default)BUILD_WX
build with wx-widgets support (off
by default)BUILD_EV
build with libev support (off
by default)BUILD_EXAMPLES
build examples (off
by default)BUILD_DOC
generate doxygen documentation (off
by default, only for release builds)BUILD_THREAD_UNSAFE
builds thread-unsafe library (off
by default). Enable this option if you are sure, that rotor-objects (i.e. messages and actors) are accessed only from single thread.ROTOR_DEBUG_DELIVERY
allow runtime messages inspection (off
by default, enabled by default for debug builds)Your CMakeLists.txt
should have something like
Your CMakeLists.txt
should have something like