[TUTORIAL] How to Compile Gummy for Toro

Discussion in 'Galaxy Nexus ROMS' started by kejar31, Feb 14, 2012.

  1. kejar31

    kejar31 Premium Member Premium Member Developer

    Joined:
    Jul 27, 2010
    Messages:
    622
    Likes Received:
    2
    Trophy Points:
    18
    Ratings:
    +2
    Compiling Gummy


    All work here is done from Ubuntu 10.04.. Newer releases may require slightly different packages.


    Installing dependencies:
    1. Install Ubuntu 10.04 and install all updates
    2. Install Java SDK (type or copy the commands into the terminal exactly as you see them here )
      1. Code:
        sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner”
      2. Code:
        sudo apt-get update
      3. Code:
        sudo apt-get install sun-java6-jdk
    3. Install Git
      1. Code:
        sudo apt-get install git-core
    4. Install the rest of the needed files
      1. Code:
        sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils pngcrush


    Setting up and syncing Gummy’s Repo
    1. Enter the commands in the terminal exactly as they are displayed to setup your PATH
      1. Code:
        mkdir ~/bin
      2. Code:
        PATH=~/bin:$PATH
      3. Code:
        curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
      4. Code:
        chmod a+x ~/bin/repo
    2. Create your Gummy source directory and then go to that directory
      1. Code:
        mkdir ~/Gummy
      2. Code:
        cd ~/Gummy
    3. Initialize and sync the Gummy repo (where X is put the number of cores for your CPU such as “repo sync -j4” for a quad core)
      1. Code:
        repo init -u[URL="https://github.com/teamgummy/platform_manifest.git"][COLOR=#000000] https://github.com/teamgummy/platform_manifest.git[/COLOR][/URL] -b master
      2. Code:
        repo sync -jX
    1. Take a break and enjoy an ice cold beer
      1. Go to the fridge
      2. Pull out your favorite brand of beer
      3. Open with care
      4. Drink with pleasure
      5. Otherwise its going to take a while ( a long while )


    Preparing to Gummy and compiling
    1. Get prebuilts (Term)
      1. Code:
        cd ~/Gummy/vendor/Gummy
      2. Code:
        ./get-prebuilts
      3. Code:
        cd ~/Gummy
    2. Compile (dont forget the . and also make sure you again change the X to the number of cores you have)
      1. Code:
        . build/envsetup.sh && lunch Gummy_toro-userdebug && make gummy -jX
     
    Last edited: Feb 14, 2012
  2. patmw123

    patmw123 Senior Member

    Joined:
    Dec 20, 2009
    Messages:
    1,678
    Likes Received:
    32
    Trophy Points:
    78
    Location:
    North Carolina
    Ratings:
    +33
    Current Phone Model:
    Nexus 6
    Great write up. Thanks Justin!
     
  3. kejar31

    kejar31 Premium Member Premium Member Developer

    Joined:
    Jul 27, 2010
    Messages:
    622
    Likes Received:
    2
    Trophy Points:
    18
    Ratings:
    +2
    yea thanks.. I really hope we can get a few more devs to jump in on the project...
     
  4. gonzo319

    gonzo319 New Member

    Joined:
    Mar 13, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    do you have to be on Root in terminal to do this, I was able to initialize repo and sync, however when I go to compile from the cd ~/Gummy/vendor/Gummy part I get No such file or directory...hummm