MengeCrowdSim / Menge

The source code for the Menge crowd simulation framework
Apache License 2.0
138 stars 64 forks source link

SCB file output appears not to work in linux #14

Closed MengeCrowdSim closed 7 years ago

MengeCrowdSim commented 7 years ago

Apparently, providing the scb file argument to the linux build causes the system to hang.

Example: ./menge -p ../examples/core/headon.xml -o test.scb

MengeCrowdSim commented 7 years ago

Initial investigation suggests the problem is in src/Menge/MengeCore/Runtime/os.cpp.

The absPath method hangs when trying to create the absolute path for a file that does not exist. It invokes realpath. The man page for realpath suggests that it should exit with an error code: ENOENT (file does not exist), but this seems not to be the case. So, I may have to do something smarter.

MengeCrowdSim commented 7 years ago

Fixed by #18 and #15