[Sprint LG G3] 1619415:
Guide to build your own CM 12.1

ONLY FOR PEOPLE WHO ALREADY BUILD> I am now using different repo's please delete everything in your CM build folder and edit your manifest file and add the new stuff. Then run repo sync again. <ONLY FOR PEOPLE WHO HAVE ALREADY BUILD

Just copy and paste these steps into your Ubuntu Terminal:

*Make sure to press "Enter"(on your keyboard) between each line to run the command*

sudo apt-get update
This will update your repository’s

sudo apt-get install sudo apt-get install git gnupg ccache lzop libglapi-mesa-lts-utopic:i386 libgl1-mesa-dri-lts-utopic:i386 flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx-lts-utopic:i386 libgl1-mesa-dev-lts-utopic g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev lib32readline-gplv2-dev libncurses5-dev bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev squashfs-tools pngcrush schedtool dpkg-dev

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

This will install all of the packages and files need to build CM 12

mkdir -p ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

This will create and configure the ~/bin file

mkdir -p ~/android/CM12
cd android/CM12
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1

This will configure your android/CM12 folder to be built in

Now close all terminals and check that you have the folders we made above in your user based folder. Next before continuing enable "Hidden Folders" in your file browser YOU NEED TO DO THIS!!!!!!. I use THUNAR File Manger you can get it from the Ubuntu Software Center if you do use it just press "Ctrl"+"h" on your keyboard to show hidden files this may work for other programs.

Now keep following along:

cd android/CM12
repo sync (This will take a WHILE)
. build/envsetup.sh
breakfast ls990

Thus us the final steps before building

Now use your file browser/manger and go into the android/CM12 folder there you will see a bunch of other folders open the one named: ".repo" then inside there open the folder called: "local_manifests" there should be a .xml file inside just open it up and replace everything inside it with this:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- lg devices -->
<project name="CyanogenMod/android_device_lge_ls990" path="device/lge/ls990" remote="github" revision="cm-12.1" />
<!--lg kernels -->
<project name="CyanogenMod/android_kernel_lge_g3" path="kernel/lge/g3" remote="github" revision="cm-12.1" />
<!-- the muppets -->
<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-12.1" />
<!-- common -->
<project name="CyanogenMod/android_device_lge_g3-common" path="device/lge/g3-common" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-12.1" />
</manifest>

After that go back into terminal and run "repo sync" again that way it updates all of your files. After the repo has finished syncing the last thing you have to run is "brunch ls990" this will build a .zip file of your rom. Note this can take a long time and really slow down your computer I recommend leaving and coming back in a couple of hours.

Tips:

Every time you want to update your rom run these commands

make clean
repo sync

If you would like to donate,by all means it's not necessary you but you can through google wallet - chrislevine24@gmail.com

I am not responsible if your computer crashes.