Home > Android, Linux, Programming > Build Your Phone Android Distro with CyanogenMod Compiler 0.4 GUI (Cmc-pygtk) for Ubuntu

Build Your Phone Android Distro with CyanogenMod Compiler 0.4 GUI (Cmc-pygtk) for Ubuntu

Lithid, a member of XDA Developers Forum, has recently released the 4th version of a GUI tool (Cmc-pygtk) to build Android for a given smartphone as long as it is supported by CM. The CyanogenMod Compiler is supported by Ubuntu 10.04 32/64-bit and greater, and you can either download a deb file or build it yourself by following the instructions below:

  1. Install dependencies:
    sudo apt-get install build-essential devscripts ubuntu-dev-tools debhelper \
    dh-make diff patch cdbs quilt gnupg fakeroot lintian pbuilder piuparts \
    flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools \
    libncurses5-devĀ  zlib1g-dev openjdk-6-jdk pngcrush schedtool
  2. Clone the source tree:
    git clone git://github.com/lithid/Cmc-pygtk.git
  3. Generate a gpg key:
    keygpg --gen-key
  4. Delete the changelog or dpkg will use lithid key instead.:
    cd Cmc-pygtk
    rm os-versions/common/changelog
  5. Edit the EMAIL field in the Makefile and replace it with the one used to generated the gpg key.
  6. Build it for your version of Ubuntu. For Ubuntu 12.04 32-bit:
    make cmc-12.04-32
  7. And install it:
    cd out
    sudo dpkg -i cmc-12.04-32-v0.4.deb

Before using CyanogenMod Compiler (CMC) is installed, you need to install google repo tool:

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > repo
chmod a+x repo
sudo mv repo /usr/local/bin/repo

Now that everything is setup, you can run CyanogenMod Compiler:


A disclaimer message telling that you may render your device unusable pops up, click on OK to enter the UI.

CyanogenMod Compiler set to Build Android ICS for Samsung Galaxy S2

CyanogenMod Compiler (CMC) Set to Build Android 4.0 for Galaxy S2

In the top menu, go to File->Setup to select your device, branch (ics or gingerbread) and other settings. Then click on Sync to download the code and once it is completed, click on Compile to build Android.

If you run into problems, you can read and ask on the XDA developer “[CMC-GUI] [PPA] Cyanogenmod Compiler” forum thread.


Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter

  1. Haris Sarwar
    May 9th, 2012 at 01:09 | #1

    What is the purpose of this compiler?
    Does it generates native code for android?

  2. May 9th, 2012 at 08:30 | #2

    @ Haris Sarwar
    It just builds the CyanogenMod ROM for your smartphone. Most people would probably just download the latest binaries, but If you want the very latest changes or want to do some modifications to the Android OS yourself this tool can be useful.

  3. Haris Sarwar
    May 9th, 2012 at 15:44 | #3

    Ok Thanks

  4. May 11th, 2012 at 16:17 | #4

    Right, after 4 days, the sync is completed, but the build won’t start (missing file)…

  1. No trackbacks yet.