Skip to content

Commit

Permalink
Add Mac setup instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Fábio Luiz Nery de Miranda <[email protected]>
  • Loading branch information
fabiolnm committed Apr 20, 2024
1 parent 7fea1a9 commit 5c45e7e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions mac-setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

How To: Develop on a Mac

Check notice on line 2 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L2

First line in a file should be a top-level heading

## Preparation

Check notice on line 4 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L4

Expected: [None]; Actual: ## Preparation

1. Clone the repository `git clone [email protected]:EVerest/everest-utils.git`
1. From inside VSCode, type `Cmd+Shift+P`
1. Select the directory `everest-utils/docker/everest-playground` to start a
DevContainer - all the following commands must be executed in VSCode terminals
inside the DevContainer.
1. Run `. init.sh` to initialize the dependencies.
1. Compile and install

```bash
cmake .. -DBUILD_SHARED_LIBS=on && make install
```

## MQTT
Open a terminal tab to start the MQTT server

```bash
cd /workspace/docker ; ./mqtt-devcontainer.sh
```

## Nodered / Simulator UI
Open a terminal tab to start the Nodered server

```bash
cd /workspace/everest-cpp/everest-core/build ; ./run-scripts/nodered-sil.sh
```

## Software-in-the-loop Simulator
Open a terminal tab to start the simulation

```bash
export LD_LIBRARY_PATH=$(find / -name "*.so*" 2>/dev/null |
xargs -I {} dirname {} | sort -u | tr '\n' ':' | sed 's/:$//')

cd /workspace/everest-cpp/everest-core/build ; ./run-scripts/run-sil.sh
```

Open http://localhost:1880/ui and test the Charging Station and EV simulators.

0 comments on commit 5c45e7e

Please sign in to comment.