Hi,

I want to report that sumo-gui (sumo 0.20) compiles on Mac OS X 10.9. Below is 
the summary of the steps.


Step one. Minor source code change
----------------------------------

Only one line of code needs to be changed in the following two files:

src/foreign/polyfonts/polyfonts.c
src/foreign/polyfonts/pfPSansBold16.c

The line is the following:

#include <GL/gl.h>

The line shold be changed to the following:

#ifdef __APPLE__
#  include <OpenGL/gl.h>
#else
#  include <GL/gl.h>
#endif

That is the only source change.



Step two. Dependencies
----------------------

The dependencies can be installed using Homebrew (http://brew.sh/). I installed 
xerces-c, proj, gdal and fox (I might also have had more dependencies installed 
earlier).



Step three. Compilation flags
-----------------------------

"./configure" can't figure the correct compilation flags for Sumo on Mac, so 
they have to be adjusted manually before running ./configure. The flags can be 
set through the environment variables. Here are the flags that worked for me:

export CXXFLAGS="-I/opt/X11/include"
export LDFLAGS="-framework OpenGL -framework GLUT -L/usr/X11/lib 
-L/usr/X11R6/lib -lpython2.7"



That's it. Running "./configure --with-python" and "make" successfully compiled 
sumo and sumo-gui.


I have a question: can the minor source code change above be incorporated into 
the main source code?

Also, if there is interest, I probably can create a Homebrew formula to 
simplify the installation.


Hope this helps,

Alex


--
Alexey Voronov, PhD
Senior Researcher Cooperative Systems
Viktoria Swedish ICT


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to