From e6912fe694b9c192dfeea1cadbe7491c1028fffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Luiz=20Nery=20de=20Miranda?= Date: Fri, 19 Apr 2024 22:33:28 -0700 Subject: [PATCH] Add MAc setup instructions --- mac-setup.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 mac-setup.md diff --git a/mac-setup.md b/mac-setup.md new file mode 100644 index 00000000..5bdc3449 --- /dev/null +++ b/mac-setup.md @@ -0,0 +1,25 @@ +1. Clone the repository `git clone git@github.com:EVerest/everest-utils.git` +2. From inside VSCode, type `Cmd+Shift+P` +3. 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. +4. Run `. init.sh` to initialize the dependencies. +5. Compile and install +``` +cmake .. -DBUILD_SHARED_LIBS=on && make install +``` +6. Open a terminal tab to start the MQTT server +``` +cd /workspace/docker ; ./mqtt-devcontainer.sh +``` +7. Open a terminal tab to start the Nodered server +``` +cd /workspace/everest-cpp/everest-core/build ; ./run-scripts/nodered-sil.sh +``` +8. Export shared libraries +``` +export LD_LIBRARY_PATH=$(find / -name "*.so*" 2>/dev/null | xargs -I {} dirname {} | sort -u | tr '\n' ':' | sed 's/:$//') +``` +9. Open a terminal tab to start the Software-in-the-loop simulation +``` +cd /workspace/everest-cpp/everest-core/build ; ./run-scripts/run-sil.sh +``` +10. Open http://localhost:1880/ui and test the Charging Station and EV simulators