JuPedSim does not offer any Linux binaries. A compilation of the code is necessary.

Get the code

git clone https://github.com/JuPedSim/jpscore.git

How to build

Once you have installed all dependencies and cloned the repository continue with a ninja based build:

mkdir build
cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug <path-to-cmakelists>
ninja

Alternatively you can generate a make based build with:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug <path-to-cmakelists>
make -j$(nproc)
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_OPENMP=OFF <path-to-cmakelists>

CMake configuration flags

The following configuration flags are available:

  • USE_OPENMP defaults to ON (Disabled on Windows) Build jpscore with OpenMP support, generation will fail if OpenMP cannot be found. MSVC only support OpenMP 2.0 Standard and is therefor disabled on Windows.

  • BUILD_DOC defaults to OFF Build internal Doxygen based documentation

  • BUILD_CPPUNIT_TEST defaults to OFF Build unit tests and add them to ctest

  • BUILD_TESTING defaults to OFF Build full system tests and add them to ctest

  • BUILD_WITH_ASAN defaults to OFF (Does not support Windows) Build an additional target jpscore_asan with address and undefined behavior sanitizer enabled. Note there is an approx. 2x slowdown when using jpscore_asan over jpscore