Usually, I experiment with fresh docker-images different configurations and whether they work well for JuPedSim.

Since, some packages of JuPedSim depend on boost, I use this minimal working example to check the version of the installed boost.

#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <iostream>

using namespace boost::geometry;

int main()
{
std::cout << "Using Boost "
<< BOOST_VERSION / 100000     << "."  // major version
<< BOOST_VERSION / 100 % 1000 << "."  // minor version
<< BOOST_VERSION % 100                // patch level
<< std::endl;
}


Using the following CMakeLists.txt the compilation of the aforementioned file goes like

• cmake .
• make
• run ./main

Note

• Save the snippet above as boost_version.cpp
• It goes without saying that the use of CMake here is a bit of overkill, but that’s ok. We need that for JuPedSim anyway.