[Guide][cm7] How to build cyanmobile from source

Did this guy help you


  • Total voters
    17
Search This thread

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    Hello guys i'm here with my first guide of how to build cyanmobile from source for galaxy fit ......


    As you all might know cyanmobile went opensource thanks to squadzone now we can compile it from source with our own modifiactions.....


    Requirements
    1)Linux machine (recommended 64bit and ubuntu) with atleast 50gb free space
    2)Common sense of how to use google and fix errors
    3)Basic knowledge of git and its commands
    4)A possibilty of bricking your fit
    5)A fast and stable internet connection



    now lets get started

    Assuming we have linux installed

    installing required build packages

    from terminal
    HTML:
    sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
    Note:- All the packages are important dont skip any of them


    now making the directories to download the source
    HTML:
    mkdir -p ~/bin
    mkdir -p ~/android/system

    here mkdir stands for make directory
    ~ refers to your home folder (incase if you are a beginner)

    Next

    making the repo command executable

    copy paste this terminal

    HTML:
    curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
    chmod a+x ~/bin/repo

    Reboot your system after executing this

    This defines the repo command or the repo command usable on your machine

    chmod is giving permissions to the folder a+x is the permissions given don't go deep into this.

    Next

    Downloading the source

    i will be referring execute to copy pasting in the terminal

    HTML:
    repo init -u git://github.com/CyanMobile/android_cyanmobile.git -b gingerbread

    now

    repo sync

    alternatives

    repo sync -jx

    here x can be anything depends on your internet speed ther will x number of simultaneous download if you use the arguement

    like if you use

    repo sync -j4
    There will 4 downloads going on simulatneously

    Next after the source has been downloaded you will find someting like this...
    syncing working tree 100

    now you have the source downloaded

    Preparing the build environment

    install java jdk6 or jdk 5 using this tutorial
    http://codingforme.wordpress.com/2012/05/14/installing-oracle-java-jdk-6-or-7-on-ubuntu-12-04/
    Install the android sdk following this tutorial
    http://www.howtoforge.com/setting-up-an-android-app-build-environment-with-eclipse-android-sdk-phonegap-ubuntu-11.04

    not testsed on jdk 7 so better use 6 or 5

    fix its path using "export PATH=$PATH:"ur sdk path""

    ur sdk path depends on where you install it

    install adb using this guide
    http://xdaforums.com/showthread.php?t=921169

    Connect your phone with usb debugging enabled and execute this
    preferable do this when you are on a cm based rom ..


    HTML:
    adb devices

    if you see something like this its working for you

    HTML:
    List of devices attached 
    S5670efac482b	device
    now go to device > samsung > beni execute extract-files.sh as root use sudo and drag that to terminal and hit enter

    now cd into the root of your source folder

    HTML:
    cd ~/android/system

    then
    HTML:
    source buid/envsetup.sh

    HTML:
    lunch

    you will see all the build properties something like this

    HTML:
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=2.3.8
    TARGET_PRODUCT=cyanogen_beni
    TARGET_BUILD_VARIANT=eng
    TARGET_SIMULATOR=false
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv6-vfp
    HOST_ARCH=x86
    HOST_OS=linux
    HOST_BUILD_TYPE=release
    BUILD_ID=GINGERBREAD

    now type make -jx otapackage

    x depends on your hardware more it is faster the build

    you will find the built one in out/samsung/beni /cm--xxx.zip

    Flash it and enjoy


    credits
    wilfredcool007
    vishwanthptl
    sakindia123
    yajnab
    ravi h basawa
    adit_pat
    squadzone
    google
    xda

    without these guys it wouldnt be possible pree thanks for them plz
    8
    4
    Its same as the building of cyanogenmod. But to continue this thread u have to first build a copy too for promoting this and the errors while building , so start repo syncing. I am syncing the jelleybean now.

    Best of luck for this thread

    i am too doing a list of common errors encountered and will update the op
    2
    Its same as the building of cyanogenmod. But to continue this thread u have to first build a copy too for promoting this and the errors while building , so start repo syncing. I am syncing the jelleybean now.

    Best of luck for this thread
    2
    I'm on a low bandwidth. Can u please make a highly compressed .uha or Uharc compression package of the cyanmobile so that i can also help u in building this. not having the cm7 sources too. It cn be a grat sart for making a more modified cyanombile than squadzone.

    dude do this remove all devices and sync only beni and tass the source is small and use aosps prebuilt the download is only 3gb bro...and can plz upload the prebuilt directory for me i will upload frameworks and devices by tmrw for you..........plz i need the prebuilt directory