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).
- Install Xcode:
Download the latest version of Xcode from the Apple developer website or get it using the Mac App Store. - Install xcode command line tools:
Once you have Xcode installed, open a terminal and run the commandxcode-select --install
. - Install XQuartz
- Link XQuartz
Run following command in the terminal:
sudo ln -s /opt/X11/ /usr/X11 - Install brew then run the command:
brew install xerces-c proj gdal - Download fox-1.6.49.tag.gz
- Extract it, go inside the extracted folder
- 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 - Run command: make
- Run command: make install
- Build Sumo
- 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 - Note: its configured it with python support, you can exclude that if you don’t need.
- Use Command make -j4 && make install
- Run sumo or sumo-gui
- Download sumo-all-0.21.0.tar.gz , extract it, go inside the folder and then use command:
- Enjoy
Credits: Md Mahbubur Rasheed
Offering a Homebrew formula would be great!
LikeLike
Nice idea, but I am not expert with formulas, You are welcome to write it : )
LikeLike
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
LikeLike
Hello, when I try to link /opt/X11 to /usr/X11 I receive the following answer:
ln: /usr/X11/: File exists
Any idea?
LikeLike
me too
LikeLike
I got it! You don’t need to answer my previously question. Thanks anyway
LikeLike
Great.
Can you share with us how it got fixed?
LikeLike
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?
LikeLike
Below is my installation step.
LikeLike
I have problem at the point 6.b. Where have I to write the command line??
LikeLike
Please, Someone can help me to install Sumo on my MacBook (ElCapitain)?
LikeLike