Skip to content

Commit

Permalink
Added doc for libsumo installation on Mac (#1005)
Browse files Browse the repository at this point in the history
* Added doc for libsumo installation on Mac

* Added code shell
  • Loading branch information
kjang96 authored Jul 17, 2020
1 parent 7198c37 commit 8a935a8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/libsumo_mac.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# How to install Libsumo for Mac OS

This is adapted from an email exchange with the SUMO staff.



To install libsumo requires re-building and installing SUMO from source.

## Steps

- **Install swig:** ```brew install swig```
- **Clone the repo:** ```git clone https://github.com/eclipse/sumo.git```
- **Create a “cmake-build” directory inside sumo/build/ and navigate to it:** ```mkdir build/cmake-build && cd build/cmake-build```

**The next 3 steps are inside that directory**

- ```cmake ../..```
- ```make```
- ```make install```

## Additional Notes
- You can test if libsumo has been built looking at (./testlibsumo) inside the sumo/bin/ directory.
- Bear in mind to use libsumo with the same Python version with which CMake built SUMO.

0 comments on commit 8a935a8

Please sign in to comment.