In order to compile JPSreport it is necessary to first install the required libraries.

Supported compilers

Any compiler with support for C++11.

Tested with

  • g++ (linux/osx)
  • clang (osx)
  • Visual Studio 2013 (Windows)

Required tools

  • cmake: see this tutorial for a brief overview.
  • Python (highly recommended): needed to plot results of analysis.
  • Polygon: Needed for plotting Voronoi diagrams. Note that Polygon2 is not maintained. So it is recommended to go with Polygon3.
  • Pandas: To efficiently read some big files.

    Required libraries

  • Boost library: necessary for jpscore and jpsreport.

Install Boost (at least v1.57)

Linux

You can compile boost using the following snippet:

 boost_version=1.61.0
 boost_dir=boost_1_61_0

 wget http://downloads.sourceforge.net/project/boost/boost/${boost_version}/${boost_dir}.tar.gz
 tar xfz ${boost_dir}.tar.gz
 rm ${boost_dir}.tar.gz
 cd ${boost_dir}
 ./bootstrap.sh --with-libraries=filesystem,test,system
 sudo ./b2 --without-python --prefix=/usr -j 4 link=shared runtime-link=shared install
 cd .. 
 rm -rf ${boost_dir} 
 sudo ldconfig

(download this snippet as a script).

Note: Debian’s and Ubuntu’s install manager offer an old version of Boost, which is not supported by JuPedSim.

Mac

For brew users:

 brew install boost

And for port users

 sudo port install boost 

Windows

 bootstrap
 b2  variant=release --build-type=complete 

See also Getting started on Windows.

This script can be useful, in case you are using Visual Studio.

Download it and put it in the same directory as Boost. Depending on your Boost version and VS, you may want to adapt in the script the variables boost_dir and msvcver.

Test Boost installation

You can test your Boost installation by using this minimal example.