Skip to content

Commit

Permalink
Added doc for libsumo installation on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
kjang96 committed Jul 17, 2020
1 parent 7198c37 commit 1e197ea
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/libsumo_mac.md
@@ -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 1e197ea

Please sign in to comment.