How to compile headless bitcoin-qt for Ubuntu

OS : Ubuntu 18.04
Bitcoin Version : Latest Master Branch

I have installed all required dependencies and compiled bitcoind, and bitcoin-qt successfully. The GUI app runs fine on the system I compiled it. But if I send it to my other Ubuntu 18.04 system and run it, it gives me error dependencies error, example libzmq missing. If I install libzmq5-dev, it give me other dependency error until I install all the dependencies.

As a normal user, I want to use the wallet out of the box without needing to install anything. How do I achieve that ?