Install Qt == 5.9.X from https://qt.io (or from the archives).
Install required dependencies (See debian packaging: https://github.com/ubports/ubuntu-ui-toolkit/blob/xenial/debian/control).
If you are using Qt from the archives, run:
sudo apt install \
libdbus-1-dev \
libevdev-dev \