From 74cdbd682dda103b57a9f4b9be911b211068f39d Mon Sep 17 00:00:00 2001 From: Raul Victor Trombin Date: Fri, 1 Mar 2024 16:30:28 -0300 Subject: [PATCH] examples: cpp: Add furthuer instructions --- examples/cpp/README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/examples/cpp/README.md b/examples/cpp/README.md index 55432bb968..b1e15a8161 100644 --- a/examples/cpp/README.md +++ b/examples/cpp/README.md @@ -1,5 +1,21 @@ -# How to build +# How to use + +For BlueOS (red-pill) ```shell +# Prepare the environment with cmake and cargo +sudo apt-get update && sudo apt-get install cmake git +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +source "$HOME/.cargo/env" + +# Clone and move to Cpp folder +git clone https://github.com/bluerobotics/navigator-lib.git +cd examples/cpp + +# Build with the following commands cmake -B build -DCMAKE_BUILD_TYPE=Debug && cmake --build build --config Debug --parallel + +# Run the binary +./build/simple + ```