In order to compile 2.2.2 on a rather clean Ubuntu 17.10 I had to install the packages below in addition to the required stuff as described in the documentation on wiki.
For the benefit of less experienced users, I periodically post step by step instructions here on the forum. The most recent such instructions are here: https://forum.audacityteam.org/t/building-audacity-2-2-0-on-ubuntu-17-04-zesty/46271/1 (obviously I am not able to give detailed instructions for every version of Linux, so I generally focus on a recent release of Debian or Ubuntu).
If you would like to post step by step instructions for Audacity 2.2.2 on Ubuntu 17.10, I’m sure that will be useful for others.
Note that most of your missing dependencies would have been available if you had installed the “build-essential” package.