Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: cpp: Add furthuer instructions
- Loading branch information
1 parent
d1cb99d
commit 74cdbd6
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
``` |