[Samsung Galaxy Fame] wulsic:
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:

$ 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:

$ java -version

Verify the symlinks. Javac, Java, Javaws, Javadoc, Javah, Javap and Jar should all point to the right Java location and version:

$ 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:

$ 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.

$ 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:

$ mkdir ~/cm11
$ cd ~/cm11

Initialize Repo:

$ repo init -u http://github.com/CyanogenMod/android.git -b cm-11.0

and enter your credentials.

Download the sources:

$ 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

$ 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

$ repo sync -j1

Initialize the environment

$ . 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

$ gedit ~/cm11/.repo/local_manifests/local_manifest.xml

Paste the following lines to the editor

<?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

$ repo sync

again to get the files needed.

Download the necessary prebuilts from cyanogenmod by running

$ cd ~/cm11/vendor/cm
$ . get-prebuilts
$ croot

And you're done!

V. Building the ROM

Now build it:

$ 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:

$ 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:

. 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:

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://xdaforums.com/nexus-4/general/guide-cm11-how-to-build-cyanogenmod-11-t2515305

Thanks to Google for android and Cyanogenmod well for Cyanogenmod ofcourse ;p