Skip to content

Instantly share code, notes, and snippets.

@changwu-tw
Last active October 5, 2020 18:35
Show Gist options
  • Save changwu-tw/ad40ae1bf8f2590f0619 to your computer and use it in GitHub Desktop.
Save changwu-tw/ad40ae1bf8f2590f0619 to your computer and use it in GitHub Desktop.
Install SUMO on Mac OSX 10.10

Install OMNeT++ 4.6 on Mac OSX 10.10

$ brew install tcl-tk libxslt bison doxygen gnuplot
  • LDFLAGS: -L/usr/local/opt/tcl-tk/lib

  • CPPFLAGS: -I/usr/local/opt/tcl-tk/include

  • LDFLAGS: -L/usr/local/opt/libxslt/lib

  • CPPFLAGS: -I/usr/local/opt/libxslt/include

  • LDFLAGS: -L/usr/local/opt/bison/lib

  • edit configure.user

build_shared_libs=yes
CFLAGS='-Wno-long-double -I/usr/include/malloc -fPIC'
LDFLAGS='-bind_at_load'
SHLIB_LD='g++ -dynamiclib -undefined dynamic_lookup'
SO_LIB_SUFFIX='.dylib'
TK_CFLAGS="-I/usr/local/opt/tcl-tk/include"
TK_LIBS="-L/usr/local/opt/tcl-tk/lib -ltk8.6 -ltcl8.6"
  • edit .zshrc
export PATH=$PATH:/Users/user/Desktop/SUMO/omnetpp-4.6/bin
  • Install OMNeT++ 4.6
$ ./configure
$ make
#!/bin/bash
## 1. Install XQuartz (http://xquartz.macosforge.org/)
## 2. Download SUMO source code (http://sourceforge.net/projects/sumo/)
## sumo-src-0.22.0.tar.gz
## 3. Installing dependencies via homebrew
brew tap homebrew/x11
brew install fox gdal proj xerces-c
## 4. Compile & Install
export CXXFLAGS="-I/opt/X11/include"
export LDFLAGS="-framework OpenGL -framework GLUT -L/usr/X11/lib -L/usr/X11R6/lib -lpython2.7"
./configure --with-python
make -j4
make install
@sarahalshareeda
Copy link

when running ./configure --with-python add --with-xerces-libraries=/usr/local/Cellar/xerces-c/3.2.3/lib option to avoid not finding lib error

@sarahalshareeda
Copy link

also with --with-proj-libraries=/usr/local/Cellar/proj@5.2.0/5.2.0/lib

@sarahalshareeda
Copy link

also for make -j4, create local folder in /opt then create lib folder in local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment