[TUTORIAL] How to Compile Gummy for Toro - Samsung Galaxy Nexus

Compiling Gummy on Ubuntu 10.04
All work here is done from Ubuntu 10.04.. Newer releases may require slightly different packages.
Installing dependencies:
Install Ubuntu 10.04 and install all updates
Install Java SDK (type or copy the commands into the terminal exactly as you see them here )
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner”
Code:
sudo apt-get update
Code:
sudo apt-get install sun-java6-jdk
Install Git
Code:
sudo apt-get install git-core
Install the rest of the needed files
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
Enter the commands in the terminal exactly as they are displayed to setup your PATH
Code:
mkdir ~/bin
Code:
PATH=~/bin:$PATH
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
Code:
chmod a+x ~/bin/repo
Create your Gummy source directory and then go to that directory
Code:
mkdir ~/Gummy
Code:
cd ~/Gummy
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)
Code:
repo init -u https://github.com/teamgummy/platform_manifest.git -b master
Code:
repo sync -jX
Take a break and enjoy an ice cold beer
Go to the fridge
Pull out your favorite brand of beer
Open with care
Drink with pleasure
Otherwise its going to take a while ( a long while )
Preparing to Gummy and compiling
Get prebuilts (Term)
Code:
cd ~/Gummy/vendor/Gummy
Code:
./get-prebuilts
Code:
cd ~/Gummy
Compile (dont forget the . and also make sure you again change the X to the number of cores you have)
Code:
. build/envsetup.sh && lunch Gummy_toro-userdebug && make gummy -jX
_____________________________________________________________
Compiling Gummy on Ubuntu 11.10
Some of these instructions were taken directly from here..
First up:
Install Ubunutu 11.10 and install all the updates
Installing java:
Download the java JDK make sure you select accept the licence agreement and grab the jdk-6u30-linux-x64.bin
enter these commands exactly as they are listed
Code:
sudo chmod a+x ~/Downloads/jdk-6u30-linux-x64.bin
Code:
sudo cp ~/Downloads/jdk-6u30-linux-x64.bin /usr/lib
Code:
cd /usr/lib
Code:
sudo ./jdk-6u30-linux-x64.bin
Code:
sudo mv /usr/lib/jdk1.6.0_30/ /usr/lib/jvm/
Determine if any other JVMs are installed, and count how many, if any
Code:
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_30/jre/bin/java 1
Code:
sudo update-alternatives --config java
Be sure to select /usr/lib/jvm/jdk1.6.0_30/jre/bin/java (number 2 in my build environment)
We need create symbolic links to a few Java binaries in /usr/bin
Code:
cd /usr/bin
Code:
sudo ln -s /usr/lib/jvm/jdk1.6.0_30/bin/javac
Code:
sudo ln -s /usr/lib/jvm/jdk1.6.0_30/bin/jar
Code:
sudo ln -s /usr/lib/jvm/jdk1.6.0_30/bin/javadoc
We need to ensure that the AOSP build process can locate the JDK, so we will set a variable it uses to locate the JDK.
Code:
nano ~/.bashrc
Add the following lines at the botton:
ANDROID_JAVA_HOME=/usr/lib/jvm/jdk1.6.0_30
export ANDROID_JAVA_HOME
pres CTRL + X then Y to save your changes
Installing dependencies:
Enter these commands exactly as they are listed
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 lib32readline-gplv2-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc pngcrush
Just to be sure reboot
Setting up and syncing Gummy’s Repo
Enter the commands in the terminal exactly as they are displayed to setup your PATH
Code:
mkdir ~/bin
Code:
PATH=~/bin:$PATH
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
Code:
chmod a+x ~/bin/repo
Create your Gummy source directory and then go to that directory
Code:
mkdir ~/Gummy
Code:
cd ~/Gummy
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)
Code:
repo init -u https://github.com/teamgummy/platform_manifest.git -b master
Code:
repo sync -jX
Take a break and enjoy an ice cold beer
Go to the fridge
Pull out your favorite brand of beer
Open with care
Drink with pleasure
Otherwise its going to take a while ( a long while )
Preparing to Gummy and compiling
Get prebuilts (Term)
Code:
cd ~/Gummy/vendor/Gummy
Code:
./get-prebuilts
Code:
cd ~/Gummy
Compile (dont forget the . and also make sure you again change the X to the number of cores you have)
Code:
. build/envsetup.sh && lunch Gummy_toro-userdebug && make gummy -jX

Thanks for the guide I will try to play with this
Sent from my Galaxy Nexus using xda premium

You realize steps 2.3, 3.1 and 4.1 can all be combined into one?

I have added the lucid partner repo, did apt-get update and the extra needed packages still don't want to install. It says they're missing. On Ubuntu 10.04 everything is updated.

donlad said:
I have added the lucid partner repo, did apt-get update and the extra needed packages still don't want to install. It says they're missing. On Ubuntu 10.04 everything is updated.
Click to expand...
Click to collapse
are you using 10.04 64 bit?? I know stupid questions but I need to ask.

kejar31 said:
are you using 10.04 64 bit?? I know stupid questions but I need to ask.
Click to expand...
Click to collapse
Nope I'm using 32-bit
Edit: I also checked in software sources to make sure the repo was added correctly and it was.

donlad said:
Nope I'm using 32-bit
Edit: I also checked in software sources to make sure the repo was added correctly and it was.
Click to expand...
Click to collapse
you will need to use 64 bit... Sorry I should have included that in the OP... Will update now.
To compile android on anything above 2.3 you need to compile it on a 64 bit OS

kejar31 said:
you will need to use 64 bit... Sorry I should have included that in the OP... Will update now.
To compile android on anything above 2.3 you need to compile it on a 64 bit OS
Click to expand...
Click to collapse
Well that's a bit of a letdown..because I went ahead and let it sync your repo last night. lol.
Oh well...

donlad said:
Nope I'm using 32-bit
Edit: I also checked in software sources to make sure the repo was added correctly and it was.
Click to expand...
Click to collapse
Ive heard that youll need a 64-bit to do this from TMartin...
Sent from my Galaxy Nexus

ok updated the original OP to include how to compile on Ubuntu 11.10..
As an fyi you should always use the 64bit version of Ubuntu

Related

[TUTORIAL] How to Compile Gummy for Maguro

