Since iceoryx2 is written in Rust we need to install that first. We recommend the official approach.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Then C/C++ compiler and library dependencies must be installed.
sudo ./internal/scripts/install_dependencies_archlinux.sh
sudo ./internal/scripts/install_dependencies_ubuntu.sh
In the repository root folder, execute the following steps.
cmake -S . -B target/ffi/build -DBUILD_EXAMPLES=ON
cmake --build target/ffi/build