-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added doc for libsumo installation on Mac (#1005)
* Added doc for libsumo installation on Mac * Added code shell
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
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 |
---|---|---|
@@ -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. |