Compiling Gummy
All work here is done from Ubuntu 10.04.. Newer releases may require slightly different packages.
Installing dependencies:
Install Ubuntu 10.04 and install all updates
Install Java SDK (type or copy the commands into the terminal exactly as you see them here )
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner”
Code:
sudo apt-get update
Code:
sudo apt-get install sun-java6-jdk
Install Git
Code:
sudo apt-get install git-core
Install the rest of the needed files
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
Enter the commands in the terminal exactly as they are displayed to setup your PATH
Code:
mkdir ~/bin
Code:
PATH=~/bin:$PATH
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
Code:
chmod a+x ~/bin/repo
Create your Gummy source directory and then go to that directory
Code:
mkdir ~/Gummy
Code:
cd ~/Gummy
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)
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
Code:
repo sync -jX
Take a break and enjoy an ice cold beer
Go to the fridge
Pull out your favorite brand of beer
Open with care
Drink with pleasure
Otherwise its going to take a while ( a long while )
Preparing to Gummy and compiling
Get prebuilts (Term)
Code:
cd ~/Gummy/vendor/Gummy
Code:
./get-prebuilts
Code:
cd ~/Gummy
Compile (dont forget the . and also make sure you again change the X to the number of cores you have)
Code:
. build/envsetup.sh && lunch Gummy_maguro-userdebug && make gummy -jX
Great work. Really appreciate the open-source spirit!
I'd just like to add that for folks with hyper-threaded processors (most newer Intel chips), it's faster if X is double the number of physical cores and you can even try doubling that again to find the fastest build times. In my limited testing, I was getting faster build times with -j4 compared to -j2 on my AMD dual-core system. YMMV and I'm sure there are a lot of factors involved.
From AOSP (http://source.android.com/source/building.html):
"Build everything with make. GNU make can handle parallel tasks with a -jN argument, and it's common to use a number of tasks N that's between 1 and 2 times the number of hardware threads on the computer being used for the build. E.g. on a dual-E5520 machine (2 CPUs, 4 cores per CPU, 2 threads per core), the fastest builds are made with commands between make -j16 and make -j32."

[TUTORIAL] How to Compile Gummy for Crespo4G

Compiling Gummy
All work here is done from Ubuntu 10.04.. Newer releases may require slightly different packages.
Installing dependencies:
Install Ubuntu 10.04 and install all updates
Install Java SDK (type or copy the commands into the terminal exactly as you see them here )
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner”
Code:
sudo apt-get update
Code:
sudo apt-get install sun-java6-jdk
Install Git
Code:
sudo apt-get install git-core
Install the rest of the needed files
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
Enter the commands in the terminal exactly as they are displayed to setup your PATH
Code:
mkdir ~/bin
Code:
PATH=~/bin:$PATH
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
Code:
chmod a+x ~/bin/repo
Create your Gummy source directory and then go to that directory
Code:
mkdir ~/Gummy
Code:
cd ~/Gummy
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)
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
Code:
repo sync -jX
Take a break and enjoy an ice cold beer
Go to the fridge
Pull out your favorite brand of beer
Open with care
Drink with pleasure
Otherwise its going to take a while ( a long while )
Preparing to Gummy and compiling
Get prebuilts (Term)
Code:
cd ~/Gummy/vendor/Gummy
Code:
./get-prebuilts
Code:
cd ~/Gummy
Compile (dont forget the . and also make sure you again change the X to the number of cores you have)
Code:
. build/envsetup.sh && lunch Gummy_crespo4g-userdebug && make gummy -jX
Nice! Thanks for this
(First)
•°NS4G • ICS°•
2nd!
Now THIS is something... Awesome...Thanks man!
Thanks bro! Gonna try this on my PC tonight
Sent from my IceCreamSammich Nexus S 4G

{GUIDE} How To Compile Cyanogenmod 9 From Source For LGE P350

