Skip to content

Commit

Permalink
examples: cpp: Add furthuer instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin authored and patrickelectric committed Mar 4, 2024
1 parent d1cb99d commit 74cdbd6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion 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

```

0 comments on commit 74cdbd6

Please sign in to comment.