Skip to content

Building Trunk Recorder

hayden-t edited this page Feb 21, 2022 · 5 revisions

You don't need to follow these steps if you installed via Docker. You should proceed to Running Trunk Recorder

Make sure you have installed the required prerequisites for your platform. You can find details on the Installation wiki page.

In order to keep your copy of the Trunk Recorder source code free of build artifacts created by the build process, it is suggested to create a separate "out-of-tree" build directory. We will use trunk-build as our build directory.

Assuming you are in the desired directory to place both trunk-recorder and trunk-build folders to, perform the following...

mkdir trunk-build
git clone https://github.com/robotastic/trunk-recorder.git
cd trunk-build
cmake ../trunk-recorder
make

If you have a machine with 10GB or more of available RAM, with many CPU cores (4+) available, you can attach -j to the make argument: make -j. The result will be a faster compile time.

If all goes well, you should see [100%] Built target recorder with the trunk-recorder executable in the trunk-build directory.