How to Compile Cyanogenmod 9 For LGE P350 ​
Kindly post only something useful,do not spam.
Guys As Our Team Members Are Not Having Enough Powerful Computer to Build ICS. We need Some Compilers So You can help us By Compiling ICS for our device. Im giving a Brief Guide on setting up your Development Computer. But first you need To Check your PC pass this Requirements :
RAM : Minimum 4 Gigs
Hard Disk : Minimum 50 GB Free
Processor : Intel core i3 ( any processors near to that will work )
Internet Speed : Minimum it is should be 2 MBPS ( You Gonna Download 8-9 Sources Once ) ( Only Once )
OS : Linux ( Ubuntu 10.04 , Ubuntu 10.10 , Ubuntu 11.04 , Ubuntu 11.10 , Ubuntu 12.04) ( 64 Bit ) ( If you don't have you can Install it with this guide )
You Should be Ready to Compile
Click to expand...
Click to collapse
Here is Quick Guide Setting Up Your Computer For Development Computer :
For Using Ubuntu 10.04 64 bit For Development Use this Link :
Download Ubuntu For Your Computer From here : http://releases.ubuntu.com/lucid/ubuntu-10.04.4-desktop-amd64.iso
Click to expand...
Click to collapse
For Using Ubuntu 10.10 64 Bit For Development Use this Link :
Download Ubuntu 10.10 For Your Computer From Here : http://releases.ubuntu.com/maverick/ubuntu-10.10-desktop-amd64.iso
Click to expand...
Click to collapse
For Using Ubuntu 11.04 64 Bit For Development Use this Link
Download Ubuntu 11.04 For Your Computer From Here : http://releases.ubuntu.com/natty/ubuntu-11.04-desktop-amd64.iso
Click to expand...
Click to collapse
For Using Ubuntu 11.10 64 Bit For Development Use this Link :
Download Ubuntu 11.10 For Your Computer From Here : http://releases.ubuntu.com/oneiric/ubuntu-11.10-desktop-amd64.iso
Click to expand...
Click to collapse
For Using Ubuntu 12.04 64 Bit For Development Use this Link :
Download Ubuntu 12.04 For Your Computer From Here : http://releases.ubuntu.com/precise/ubuntu-12.04-desktop-amd64.iso
Click to expand...
Click to collapse
"After Getting It Downloaded You Need To Make It bootable With Pen Drive Or Burning CD or DVD I think you can do this stuff without guide "
So At the Time Of Installation You Will Need To Set up Your Partition In that You Need To Give Home Drive around 50 GB ! Please Google on how to give 50 gb to Home drive in Ubuntu
After Getting Your Ubuntu Ready !! Now You need To set up Your PC for Android Development So Follow this Steps :
Follow Next Post For Setting Up Your Development Computer
Setting Up Your Development Computer !!!!
​
After Getting Your Ubuntu Ready !! Now You need To set up Your PC for Android Development So Follow these Steps :
Python Setup: First Of all Open Terminal.
Hit ctrl + alt + T
or you can go through your applications to open it
Now You Need To Copy and Paste this Commands At Terminal :
Code:
sudo apt-get install build-essential gcc
cd Downloads
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
Note: You may be asked for password when you do sudo make install
Now Python Is configured !!!!
TIME FOR SUN JAVA 6 JDK.
CODES TO EXECUTE IN TERMINAL :
Note: This doesn't work on Ubuntu 12.04
Code:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
If You Are Using Ubuntu 12.04 you must do this instead:
download jdk 6
once downloaded, cd to where it is downloaded
e.g.
Code:
cd ~/Downloads
then type these commands
Code:
chmod +x jdk-6u34-linux-x64.bin
sudo ./jdk-6u34-linux-x64.bin
sudo mv jdk1.6.0_34 /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_34/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_34/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_34/bin/javaws 1
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
Guys Now Java JDK 6 is Installed !
to check it is installed:
Code:
java -version
the output should be
Code:
java version "1.6.0_34"
Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.9-b04, mixed mode)
NOW GNU Make :
Codes For Terminal :
Code:
cd
wget -o make.tar.gz http://ftp.gnu.org/gnu/make/make-3.82.tar.gz
tar -xvzf make-3.82.tar.gz
cd make-3.82
./configure
sudo make install
Now Make GNU is installed !!!
Now We are going to install some of the dependencies...
Codes For Terminal :
Apply First This Code In Every Ubuntu Version :
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 xsltproc gedit git schedtool
export USE_CCACHE=1
If You Are Using Ubuntu 10.10 Apply this Command too :
Code:
sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
If You are Using Ubuntu 11.04 Apply this command too :
Code:
sudo apt-get install libx11-dev:i386
If you are Using Ubuntu 12.04 Use Need To Use this Command too :
Code:
sudo apt-get install libncurses5-dev:i386 libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 zlib1g-dev:i386
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
TIME FOR SDK AND ADB
SDK :
download SDK for linux (i386) from this link
extract it to Home folder (or another folder as long as there are no spaces in any of the folder names)
When you have extracted it, change the folder name from "android-sdk-linux" to "sdk".
Open Terminal And Excuete This Code :
Code:
cd ~/sdk/tools/
./android sdk
When you run this, a window will pop up. You only need to install the packages "Android SDK Tools" and "Android SDK Platform-tools". Just check these two items and install them.And Let the process complete .
ADB:
Now run this command to see if your adb works. You have to have your android device connected, of course. and put your device in debugging mode.
CODE :
Code:
cd ~/sdk/platform-tools
./adb devices
NOW AFTER APPLYING THIS CODES IF U SEE THE OUTPUT AS BELOW GIVEN :
Code:
List of devices attached 0123456789ABCDEF device (SIMILAR TO THIS)
Well, if you do, yay you're done. You have working adb!
OR IF U SEE THIS TYPE OF OUTPUT THEN FOLLOW SOME MORE STEPS
Code:
List of devices attached ???????????? no permissions
THEN USE THIS:
Give Permission to the Device
Now, you create a file:
FOR CREATING OPEN THE TERMINAL AND TYPE DOWN GIVEN COMANDS
Code:
sudo -i
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/51-android.rules
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/99-android.rules
exit
sudo chmod a+r /etc/udev/rules.d/99-android.rules
sudo chmod a+r /etc/udev/rules.d/51-android.rules
Now you restart adb and udev service to make the change.
CODES TO EXCUETE IN TERMINAL :
Code:
cd ~/sdk/platform-tools
sudo service udev restart
sudo ./adb kill-server
sudo ./adb start-server
RESTART UBUNTU AND START SDK
Code:
cd ~/sdk/platform-tools
./adb devices
NOW AFTER APPLYING THIS CODES IF U SEE THE OUTPUT AS BELOW GIVEN :
Code:
List of devices attached 0123456789ABCDEF device (SIMILAR TO THIS )
NOW YOUR ADB IS CONFIGURED. IF ANY PROBLEMS, JUST COMMENT HERE
5. Add the Path to the System (IMPORTANT STEP )
CODES TO EXCUETE IN TERMINAL :
Code:
sudo echo "export PATH=${PATH}:~/sdk/tools" >> .bashrc
sudo echo "export PATH=${PATH}:~/sdk/platform-tools " >> .bashrc
Now this Should Get your ADB working from any location. If it Says ADB command not found then Just Comment here
to test open terminal and type:
Code:
adb devices
Now your Computer is Ready For Android Development !!!
Now We Will Download The REPO and Set it Up ​[/QUOTE]
Now We will Download The Repo
​
Codes to type in Terminal :
Code:
mkdir ~/bin
PATH=~/bin:$PATH
sudo apt-get install curl
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Now Follow this Post To Download CyanogenMod 9 Source Code <<<<<<<<<=======================================http://forum.xda-developers.com/showpost.php?p=29364895&postcount=4
Guys Now we Download ICS ( CyanogenMod 9 Source Code )​
Code:
mkdir source
cd source
repo init -u git://github.com/PecanCM/android.git -b ics
Code:
sudo sysctl -w net.ipv4.tcp_window_scaling=0
repo sync -jX ( x = increase it as much as you want to have parrarel downloads ;) )
Source Code is Around 6 - 7 GB So Time For Downloading is According To Your Internet Speed and Server Load
Click to expand...
Click to collapse
Guys Now Open This Post To Start ICS Compilation <<<<<<<<<===========================http://forum.xda-developers.com/showpost.php?p=29452678&postcount=6
Compilation
Guys Now We will Compile Start ICS compilation ​
Follow this Commands to Start ICS Compilation :
Code:
cd source/vendor/cm
./get-prebuilts
cd ../../..
. build/envsetup.sh && brunch p350
Now Android is Building . You Gonna Go and Watch Some Movies Or Even Have your Sleep ! At The End You Will Get Zip and it's Path Written in Terminal. Just copy it To SD card and Flash it And Give us Results
Bugs Still There :
CAMERA ( YEAH IT IS BACK )
HD GAMES
Stock Gallery
Progress :
Touch
Baseband
HW
2D
Gralloc
Sensors
Bluetooth
.35 Kernel
Call
Data
and Much More
We Can Fix them Soon With your Support So Guys Please Help Us By Compiling ICS
Guys Please Compile ICS For our Device and Help Us And Give us Reports
Will try to use it later hehe But Guide is Updated
Guys Please Start Compilation Now Ubuntu From 10.04 , 10.10 , 11.04 , 11.10 , 12.04 Versions are Supported with This Guide So Please Start Compilation
Ubuntu 10.04 , 10.10 , 11.04 , 11.10 , 12.04 Support Added !
Waiting For First Build !!
Please Some One Compile with This Guide !!!
Request Help
rom2maru said:
wGuys Now we Download ICS ( CyanogenMod 10 Source Code )​
m not able to install sun java- says some fiiles are ignored and having problem in installing gnu...well i hv installed ubuntu 12.04 desktop amd64
Click to expand...
Click to collapse
Guyss Im Working on New Device Folder I hope i think this time it will be faster with wifi working
Can you post the perfect error so only i can help
Guys JAVA 6 Was Having Problem with Ubuntu 12.04 So Now that problem is solved Have a View
rom2maru said:
Now We are going to install some of the dependies...
Codes For Terminal :
Apply First This Code In Every Ubuntu Version :
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 xsltproc
Click to expand...
Click to collapse
"lib32readline5-dev" is unavailable on ubuntu 11.10. needs to be "lib32readline-gplv2-dev" instead
"lib32z-dev" is unavailable on 11.10. needs to be "lib32z1-dev"
new code?
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 lib32readline-gplv2-dev lib32z1-dev \ libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \ libxml2-utils xsltproc
Also get these
Code:
E: Unable to locate package zip
E: Unable to locate package x11proto-core-dev
E: Unable to locate package libgl1-mesa-dev
E: Unable to locate package libxml2-utils
the packages show up through synaptic package manager, so I installed through that instead. if I run again, I still get the above code
good work
thanks hit-ed
rewrite of post 2
I've rewritten the entire second post for you because I found many mistakes in it. Just hit reply, and copy everything
Setting Up Your Development Computer !!!!
​
After Getting Your Ubuntu Ready !! Now You need To set up Your PC for Android Development So Follow these Steps :
Python Setup: First Of all Open Terminal.
Hit ctrl + alt + T
or you can go through your applications to open it
Now You Need To Copy and Paste this Commands At Terminal :
Code:
sudo apt-get install build-essential gcc
cd Downloads
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
Note: You may be asked for password when you do sudo make install
Now Python Is configured !!!!
TIME FOR SUN JAVA 6 JDK.
CODES TO EXECUTE IN TERMINAL :
Note: This doesn't work on Ubuntu 12.04
Code:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
If You Are Using Ubuntu 12.04 you must do this instead:
first we download the required binary:
Code:
wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin"
then we need to run the binary, and move it to a shared location
Code:
chmod +x jdk-6u45-linux-x64.bin
sudo ./jdk-6u45-linux-x64.bin
sudo mv jdk1.6.0_45 /usr/lib/jvm/
finally, all the needed java binaries need to be installed, and given the highest priority. This will override any other java versions you have
Code:
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_45/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_45/bin/javaws 1
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_45/bin/jar 1
sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.6.0_45/bin/javadoc 1
now check that jdk1.6.0_45 is selected on these
Code:
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
sudo update-alternatives --config jar
sudo update-alternatives --config javadoc
Guys Now Java JDK 6 is Installed !
to check it is installed:
Code:
java -version
the output should be similar to this
Code:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
NOW GNU Make :
Codes For Terminal :
Code:
cd
wget -o make.tar.gz http://ftp.gnu.org/gnu/make/make-3.82.tar.gz
tar -xvzf make-3.82.tar.gz
cd make-3.82
./configure
sudo make install
Now Make GNU is installed !!!
Now We are going to install some of the dependencies...
Codes For Terminal :
Apply First This Code In Every Ubuntu Version :
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 lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc gedit git schedtool
export USE_CCACHE=1
If You Are Using Ubuntu 10.10 Apply this Command too :
Code:
sudo apt-get install lib32readline5-dev
sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
If You are Using Ubuntu 11.04 Apply this command too :
Code:
sudo apt-get install libx11-dev:i386 lib32readline5-dev
If you are Using Ubuntu 12.04 Use Need To Use this Command too :
Code:
sudo apt-get install libncurses5-dev:i386 libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 zlib1g-dev:i386 lib32readline-gplv2-dev
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
TIME FOR SDK and ADB
SDK (optional) :
download SDK for linux (i386) from this link
extract it to Home folder (or another folder as long as there are no spaces in any of the folder names)
When you have extracted it, change the folder name from "android-sdk-linux" to "sdk".
Open Terminal And Excuete This Code :
Code:
cd ~/sdk/tools/
./android sdk
When you run this, a window will pop up. You only need to install the packages "Android SDK Tools" and "Android SDK Platform-tools". Just check these two items and install them.And Let the process complete .
ADB:
install ADB using this command
Code:
sudo apt-get install android-tools-adb
NOW AFTER APPLYING THIS CODES IF U SEE THE OUTPUT AS BELOW GIVEN :
Code:
List of devices attached 0123456789ABCDEF device (SIMILAR TO THIS)
Well, if you do, yay you're done. You have working adb!
OR IF U SEE THIS TYPE OF OUTPUT THEN FOLLOW SOME MORE STEPS
Code:
List of devices attached ???????????? no permissions
THEN USE THIS:
Give Permission to the Device
Now, you create a file:
FOR CREATING OPEN THE TERMINAL AND TYPE DOWN GIVEN COMANDS
Code:
sudo -i
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/51-android.rules
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/99-android.rules
exit
sudo chmod a+r /etc/udev/rules.d/99-android.rules
sudo chmod a+r /etc/udev/rules.d/51-android.rules
Now you restart adb and udev service to make the change.
CODES TO EXCUETE IN TERMINAL :
Code:
sudo adb kill-server
sudo adb start-server
Code:
adb devices
NOW AFTER APPLYING THIS CODES IF U SEE THE OUTPUT AS BELOW GIVEN :
Code:
List of devices attached 0123456789ABCDEF device (SIMILAR TO THIS )
NOW YOUR ADB IS CONFIGURED. IF ANY PROBLEMS, JUST COMMENT HERE
Now your Computer is Ready For Android Development !!!
Optional extra
You can also install android fastboot using this command
Code:
sudo apt-get install android-tools-fastboot
Now We Download The REPO and Set it Up ​
I think mine was easier anyway thanks
But no one is compiling
Sent from my LG-P500 using xda premium
rom2maru said:
I think mine was easier anyway thanks
But no one is compiling
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
When I say mistakes I mean mistakes in the scripts as well. Mine involves less steps
I understand if you don't like the commands I used for the adb part, but the rest can be changed at least.
I also said I'm building today
Sent from my LG-P350 using xda app-developers app

