Hello Kathy,
Yes, libsumo works on macOS. I recommend you to Build and Install SUMO from source.
You need to have SWIG installed (you can install it using Homebrew ->
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) (next
3 steps are inside that directory)
-
cmake ../..
-
make
-
make install
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.
regards,
Angelo
Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx]
Im Auftrag von Kathy Jang
Gesendet: Freitag, 29. Mai 2020 00:07
An: Sumo project User discussions
Betreff: [sumo-user] Libsumo for Mac
Does libsumo work for Mac? There are no references to a Mac install
here. I've also attempted to re-install SUMO and use libsumo, but it doesn't seem like the libsumo library is in the installation. The libsumo directory contains an __init__ file but that's it. Can you please
advise?
Thank you very much!
Kathy Jang
University of California, Berkeley | MS/PhD