Install libbox2d-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libbox2d-dev
Description:
2D physics engine - development files
2D rigid body simulation library for games. Programmers can use it in their games to make objects move in believable ways and make the world seem more interactive. From the game's point of view a physics engine is just a system for procedural animation. Rather than paying (or begging) an animator to move your actors around, you can let Sir Isaac Newton do the directing. . This package contains the development libraries and headers.
Homepage: http://www.box2d.org/
Version: 2.3.1+ds-4
Section: universe/libdevel