1. Tots' Sumo Mac Os X
  2. Mac Os Versions
  3. Mac Os Mojave
2014-03-12 13:31:40 UTC

Post by Alex Voronov 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. Minor source code change. Owners of iPhone, iPad, iPod, Mac, or Apple TV products may obtain service and parts from Apple service providers, including Apple Retail Stores and Independent Repair Providers, for 5 years from when Apple last distributed the product for sale. Service and parts may be obtained for longer, as required by law, or for an additional two years, subject to parts availability. Apple discontinues.

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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][List Home]
Re: [sumo-user] Decimal separator char in sumo-gui with Mac OS X ??
  • From: Jakob Erdmann <namdre.sumo@xxxxxxxxx>
  • Date: Mon, 18 Jun 2018 20:52:11 +0200
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://dev.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
I don't know why this should happen and cannot suggest a fix that avoids recompilation. We regularly use SUMO in Germany where the decimal separator is also ',' and we never ran into this issue. I supopose it is some interaction of the computers 'Locale' settings and the fox toolkit library version.
I've added the suggested fix to the codebase so you could use the latest development version and it should work.
Jakob
Sumo

Tots' Sumo Mac Os X

2018-06-18 13:01 GMT+02:00 P. Pablo Garrido Abenza <pgarrido@xxxxxx>:

Hi,
After having worked several months with SUMO v0.25.0 + Veins 4.4 + OMNeT++ in Mac OS X without problems, suddenly simulations abort just at the begining (t=0.2s). I don't know why, perhaps some application installed a few days ago with MacPorts upgraded some library.
The following error is shown in the SUMO server log:
Done with proxy mode, killing SUMO
Done running SUMO
Cleaning up
Result: '<?xml version='1.0'?>
<status>
<exit-code>-6</exit-code>
<start>1529245446</start>
<end>1529245482</end>
<status>Exited with error code -6</status>
<stdout><![CDATA[Loading configuration... done.
]]></stdout>
<stderr><![CDATA[FXSevenSegment doesnt support: ,
]]></stderr>
</status>
After several days with this, it seems that the problem is when sumo-gui tries to represent the value 0.2 in the 7-segments displays. Thinking that in Spain the decimal separator char is ',' (comma), so the value is 0,2, I've modified the FXSevenSegment.cpp file such as it be the same as 0.2 (with dot):
// draw the specific character - figure out which segments to draw
void FXSevenSegment::drawFigure(FXDCWindow& dc, FXchar figure) {
switch (figure) {
...
case '_' :
case '.' :
case ',' : <---- added
Now, 0,2 is the same that 0.2, and it works!!. However, I would like to know if somebody know the reason for this problem, and if the modification done is correct. Is there any other way to solve this without recompiling SUMO? Is there any parameter to configure the decimal separator char in SUMO?
Many thanks in advance.
Pablo


_______________________________________________
sumo-user mailing list

Mac Os Versions

sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Mac Os Mojave



  • References:
    • [sumo-user] Decimal separator char in sumo-gui with Mac OS X ??
      • From: P. Pablo Garrido Abenza
  • Prev by Date:Re: [sumo-user] Some parameters in defining the Electrical Vehicles
  • Next by Date:Re: [sumo-user] calculate delay
  • Previous by thread:[sumo-user] Decimal separator char in sumo-gui with Mac OS X ??
  • Next by thread:[sumo-user] Deactivate common walkingareas in junction corners?
  • Index(es):