[GUIDE] Compile Cyanogenmod 7 For LGE P350

How to Compile Cyanogenmod 7 For LGE P350 ​
Kindly post only something useful,do not spam.
Compiling Gingerbread for our device. I'm giving a Brief Guide on Setting up your Development Computer. But first you need To Check your PC pass this Requirements :
RAM : Minimum 4 Gigs
Hard Disk : Minimum 50 GB Free
Processor : Intel core2duo or dual core or above ( any processors near to that will work )
Internet Speed : Minimum it is should be 2 MBPS ( You Gonna Download 4-5 GB Once ) ( Only Once )
OS : Linux ( Ubuntu 10.04 , Ubuntu 10.10 , Ubuntu 11.04 , Ubuntu 11.10 , Ubuntu 12.04) ( 64 Bit ) ( If you don't have you can Install it with this guide )
You Should be Ready to Compile
Click to expand...
Click to collapse
Here is Quick Guide Setting Up Your Computer For Development Computer :
For Using Ubuntu 10.04 64 bit For Development Use this Link :
Download Ubuntu For Your Computer From here : http://releases.ubuntu.com/lucid/ubuntu-10.04.4-desktop-amd64.iso
Click to expand...
Click to collapse
For Using Ubuntu 10.10 64 Bit For Development Use this Link :
Download Ubuntu 10.10 For Your Computer From Here : http://releases.ubuntu.com/maverick/ubuntu-10.10-desktop-amd64.iso
Click to expand...
Click to collapse
For Using Ubuntu 11.04 64 Bit For Development Use this Link
Download Ubuntu 11.04 For Your Computer From Here : http://releases.ubuntu.com/natty/ubuntu-11.04-desktop-amd64.iso
Click to expand...
Click to collapse
For Using Ubuntu 11.10 64 Bit For Development Use this Link :
Download Ubuntu 11.10 For Your Computer From Here : http://releases.ubuntu.com/oneiric/ubuntu-11.10-desktop-amd64.iso
Click to expand...
Click to collapse
For Using Ubuntu 12.04 64 Bit For Development Use this Link :
Download Ubuntu 12.04 For Your Computer From Here : http://releases.ubuntu.com/precise/ubuntu-12.04-desktop-amd64.iso
Click to expand...
Click to collapse
"After Getting It Downloaded You Need To Make It bootable With Pen Drive Or Burning CD or DVD I think you can do this stuff without guide "
So At the Time Of Installation You Will Need To Set up Your Partition In that You Need To Give Home Drive around 50 GB ! Please Google on how to give 50 gb to Home drive in Ubuntu
After Getting Your Ubuntu Ready !! Now You need To set up Your PC for Android Development So Follow this Steps :
Follow Next Post For Setting Up Your Development Computer
Setting Up Your Development Computer !!!!
​
After Getting Your Ubuntu Ready !! Now You need To set up Your PC for Android Development So Follow these Steps :
Python Setup: First Of all Open Terminal.
Hit ctrl + alt + T
or you can go through your applications to open it
Now You Need To Copy and Paste this Commands At Terminal :
Code:
sudo apt-get install build-essential gcc
cd Downloads
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
Note: You may be asked for password when you do sudo make install
Now Python Is configured !!!!
TIME FOR SUN JAVA 6 JDK.
CODES TO EXECUTE IN TERMINAL :
Note: This doesn't work on Ubuntu 12.04
Code:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
If You Are Using Ubuntu 12.04 you must do this instead:
download jdk 6
once downloaded, cd to where it is downloaded
e.g.
Code:
cd ~/Downloads
then type these commands
Code:
chmod +x jdk-6u34-linux-x64.bin
sudo ./jdk-6u34-linux-x64.bin
sudo mv jdk1.6.0_34 /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_34/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_34/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_34/bin/javaws 1
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
Guys Now Java JDK 6 is Installed !
to check it is installed:
Code:
java -version
the output should be
Code:
java version "1.6.0_34"
Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.9-b04, mixed mode)
NOW GNU Make :
Codes For Terminal :
Code:
cd
wget -o make.tar.gz http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
tar -xvzf make-3.81.tar.gz
cd make-3.81
./configure
sudo make install
Now Make GNU is installed !!!
Now We are going to install some of the dependencies...
Codes For Terminal :
Apply First This Code In Every Ubuntu Version :
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 xsltproc gedit git schedtool
export USE_CCACHE=1
If You Are Using Ubuntu 10.10 Apply this Command too :
Code:
sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
If You are Using Ubuntu 11.04 Apply this command too :
Code:
sudo apt-get install libx11-dev:i386
If you are Using Ubuntu 12.04 Use Need To Use this Command too :
Code:
sudo apt-get install libncurses5-dev:i386 libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 zlib1g-dev:i386
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
TIME FOR SDK AND ADB
SDK :
download SDK for linux (i386) from this link
extract it to Home folder (or another folder as long as there are no spaces in any of the folder names)
When you have extracted it, change the folder name from "android-sdk-linux" to "sdk".
Open Terminal And Excuete This Code :
Code:
cd ~/sdk/tools/
./android sdk
When you run this, a window will pop up. You only need to install the packages "Android SDK Tools" and "Android SDK Platform-tools". Just check these two items and install them.And Let the process complete .
ADB:
Now run this command to see if your adb works. You have to have your android device connected, of course. and put your device in debugging mode.
CODE :
Code:
cd ~/sdk/platform-tools
./adb devices
NOW AFTER APPLYING THIS CODES IF U SEE THE OUTPUT AS BELOW GIVEN :
Code:
List of devices attached 0123456789ABCDEF device (SIMILAR TO THIS)
Well, if you do, yay you're done. You have working adb!
OR IF U SEE THIS TYPE OF OUTPUT THEN FOLLOW SOME MORE STEPS
Code:
List of devices attached ???????????? no permissions
THEN USE THIS:
Give Permission to the Device
Now, you create a file:
FOR CREATING OPEN THE TERMINAL AND TYPE DOWN GIVEN COMANDS
Code:
sudo -i
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/51-android.rules
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/99-android.rules
exit
sudo chmod a+r /etc/udev/rules.d/99-android.rules
sudo chmod a+r /etc/udev/rules.d/51-android.rules
Now you restart adb and udev service to make the change.
CODES TO EXCUETE IN TERMINAL :
Code:
cd ~/sdk/platform-tools
sudo service udev restart
sudo ./adb kill-server
sudo ./adb start-server
RESTART UBUNTU AND START SDK
Code:
cd ~/sdk/platform-tools
./adb devices
NOW AFTER APPLYING THIS CODES IF U SEE THE OUTPUT AS BELOW GIVEN :
Code:
List of devices attached 0123456789ABCDEF device (SIMILAR TO THIS )
NOW YOUR ADB IS CONFIGURED. IF ANY PROBLEMS, JUST COMMENT HERE
5. Add the Path to the System (IMPORTANT STEP )
CODES TO EXCUETE IN TERMINAL :
Code:
sudo echo "export PATH=${PATH}:~/sdk/tools" >> .bashrc
sudo echo "export PATH=${PATH}:~/sdk/platform-tools " >> .bashrc
Now this Should Get your ADB working from any location. If it Says ADB command not found then Just Comment here
to test open terminal and type:
Code:
adb devices
Now your Computer is Ready For Android Development !!!
Now We will Download The Repo
​
Codes to type in Terminal :
Code:
mkdir ~/bin
PATH=~/bin:$PATH
sudo apt-get install curl
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Guys Now we will Download CyanogenMod 7 Source Code​
Code:
mkdir source
cd source
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Code:
sudo sysctl -w net.ipv4.tcp_window_scaling=0
repo sync -jX ( x = increase it as much as you want to have parrarel downloads ;) )
Source Code is Around 4 - 5 GB So Time For Downloading is According To Your Internet Speed and Server Load
Click to expand...
Click to collapse
Get Proprietaries for LGE P350
Now we are Having Source Code Of CM7 Now we Will Get Proprietaries for LGE P350
Note : You need to have CM7 Based Rom Flashed On Your Phone
Click to expand...
Click to collapse
Codes For Terminal :
Code:
cd source
. build/envsetup.sh && brunch p350
Now it will fetch device folder
When it completes fetching Press CTRL+C
cd device/lge/p350
Now Connect your phone and make sure usb debugging is enabled ;)
./extract-files.sh
cd ../../..
cd vendor/cyanogen
chmod 777 get-rommanager
./get-rommanager
cd ../..
Now You Are Ready to Start Compilation of CM7 ​
Guys Now We will Compile Start CM7 compilation ​
Follow this Commands to Start CM7 Compilation :
Code:
. build/envsetup.sh && brunch p350
Now Android is Building . You Gonna Go and Watch Some Movies Or Even Have your Sleep ! At The End You Will Get Zip and it's Path Written in Terminal. Just copy it To SD card and Flash it And Give us Results
Reserved for Getting Thanks hehe just kiddin
And Yeah Please Don't PM with Errors ! Just Reply Here for Fixing Them Otherwise They will be simply moved to trash
GB
First build tomorrow ....
Adb installed, I type "./adb
devices" and are the "???????????" I enter
a
Code:
sudo -i
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/51
echo "SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"" >> /etc/udev/rules.d/99
exit
sudo chmod a+r /etc/udev/rules.d/99-android.rules
sudo chmod a+r /etc/udev/rules.d/51-android.rules
next
Code:
cd ~/sdk/platform-tools
sudo service udev restart
sudo ./adb kill-server
sudo ./adb start-server
Restart Ubuntu, fits " cd ~/sdk/platform-tools
./adb devices " and then there are those "????????". Phone connected in debug mode. Sorry my bad English
type only adb devices and does it come up ?
check it
rom2maru said:
Code:
cd source
. build/envsetup,sh && brunch p350
Click to expand...
Click to collapse
its something . build/envsetup.sh ( check it as you applied as (,) than using (.) at sh
yeaah it is my typo thanks for informing i ll fix it
If interrupted collection Repo or one can to continue? Do I have to charge of the new?
I don't get you bro
Configure for UBUNTU 12.10
Setting Up Your Development Computer for ubuntu 12.10 ( latest )
Python Setup: First Of all Open Terminal.
Hit ctrl + alt + T
or you can go through your applications to open it ( the same keyur given )
Code:
sudo apt-get install build-essential gcc
cd Downloads
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
Dont forget to update to new version of python (with ubuntu updater)
First you need to apply this command toward terminal
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 lib32readline-gplv2-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc gedit git schedtool
Something like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and then enter it takes few time to set up
Time to setup the java
Note: This is only for ubuntu 12.10
Code:
sudo add-apt-repository ppa:webupd8team/java
like this
and then
Code:
sudo apt-get update && sudo apt-get install oracle-java6-installer
like this
It takes few fime to setup and youcan find them here on ubuntu search like here
or type
Code:
java -version
in terminal you can view like this
In case if you missed any thing try this
Code:
sudo apt-get install git-core libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev ia32-libs lib32z1-dev lib32ncurses5-dev gcc-multilib g++-multilib
For sdk follow up the same configure that keyur given up here (nothing differ with version of ubuntu ) click here
Congratulations now your ubuntu 12.10 is configured for cm7 or cm9
If you face any problem just report us i will try my level best
I hope ubuntu 12.10 is best ever i experienced for good compilation for me may be you too
NOW GNU Make :
Codes For Terminal :
Code:
cd
wget -o make.tar.gz http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
tar -xvzf make-3.81.tar.gz
cd make-3.81
./configure
sudo make install
Now Make GNU is installed !!!
Click to expand...
Click to collapse
keyur delete this stuff this will affect the processing core system so that you cannot build any thing (i found the review a not to use)..
Closed at OP's request

[GUIDE]How to Build your own CM11 from Local sources for the Galaxy Fame

Hello guys, since I don't have the time of the world to finish easily the cm11 project because of school I am posting here the updated guide to compile CM11 so Fame Dev's could like finish the project and make an fully working cyanogenmod :good:
Overview
I. Preparation
II. Installation of the required packages
III. Installing Java
IV. The sources
V. Building the ROM
VI. Rebuilding with newest sources
VII. Galaxy Fame Build menu
I. Preparation
Things you need for building:
A computer
An internet connection
An open mind
Time
Patience
First of all, you need a running up-to-date Ubuntu/Linux system. I am using Ubuntu 14.04 64-bit.
Use the terminal to make the steps. A terminal window can be opened by pressing Ctrl+Alt+T. Every single command for the terminal is marked with a $ sign. Just paste every command (without the $ sign) to your terminal window and there shouldn't be any problem.
IMPORTANT: INSTALL EVERYTHING AS A NORMAL USER. DON'T INSTALL AS ROOT!
II. Installation of the required packages (Ubuntu 13.10 64-bit)
Install packages:
Code:
$ sudo apt-get install bison build-essential curl flex \
g++-multilib gcc-multilib git-core gnupg gperf \
lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev \
libesd0-dev libncurses5-dev libsdl1.2-dev \
libwxgtk2.8-dev libxml2 libxml2-utils lzop \
openjdk-6-jdk openjdk-6-jre pngcrush schedtool \
squashfs-tools xsltproc zip zlib1g-dev
III. Installing Java
[/FONT]
You need a version 6 Java Development Kit for building CM11.0. Usually, the SUN JDK 6 is recommended. But there is another way: you can use the OpenJDK 6. When you installed the required packages as described above, you will just need to configure your Java installation.
Check your Java version:
Code:
$ java -version
Verify the symlinks. Javac, Java, Javaws, Javadoc, Javah, Javap and Jar should all point to the right Java location and version:
Code:
$ ls -la /etc/alternatives/java* && ls -la /etc/alternatives/jar
If they are pointing to the wrong versions you have to change that to OpenJDK6.
Select the default Java version for your system:
Code:
$ sudo update-alternatives --config javac
$ sudo update-alternatives --config java
$ sudo update-alternatives --config javaws
$ sudo update-alternatives --config javadoc
$ sudo update-alternatives --config javah
$ sudo update-alternatives --config javap
$ sudo update-alternatives --config jar
That's it.
IV. The sources
Install repo:
Repo is a tool that makes it quite easy to download and maintain the sources of Cyanogenmod.
Code:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ cd ~/bin
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
Create the working directory:
Code:
$ mkdir ~/cm11
$ cd ~/cm11
Initialize Repo:
Code:
$ repo init -u http://github.com/CyanogenMod/android.git -b cm-11.0
and enter your credentials.
Download the sources:
Code:
$ repo sync
Wait until it's finished - takes some time to download the hefty 15-35 GB of source code!
Have a break, have a KitKat!
If the process hangs use Ctrl+C to break out of it and resume the download with another
Code:
$ repo sync
If you are running into a lot of syncing errors the reason might be that the 'repo sync' command is establishing four threads automatically. This might be too much. So try to change the command to run with one thread only by using
Code:
$ repo sync -j1
Initialize the environment
Code:
$ . build/envsetup.sh
Obtain the proprietary files:
create a file with the name local_manifest.xml in the local_manifests directory. To see this directory, you have to press Ctrl-H in your file manager.
Use this code
Code:
$ gedit ~/cm11/.repo/local_manifests/local_manifest.xml
Paste the following lines to the editor
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="wulsic/android_device_samsung_nevisp.git" path="device/samsung/nevisp" remote="github" revision="cm-11.0"/>
<project name="wulsic/android_vendor_samsung_nevisp.git" path="vendor/samsung/nevisp" remote="github" revision="master"/>
<project name="wulsic/android_kernel_samsung_nevispcm11.git" path="kernel/samsung/nevisp" remote="github" revision="master"/>
<project name="wulsic/android_patchesnevisp.git" path="patches" remote="github" revision="cm-11.0"/>
</manifest>
Save the file.
Run
Code:
$ repo sync
again to get the files needed.
Download the necessary prebuilts from cyanogenmod by running
Code:
$ cd ~/cm11/vendor/cm
$ . get-prebuilts
$ croot
And you're done!
V. Building the ROM
Now build it:
Code:
$ brunch nevisp
And the building process starts. Now have patience. Building takes around half an hour on fast systems and a lot more on older and slower machines.
When everything worked as it should you will find your new ROM-image in ~/cm11/out/target/product/nevisp
It is called cm-11-DATE-NIGHTLY-nevisp-zip. You can flash it via CWM
VI. Rebuilding with newest sources
Whenever you like to update your sources and build a new version you have to run these four simple commands:
Code:
$ cd ~/cm11
$ repo sync
$ . build/envsetup.sh
$ brunch nevisp
Compiling takes less time than it took for creating the ROM the first time because it's only building new parts while reusing old parts that haven't changed.
VII. Galaxy Fame Build menu
Now that you know how building works but for full functionality on the fame we also need to apply patches. We are going to do this using a simple menu I made to spare time and mistakes.
https://github.com/wulsic/Personalscripstrepository/blob/master/build-nevisp_simple.sh
Open the link and Right click on the raw button and
Save the file in your CM11 directory and rename it to build-nevisp.sh or whatever name is easier/better for you as it doesn't matter.
You can execute this menu by making it executable by going to properties, permissions and allow executing file as program.
or you can open a terminal in the CM11 root folder and execute it by typing:
Code:
. build-nevisp.sh
Usefull addon if you have ubuntu so you can Open terminal in every folder by only right clicking in the folder and selecting open terminal. To get it you have to install it with:
Code:
sudo apt-get install nautilus-open-terminal
Happy building![/QUOTE]
Big thanks to Raum1807 Since this is his guide but modified for the Fame Dev's/People to keep it easier. I had his permission for this.
Stop by his thread and thank him for his guide:good: http://forum.xda-developers.com/nexus-4/general/guide-cm11-how-to-build-cyanogenmod-11-t2515305
Thanks to Google for android and Cyanogenmod well for Cyanogenmod ofcourse ;p
Reserved:
You can flash the cm11 builds by flashing the Selinux enabled Clockworkmod recovery:https://drive.google.com/file/d/0B1u3mnq0nstfWFd5eGVlbHNkaTg/edit?usp=sharing
Or compile a new clockworkmod recovery by yourself since you are already compiling android :good: but I believe this is already automatically done.
Does it work on S6810B?
Sorry my english, I'm Brazilian and do not speak well in English.
by: Google Translate
John Blueh said:
Does it work on S6810B?
Sorry my english, I'm Brazilian and do not speak well in English.
by: Google Translate
Click to expand...
Click to collapse
try it,,yyou just need to change the repo
John Blueh said:
Does it work on S6810B?
Sorry my english, I'm Brazilian and do not speak well in English.
by: Google Translate
Click to expand...
Click to collapse
John blueh I am not sure, the S6810B is dualsim model right? The only thing you have to change then is maybe device model and somethings in the ramdisk related to the device model.
But I could not make cm11 boot yet, probably an ramdisk issue since I am doing it blindly its going harder especially with school.
I hope you could maybe also invest your time in it a bit and make an fully working cm11 only problems so far are related to the kernels ramdisk so far as I know.
I hope google translates this good for you.
i got problem :/ ,,see below
wulsic said:
Hello guys, since I don't have the time of the world to finish easily the cm11 project because of school I am posting here the updated guide to compile CM11 so Fame Dev's could like finish the project and make an fully working cyanogenmod :good:
Overview
I. Preparation
II. Installation of the required packages
III. Installing Java
IV. The sources
V. Building the ROM
VI. Rebuilding with newest sources
I. Preparation
Things you need for building:
A computer
An internet connection
An open mind
Time
Patience
First of all, you need a running up-to-date Ubuntu/Linux system. I am using Ubuntu 14.04 64-bit.
Use the terminal to make the steps. A terminal window can be opened by pressing Ctrl+Alt+T. Every single command for the terminal is marked with a $ sign. Just paste every command (without the $ sign) to your terminal window and there shouldn't be any problem.
IMPORTANT: INSTALL EVERYTHING AS A NORMAL USER. DON'T INSTALL AS ROOT!
II. Installation of the required packages (Ubuntu 13.10 64-bit)
Install packages:
Code:
$ sudo apt-get install bison build-essential curl flex \
g++-multilib gcc-multilib git-core gnupg gperf \
lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev \
libesd0-dev libncurses5-dev libsdl1.2-dev \
libwxgtk2.8-dev libxml2 libxml2-utils lzop \
openjdk-6-jdk openjdk-6-jre pngcrush schedtool \
squashfs-tools xsltproc zip zlib1g-dev
III. Installing Java
[/FONT]
You need a version 6 Java Development Kit for building CM11.0. Usually, the SUN JDK 6 is recommended. But there is another way: you can use the OpenJDK 6. When you installed the required packages as described above, you will just need to configure your Java installation.
Check your Java version:
Code:
$ java -version
Verify the symlinks. Javac, Java, Javaws, Javadoc, Javah, Javap and Jar should all point to the right Java location and version:
Code:
$ ls -la /etc/alternatives/java* && ls -la /etc/alternatives/jar
If they are pointing to the wrong versions you have to change that to OpenJDK6.
Select the default Java version for your system:
Code:
$ sudo update-alternatives --config javac
$ sudo update-alternatives --config java
$ sudo update-alternatives --config javaws
$ sudo update-alternatives --config javadoc
$ sudo update-alternatives --config javah
$ sudo update-alternatives --config javap
$ sudo update-alternatives --config jar
That's it.
IV. The sources
Install repo:
Repo is a tool that makes it quite easy to download and maintain the sources of Cyanogenmod.
Code:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ cd ~/bin
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
Create the working directory:
Code:
$ mkdir ~/cm11
$ cd ~/cm11
Initialize Repo:
Code:
$ repo init -u http://github.com/CyanogenMod/android.git -b cm-11.0
and enter your credentials.
Download the sources:
Code:
$ repo sync
Wait until it's finished - takes some time to download the hefty 15-35 GB of source code!
Have a break, have a KitKat!
If the process hangs use Ctrl+C to break out of it and resume the download with another
Code:
$ repo sync
If you are running into a lot of syncing errors the reason might be that the 'repo sync' command is establishing four threads automatically. This might be too much. So try to change the command to run with one thread only by using
Code:
$ repo sync -j1
Initialize the environment
Code:
$ . build/envsetup.sh
Obtain the proprietary files:
create a file with the name local_manifest.xml in the local_manifests directory. To see this directory, you have to press Ctrl-H in your file manager.
Use this code
Code:
$ gedit ~/cm11/.repo/local_manifests/local_manifest.xml
Paste the following lines to the editor
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="wulsic/android_device_samsung_nevispcm11.git" path="device/samsung/nevisp" remote="github" revision="master"/>
<project name="wulsic/android_vendor_samsung_nevispcm11.git" path="vendor/samsung/nevisp" remote="github" revision="master"/>
<project name="wulsic/android_kernel_samsung_nevispcm11.git" path="kernel/samsung/nevisp" remote="github" revision="master"/>
</manifest>
Save the file. (Replace the device revision with Testing if you want to get my Testing branch.)
Run
Code:
$ repo sync
again to get the files needed.
Download the necessary prebuilts from cyanogenmod by running
Code:
$ cd ~/cm11/vendor/cm
$ . get-prebuilts
$ croot
And you're done!
V. Building the ROM
Now build it:
Code:
$ brunch nevisp
And the building process starts. Now have patience. Building takes around half an hour on fast systems and a lot more on older and slower machines.
When everything worked as it should you will find your new ROM-image in ~/cm11/out/target/product/nevisp
It is called cm-11-DATE-UNOFFICIAL-nevisp-zip. You can flash it via CWM
VI. Rebuilding with newest sources
Whenever you like to update your sources and build a new version you have to run these four simple commands:
Code:
$ cd ~/cm11
$ repo sync
$ . build/envsetup.sh
$ brunch nevisp
Compiling takes less time than it took for creating the ROM the first time because it's only building new parts while reusing old parts that haven't changed.
Happy building!
Click to expand...
Click to collapse
Big thanks to Raum1807 Since this is his guide but modified for the Fame Dev's/People to keep it easier. I had his permission for this.
Stop by his thread and thank him for his guide:good: http://forum.xda-developers.com/nexus-4/general/guide-cm11-how-to-build-cyanogenmod-11-t2515305
Thanks to Google for android and Cyanogenmod well for Cyanogenmod ofcourse ;p
I hope this Guide is good since I screwed up my ubuntu again... Please report to me if there is a mistake in the OP.[/QUOTE]
If By Chance I Took Build On A Virtual Machine ... Would Take To Build It?
PS :. I am Brazilian, translated to English by Google Translate.
@NickyClouD this guide is good but you have to replace the master revision by device_samsung_nevispcm11 to Testing.
I dont know were you screwed it up but this guide is good
I dont know howlong it would take to build it since I am triplebooting.
So change master to Testing. Goodluck :good:
EDIT: Could you also unquote the OP please since it takes alot of space
For the one who cares about building roms for the fame community I adjusted the guide a bit again and added the repository with all the patches needed for the fame to the local_manifest.xml part.
I also added a new part to the guide called:
VII. Galaxy Fame Build menu
It includes a link to a simple build script which I made so that you compilers can compile/update/clean your builds easier without the need of wasting more time then needed and it also includes a feature so you can see how long the build went or how long repo sync took.
Also an addon/package for ubuntu variants which allows you to open the terminal in the folder by only right clicking in the folder and selecting open terminal menu. This addon spares you ALOT of time when you are busy with these kinds of things.

Categories

Resources