Installing SUMO on Mac OS X Mavericks.

SUMO is an open source, highly portable, microscopic and continuous road traffic simulation package designed to handle large road networks.

It has ready made binaries for Linux and Windows but for Mac you have to build it on your own.

Here you are the steps that work on Mavericks (10.9.4).

  1. Install Xcode:
    Download the latest version of Xcode from the Apple developer website or get it using the Mac App Store.
  2. Install xcode command line tools:
    Once you have Xcode installed, open a terminal and run the command xcode-select --install.
  3. Install XQuartz
  4. Link XQuartz
    Run following command in the terminal:
    sudo ln -s /opt/X11/ /usr/X11
  5. Install brew then run the command:
    brew install xerces-c proj gdal
  6. Download fox-1.6.49.tag.gz
    1. Extract it, go inside the extracted folder
    2. Run the following command to configure:
      CPPFLAGS=”-I/usr/X11/include -I/usr/X11/include/freetype2″ LDFLAGS=”-L/usr/X11/lib” ./configure –with-x –with-xft –with-opengl –x-includes=/usr/X11/include –x-libraries=/usr/X11/lib
      Check the following outputs from the configure output:
      checking for OpenGL support… yes
      checking GL/glu.h usability… yes
      checking GL/glu.h presence… yes
      checking for GL/glu.h… yes
      checking GL/gl.h usability… yes
      checking GL/gl.h presence… yes
      checking for GL/gl.h… yes
    3. Run command: make
    4. Run command: make install
  7. Build Sumo
    1. Download sumo-all-0.21.0.tar.gz , extract it, go inside the folder and then use command:
      CPPFLAGS=”$CPPFLAGS -I/usr/local/include/python2.7 -I/usr/local/include -I/usr/X11/include -I/usr/X11/include/freetype2″ LDFLAGS=”$LDFLAGS -lpython2.7 -L/usr/local/lib -L/usr/X11/lib” ./configure –x-includes=/usr/X11/include –x-libraries=/usr/X11/lib –with-python –enable-messages
    2. Note: its configured it with python support, you can exclude that if you don’t need.
    3. Use Command make -j4 && make install
    4. Run sumo or sumo-gui
  8. Enjoy

Credits: Md Mahbubur Rasheed

Advertisements

11 thoughts on “Installing SUMO on Mac OS X Mavericks.

  1. Rim says:

    Hello,
    This command doesn’t work for me:

    CPPFLAGS=”-I/usr/X11/include -I/usr/X11/include/freetype2″ LDFLAGS=”-L/usr/X11/lib” ./configure –with-x –with-xft –with-opengl –x-includes=/usr/X11/include –x-libraries=/usr/X11/lib

    Like

  2. Yash Agarwal says:

    how do you install it on os x yosemite?
    i am getting errors like:
    checking for X11/extensions/shape.h… no

    checking for X11/Xcursor/Xcursor.h… no

    checking for X11/extensions/Xrender.h… no

    checking for X11/extensions/Xrandr.h… no

    checking for X11/extensions/Xfixes.h… no

    checking for X11/extensions/XInput.h… no

    checking for OpenGL support…
    checking GL/glu.h usability… no
    checking GL/glu.h presence… no
    checking for GL/glu.h… no
    checking GL/gl.h usability… no
    checking GL/gl.h presence… no
    checking for GL/gl.h… no

    how do i check these?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s