Installing/MacOS Build w Homebrew

generated on 2017-05-02 00:27:04.612938 from the wiki page for Installing/MacOS_Build_w_Homebrew for SUMO 0.30.0

If you come from a previous macports installation you need to uninstall sumo and fox toolkit first:

 sudo port uninstall sumo
 sudo port uninstall fox

If you did not already install homebrew do it by invoking

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

make sure your homebrew db is up-to-date

brew update

Install dependencies

brew install Caskroom/cask/xquartz
brew install autoconf
brew install automake
brew install gdal
brew install proj
brew install xerces-c
brew install fox

Set necessary environment variables

export CPPFLAGS="$CPPFLAGS -I/opt/X11/include/"
export LDFLAGS="-L/opt/X11/lib"

Run configure

./configure CXX=clang++ CXXFLAGS="-stdlib=libc++ -std=gnu++11" --with-xerces=/usr/local --with-proj-gdal=/usr/local

Build

make -j8

Install

make install

After the installation you need to log out/in in order to let X11 start automatically, when calling a gui-based application like "sumo-gui". (Alternatively, you may start X11 manually by pressing cmd-space and entering "XQuartz").


Workaround for the bus error problem w/ foxtoolkit-1.6.53

sumo-gui is currently broken due to an incompatibility with the current foxtoolkit version provided by homebrew. As a workaround you might proceed as follows.

brew unlink fox 
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git checkout 3f55fba1057e509820411414a5c49c162c5ccb33 Formula/fox.rb
brew install Formula/fox.rb

This will install version 1.6.51 of foxtoolkit, which seems to work.


This page was last modified on 18 April 2017, at 12:52.