Required software:
Install git, and GNU stuff
sudo apt install git coreutils findutils build-essential
Install sufficiently recent compiler
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y
Install SDL 2, and GLEW libraries
sudo apt install libsdl2-2.0
sudo apt install libsdl2-dev
sudo apt install libglew-dev
The sources also contain troubleshooting steps. In case of any failure make sure to check them first.
Adding repository "universe" in Apt http://askubuntu.com/a/227788
Installation of SDL 2 on Ubuntu https://askubuntu.com/questions/707001/ubuntu-15-10-installing-sdl2
Installation of G++-7 compiler on Ubuntu https://gist.github.com/jlblancoc/99521194aba975286c80f93e47966dc5