Building CyanogenMod requires quite a lot of work. You will need to install a large number of dependencies, and you will need to read through lots of documentation.
Docker is a rather new software to automate the deployment of applications inside a software container.
Here is a Docker container for running an environment which contains everything that is needed to compile CyanogenMod. It will be very easy to install, and it will just work! The Github page contains some further information on how to get started.
NOTE: You will need to install Docker to proceed: https://www.docker.io/gettingstarted/
How to build:
git clone https://github.com/stucki/docker-cyanogenmod.git cd docker-cyanogenmod ./build.sh
cd docker-cyanogenmod ./run.sh
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0 repo sync source build/envsetup.sh breakfast <device codename> # example: breakfast grouper brunch <device codename> # example: brunch grouper
Github URL: https://github.com/stucki/docker-cyanogenmod
2015-01-06 * Update for CyanogenMod 12.0 (use OpenJDK 7) 2014-06-23 * Fix issues with Docker 1.0 * Update the base image to Ubuntu 14.04 2014-02-20 * Add note about running get-prebuilts 2014-02-16 * Initial release