Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Unable to build Sumo: error: 'PI' was not declared in this scope

I'm trying to follow the instructions at Tutorials/PT from OpenStreetMap
<http://sumo.dlr.de/wiki/Tutorials/PT_from_OpenStreetMap> but it seems they
require features of netconvert which have not yet been released.

When I try to build Sumo from source on my Ubuntu 17.04 zesty machine, I
get the following error:

make[4]: Entering directory '/home/danvk/Downloads/sumo-
svn/src/microsim/devices'
g++ -DHAVE_CONFIG_H -I. -I../../../src  -I/home/danvk/Downloads/sumo-svn/./src
 -I/usr/local/include -I/usr/include    -msse2 -mfpmath=sse -std=c++11 -O2
-DNDEBUG  -MT MSDevice_SSM.o -MD -MP -MF .deps/MSDevice_SSM.Tpo -c -o
MSDevice_SSM.o MSDevice_SSM.cpp
MSDevice_SSM.cpp: In member function ‘MSDevice_SSM::EncounterType
MSDevice_SSM::classifyEncounter(const MSDevice_SSM::FoeInfo*,
MSDevice_SSM::EncounterApproachInfo&)
const’:
MSDevice_SSM.cpp:1664:126: error: ‘PI’ was not declared in this scope
                 double angle =
std::fmod(egoConnectionLine.rotationAtOffset(0.)
- foeConnectionLine.rotationAtOffset(0.), (2*PI));

                                                  ^~
Makefile:412: recipe for target 'MSDevice_SSM.o' failed

Should this be M_PI? Is there a workaround? Bug to be fixed?

Thanks,
  - Dan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user

Back to the top