...
Setting up a Linux build configuration is fairly straightforward. These build instructions were used for the "official" build platform of Ubuntu 10.04, but also on the latest Ubuntu 12.10. First, run the following command to install all the required development packages:
Ubuntu
...
14.04, 15.10, 16
sudo apt-get update sudo apt-get install bison flex gperf libasound2-dev libgl1-mesa-dev \ libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libjpeg-dev \ libpng-dev libx11-dev libxml2-dev libxslt1-dev libxt-dev \ libxxf86vm-dev pkg-config x11proto-core-dev \ x11proto-xf86vidmode-dev libavcodec-dev mercurial libgtk2.0-dev \ ksh libxtst-dev libudev-dev libavformat-dev
...
You must also install Gradle. We are using Gradle 2.11 for 9-dev, and Gradle 1.8 for the older 8-dev (IMPORTANT: Only these versions are regularly tested).
Note: gradle is available as a Ubuntu package, but check the version. This command should work after you set JAVA_HOME:
gradle -version
Environment Variables
At a minimum, you will need to have gradle, java and javac in your path.
...