• Login:

Welcome to the Android Evolved Forums.

Talk about anything to do with android that can't fit into another forum.

Photobucket
Results 1 to 1 of 1
  1. #1
    Ice
    Ice is offline
    Developer
    Join Date
    Sep 2012
    Posts
    10
    Reputation
    10
    Device(s)
    SCH-I500
    Android OS
    CM10 AOKP BB

    [Guide]How to compile AOKP or any rom Ubuntu 12.04+

    You will need the following before starting this guide....

    1. 64 bit copy of ubuntu installed on your computer Download Ubuntu Desktop | Ubuntu (I recommend the latest and greatest)
    2. Have common sense and be able to follow instructions
    3. Know what terminal is and how to copy/paste onto terminal
    4. A solid internet connection (you'll be downloading a lot of stuff so is best NOT to use your AOL internet hahaha)


    Now that's taken care of, as it should....let's start! Just follow the steps and you shouldn't have an issue! (go ahead and open up terminal...you'll need it)

    1. Install JDK 6
    Code:

    sudo apt-get install openjdk-6-jdk
    2. Install Python
    Code:

    sudo apt-get install python
    3. Install git-core
    Code:

    sudo apt-get install git-core
    4. Close out your terminal and open up your browser and go to Android SDK | Android Developers to download the SDK

    5. Once is downloaded, extract it to your home folder i.e (Alex or whatever your computer name is)

    6. Rename it to something easy like android-sdk

    7. Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file

    8. Add the following to the bottom of the .bashrc file
    Code:

    # Android tools
    export PATH=${PATH}:~/android-sdk/tools
    export PATH=${PATH}:~/android-sdk/platform-tools
    export PATH=${PATH}:~/bin
    9. Hit save and close out of it

    10. Find your .profile file and add this at the bottom of the file
    Code:

    PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"
    11. Open up terminal again

    12. Install the following packages

    Code:

    sudo apt-get install git-core
    Code:

    sudo apt-get install gnupg
    Code:

    sudo apt-get install flex
    Code:

    sudo apt-get install bison
    Code:

    sudo apt-get install gperf
    Code:

    sudo apt-get install build-essential
    Code:

    sudo apt-get install zip
    Code:

    sudo apt-get install curl
    Code:

    sudo apt-get install zlib1g-dev
    Code:

    sudo apt-get install libc6-dev
    Code:

    sudo apt-get install lib32ncurses5-dev
    Code:

    sudo apt-get install ia32-libs
    Code:

    sudo apt-get install x11proto-core-dev
    Code:

    sudo apt-get install libx11-dev
    Code:

    sudo apt-get install lib32readline5-dev
    Code:

    sudo apt-get install lib32z-dev
    Code:

    sudo apt-get install libgl1-mesa-dev
    Code:

    sudo apt-get install g++-multilib
    Code:

    sudo apt-get install mingw32
    Code:

    sudo apt-get install tofrodos
    Code:

    sudo apt-get install python-markdown
    Code:

    sudo apt-get install libxml2-utils
    Code:

    sudo apt-get install libncurses5-dev:i386
    Code:

    sudo apt-get install libx11-dev:i386
    Code:

    sudo apt-get install libreadline6-dev:i386
    Code:

    sudo apt-get install libgl1-mesa-glx:i386
    Code:

    sudo apt-get install xsltproc
    Code:

    sudo apt-get install zlib1g-dev:i386


    13.On newer versions of Ubuntu you may need to do the following
    Code:

    sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6
    Code:

    sudo ln -s /usr/lib/i386-linux-gnu/libX11.so
    Code:

    sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1
    Code:

    sudo ln -s /usr/lib/i386-linux-gnu/libGL.so
    14. Configure your USB.
    Code:

    gksudo gedit /etc/udev/rules.d/51-android.rules

    Inside of this blank text file insert:

    Code:

    #Acer
    SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"

    #ASUS
    SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"

    #Dell
    SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"

    #Foxconn
    SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"

    #Garmin-Asus
    SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"

    #Google
    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"

    #HTC
    SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"

    #Huawei
    SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"

    #K-Touch
    SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"

    #KT Tech
    SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"

    #Kyocera
    SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"

    #Lenevo
    SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"

    #LG
    SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"

    #Motorola
    SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"

    #NEC
    SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"

    #Nook
    SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"

    #Nvidia
    SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"

    #OTGV
    SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"

    #Pantech
    SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"

    #Philips
    SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"

    #PMC-Sierra
    SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"

    #Qualcomm
    SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"

    #SK Telesys
    SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"

    #Samsung
    SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"

    #Sharp
    SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"

    #Sony Ericsson
    SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"

    #Toshiba
    SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"

    #ZTE
    SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
    Remember to save it and close out of it

    15. Enter this into terminal
    Code:

    sudo chmod a+r /etc/udev/rules.d/51-android.rules
    Congrats, you've installed everything necessary to start to build your ROM (getting close)

    Now you got to decide what you want build. For this guide, I will use AOKP 4.2.2 as this seems to be the easiest of things to do....

    1. Type in the followings commands to install your repo

    Code:

    mkdir ~/bin
    Code:

    PATH=~/bin:$PATH
    Code:

    Code:

    chmod a+x ~/bin/repo
    2. Type in the following commands to initialize the repo

    Code:

    mkdir AOKP
    Code:

    cd AOKP
    Code:

    Code:

    repo sync
    *** When prompted, enter your real name and email address ***

    This will not be a fast process. You are getting ready to download the source. Brace yourself 8+GB awaits you.(How long it takes depends on your computer and internet speed)
    Once you're completely synced, you will need to git clone your device folder, common, kernel and vendor folder.

    This process is easily done using a local_manifest.xml

    1. Go into your AOKP and then into your .repo folder

    2. Make a file called local_manifest.xml

    3. Open it up and insert the following

    Code:

    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
    <remote name="mazda"
    fetch="https://github.com/Mazdarider23"
    />

    <project name="YOUR DEVICE FOLDER NAME AS LISTED IN GITHUB i.e device_htc_shooter" path="THE PATH YOU WANT IT TO GO i.e device/htc/shooter" remote="mazda" revision="THE BRANCH NAME i.e jellybean" />
    <project name="YOUR COMMON FOLDER NAME AS LISTED IN GITHUB i.e device_htc_msm8660-common" path="THE PATH YOU WANT IT TO GO i.e device/htc/shooter" remote="mazda" revision="THE BRANCH NAME i.e jellybean" />
    <project name="YOUR KERNEL FOLDER NAME AS LISTED IN GITHUB i.e kernel_htc_shooter" path="THE PATH YOU WANT IT TO GO i.e kernel/htc" remote="mazda" revision="THE BRANCH NAME i.e jellybean" />
    <project name="YOUR VENDOR FOLDER NAME AS LISTED IN GITHUB i.e vendor_htc" path="THE PATH YOU WANT IT TO GO i.e vendor/htc" remote="mazda" revision="THE BRANCH NAME i.e jellybean" />
    </manifest>
    4. Hit save and close it out

    5. Go back to your source directory (the AOKP folder)

    6. Type in terminal

    Code:

    repo sync

    This will pull everything you have in your local_manifest.xml (device, common, kernel and vendor folder)



    Once that's done, prepare to compile your AOKP ROM....

    1. Type in terminal

    Code:

    . build/envsetup.sh
    Code:

    lunch
    2. Pick your device

    Or you could type
    brunch *****
    <---- ***** Is your device codename

    Code:

    make -J# bacon
    # <---- Number of cores your cpu has


    Once you've compiled, go into your out/target/product/shooter (the last folder will change depending on what device you're building for) folder and you will see a flashable zip, ready to flash!! If you have any troubles or get stuck feel free to let me know I will reply ASAP

    Happy Building!! **Much Credit goes to Dastin1015 at XDA most of the wording came from his guide**
    Last edited by Ice; 04-18-2013 at 07:41 PM.
    Inspired By Code.
    Here to help, Ice

  2. # ADS
    Circuit advertisement
    Join Date
    Always
    Posts
    Many
     

 

 

Similar Threads

  1. [ROM][JB][PORT] AOKP Jelly Bean Build 1
    By Ice in forum Mesmerize Root, ROMS, Kernels, & Development
    Replies: 0
    Last Post: 09-22-2012, 10:44 PM
  2. [ROM][JB][PORT] AOKP Jelly Bean Build 1
    By Ice in forum Showcase Root, ROMs, & Kernels
    Replies: 0
    Last Post: 09-22-2012, 10:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •