yashsingh1/xdaforums huggingface dataset:
[G 2014 General] Vatsal:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-4-amd64-x86_64-with-debian-8.0
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/data/deepak/titan/cm11/out
============================================
Checking build tools versions...
************************************************************
You are attempting to build with an unsupported JDK.

You use OpenJDK but only Sun/Oracle JDK is supported.
Please follow the machine setup instructions at
https://source.android.com/source/download.html

Continue at your own peril!
************************************************************
************************************************************
You are attempting to build with an unsupported version
of java.

Your version is: java version "1.7.0_75".
The correct version is: Java SE 1.6 or 1.7.

Please follow the machine setup instructions at
https://source.android.com/source/download.html
************************************************************
find: `bootable/recovery/res-720': No such file or directory
No private recovery resources for TARGET_DEVICE generic
Entire build directory removed.
Set cache size limit to 50.0 Gbytes
/tmp/hudson8243709547868758627.sh: line 13: ./resync.sh: No such file or directory
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/goldfish/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
including vendor/cm/vendorsetup.sh
ls: cannot access device/*/titan/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_titan". Stop.
Device titan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_motorola_titan
Default revision: cm-11.0
Checking branch info
Default revision cm-11.0 not found in android_device_motorola_titan. Bailing.
Branches found:
cm-12.0
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
ls: cannot access device/*/titan/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_titan". Stop.

** Don't have a product spec for: 'cm_titan'
** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

real	0m17.121s
user	0m0.256s
sys	0m0.024s
Build step 'Execute shell' marked build as failure
Sending e-mails to: TechExhibeo@gmail.com
[BFA] Scanning build for known causes...

[BFA] Done. 0s
Finished: FAILURE

Can someone help please? or just list me with cm11 commands of repo initialisation and device trees?
[G 2014 General] DiamondBond:
Oh okay, well thank you, ill try and add whatever more into this so more people can compile, :)
[G 2014 General] Vatsal:
Quick steps for compiling cm11

I hope you dont mind adding to OP ;)

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

curl --create-dirs -L -o .repo/local_manifests/titan.xml -O -L https://raw.githubusercontent.com/motog2014devteam/roomservice/cm-11.0/manifest.xml

repo sync

Thanks [MENTION=5075128]LuK1337[/MENTION]

Sent from MicroTitan :P
[G 2014 General] DiamondBond:
done :)
[G 2014 General] davcri91:
Great, I'll try this guide, thank you very much :D I was always curious about ROM development. In case, where can I ask questions about it ?

Regarding this guide : is necessary to create a bin folder in home directory ? Usually I put large binaries in /opt/. Is there any permission problem ?
[G 2014 General] DiamondBond:
Thanks :)

Um I think its best to keep the binary as is since other things might link to it and etc... Questions can be asked here ;) I or others will try to help! Glad this helps.
[G 2014 General] aditya.upadhyaya:
Is there a way to use these steps to similarly build a kernel? As Moto G2 lollipop kernel sources are out (http://www.androidpolice.com/2015/02/23/motorola-finally-posts-kernel-source-lollipop-2014-moto-x), I want to try building a stock kernel.
[G 2014 General] Vatsal:
[MENTION=5075128]LuK1337[/MENTION] Is this guide still work since titan switched to new kernel?

I get this errors while building

<code>

find: `dummy': No such file or directory

build/core/tasks/kernel.mk:130: **********************************************************

build/core/tasks/kernel.mk:131: * Kernel source found, but no configuration was defined *

build/core/tasks/kernel.mk:132: * Please add the TARGET_KERNEL_CONFIG variable to your *

build/core/tasks/kernel.mk:133: * BoardConfig.mk file *

build/core/tasks/kernel.mk:134: **********************************************************

make: *** No rule to make target 'bacon'. Stop.

</code>
[G 2014 General] luca020400:
So

rm -rf out

rm -rf .repo/local_manifests

rm -rf build* resync.sh patches

And follow the guide

Or join irc hannel isntead of using thread xd
[G 2014 General] daddy366:
wifi error with build

Built with out a problem..........flashed no problem......But no Wifi
[G 2014 General] DiamondBond:
hi, please dont quote whole op like that, thanks.

wifi, hm, first get catlog from playstore, then reboot and run catlog, whilst trying to turn on wifi / off from settings menu and then try from status bar thingy. then save it and attach it here, we will try to help then. :)
[G 2014 General] daddy366:
Sorry about that i tried to delete it but it wouldnt let me.........heres the log on it..................https://www.dropbox.com/s/i48l975m7r5vzux/2015-03-19-18-33-44.txt?dl=0
[G 2014 General] DiamondBond:
dont worry :) thanks will review it!

edit

off the bat... the logs full of errors + idk much bout source building, anyways can anyone else halp? :)
[G 2014 General] daddy366:
ya it is but so far wifi is the only thing not working i built it before and wifi worked then but no cam and music fc.........built it again and removed FX and Eleven [music app].........cam works and music dosnt fc so far that is.....but like i say no wifi...............this isnt my first time trying a build...............i have built for the moto e both cm11 and cm12 and both run fine.....have also compiled cwm, twrp, and philz recovery for the moto e along with cwm, and twrp for the centura......this has got me stumped..........thanks for any help...................
[G 2014 General] AhmedRana:
How can I get CM12 for LG G2 and try this method for it.
[G 2014 General] Mister_Magister:
Download has stopped at

Fetching project CyanogenMod/android_packages_apps_SoundRecorder

Fetching projects: 99% (543/548)
[G 2014 General] Vidhanth:
Is it necessary to have a 64 bit os?
[G 2014 General] luca020400:
Yes , you need a 64BIT OS and at least 4GB ram
[G 2014 General] Vidhanth:
so ubuntu should work fine, right?
[G 2014 General] :
Yes it should

Sent from MicroTitan :P
[G 2014 General] luca020400:
If you installed 64bit Ubuntu yes xd
[G 2014 General] Vidhanth:
I have two machines and one is 32 bit. It has 2gb ram and ubuntu 64 bit is running smoothly on it. So can I try compiling on it? Or shud I buy a hard disk so that I can install Ubuntu on my 64 bit laptop?
[G 2014 General] :
[MENTION=4725371]Pizza_Dox[/MENTION] can u update this guide with cm12.1?

repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1

curl --create-dirs -L -o .repo/local_manifests/titan.xml -O -L https://raw.github.com/motog2014devteam/roomservice/cm-12.1/manifest.xml

repo sync
[G 2014 General] DiamondBond:
question is, does it build properly? O.0 i think ill switch the guide to CM12.1 once 12.1 becomes supported by Cyanogenmod officially, that way the transition is easier, lol, but does it build properly, with the method i put in op, or does build breaks and etc and it requires dirty fixes and stuff?
[G 2014 General] :
Yes it builds properly. Tested and working fine :D
[G 2014 General] smitharro:
You have a 32 bit machine running a 64 bit OS? Tell me how you do that! Furthermore, they said you need 4gb of ram, not 2gb!
[G 2014 General] Vidhanth:
Just burnt Ubuntu 64bit iso on USB, booted, and installed. It was easy. Ya I know that but I am not able to boot my 64 bit laptop with 4gb ram from the hard disk on which I installed ubuntu. That's why I'm booting the 32bit comp from the hard disk with 64bit Ubuntu installed. But it's running fast! Anyways, the build ends in five minutes and I have only few folders in my out folder(sorry, I'm talking abt sokp here :) )
[G 2014 General] DiamondBond:
Just dual boot :) and ive tried building with 2gb of ram... i dont suggest it XD your pc with either lock up and stay hanged, or if your lucky it will build, but it will legitimately take about 16 hours or so, well at least on my old laptop it did to build jb...

hmmm must be a build error, :/ its ok sokp is cool :D
[G 2014 General] Robert56th:
quick question is this normal or part of the process ? [IMG="my eyes shined when i saw cm 7 there"]https://dl.pushbulletusercontent.com/sScms4JIdshWHkRIV1jL78kaec60SW0b/IMG_20150424_102604.jpg[/IMG]
[G 2014 General] lorikeet:
Yes. It is fetching the source code and tags :)
[G 2014 General] lorikeet:
Hello,

Where do you execute the build.sh from? I don't find a build.sh in my top level directory. I have initialized my repo like this

under ~/android/system

repo init -u https://github.com/CyanogenMod/android.git -b cm-12.0

curl --create-dirs -L -o .repo/local_manifests/titan.xml -O -L https://raw.github.com/motog2014devteam/roomservice/cm-12.0/manifest.xml

:confused:

---------- Post added at 11:03 PM ---------- Previous post was at 10:30 PM ----------

Never mind. Running repo sync again seems to have fixed the problem. I will update on the build process when it finishes.
[G 2014 General] Sosa88:
Delete problem fixed
[G 2014 General] jackcicci:
[MENTION=4725371]DiamondBond[/MENTION]

Du you think that can be possible to build on a Windows OS PC (8 GB RAM, i7 and SSD) with Linux virtualized (Virtualbox, VMware...)?
[G 2014 General] DiamondBond:
dedicate 2 cores, 4gb ram and about 60gb and you should be able to build in virtualbox :) but i recommend building in dualboot ;)
[G 2014 General] fede011:
What are the pros of building instead of just downloading it?
[G 2014 General] Robert56th:
am i doing something wrong here?

doroteo@doroteo-HP-Pavilion-g7-Notebook-PC:~$ sudo apt-get install git-core gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'

E: Unable to locate package lib32bz2-1.0

E: Couldn't find any package by regex 'lib32bz2-1.0'

E: Unable to locate package mingw32

E: Unable to locate package lib32bz2-dev
[G 2014 General] :
Distro? That things are only for mint. If u use ubuntu u might get this couldnt find package thing.

Sent from my Moto G 2014
[G 2014 General] Robert56th:
yes ubuntu 15.04 . are you using mint ?

is there some work aroundso i can build it in ubuntu?
[G 2014 General] luca020400:
These commands are for Ubuntu 12.04

Ubuntu 14.04 has different packages
[G 2014 General] Robert56th:
so itsbetter for me to just install 12.04 than stick with the latest version 15.04?
[G 2014 General] luca020400:
Nah

Google --> Build android from source --> Android website --> Ubuntu 14.04 packages

Install chedtool too as is used by many commands ( introduced by cm )
[G 2014 General] Robert56th:
currently installing 14.04 packages. do you mean schedtool or chedtool?

can i pm you luca?
[G 2014 General] luca020400:
sudo apt-get install schedtool

Pls don't pm xd
[G 2014 General] Robert56th:
after installing the packages and the sched tools i'll just go to the same process in th OP?

lol ok no pm's :>
[G 2014 General] luca020400:
Same as op without packages setup :3
[G 2014 General] Robert56th:
Okay thanksfor the help luca :)*hittinh thanks*

---------- Post added at 08:57 AM ---------- Previous post was at 08:43 AM ----------

how many gbwill this process download?
[G 2014 General] luca020400:
Like ~20/25
[G 2014 General] Robert56th:
one more question. can i stop letsaybefore building the environtment and shutdown my computer then download the sources the next day?
[G 2014 General] Robert56th:
i got this while building :

Checking build tools versions...

build/core/base_rules.mk:154: *** build/libs/host: MODULE.HOST.STATIC_LIBRARIES.libhost_32 already defined by android_build/libs/host. Stop.

what should i do?
[G 2014 General] jcalderonv74:
Hi! Same prob here did you find the reason for Wi-Fi not working? Thanks in advance people! My first trying and the only problem is Wi-Fi... In fact even gestures and ambient live was working...

Edit: BTW nice/simple/clear tutorial ;) thx to OP and rest of community for sharing knowledge [emoji119] [emoji12]
[G 2014 General] jcalderonv74:
Finally I did it. Since this morning tested and working last realease no FCs. Thx anyway cheers
[G 2014 General] DiamondBond:
revised edition in op, updated with support for official cm12.1 and a bit clearer! :)
[G 2014 General] redbeard1083:
thanks for the guide. if at all possible, could you do one for building AOSP for the moto g? we don't have a pure aosp rom yet!

*edit* one JUST popped up today i think. hahah. having said that, if you were to write it, i would totally follow it.
[G 2014 General] DiamondBond:
building aosp would be a bit harder, since we arent even using pure aosp, were using f-aosp + some cm, omni and other patches to get msim working, and to be honest it seems a bit hacky, if you want help i would join #titandev sometime and they / we could you :) for now building cm is super easy :D
[G 2014 General] DiamondBond:
31gb :D
[G 2014 General] Vidhanth:
Off topic, but which distro? Mint?
[G 2014 General] DiamondBond:
lubuntu with customizations (why? performance), its linux = not off topic lol :) what you on?
[G 2014 General] Vidhanth:
Ubuntu 14.04 trusty tahr. Do u recommend migrating from Ubuntu to lubuntu? I have a 1tb external hard disk where I have 4 partitions.

1. For grub (500mb)

2. For the whole ubuntu system (230-250 gb)

3. 16gb swap

4. Data(50-55gb)

5. About 600 GB unallocated.

Is there a way I can install lubuntu on the same hard disk without losing Ubuntu (coz Ubuntu has all my apps like android studio, Photoshop, etc) and grub asks me to select anyone? I don't mind if I lose the 4th partition.
[G 2014 General] luca020400:
Yes sure ,

sudo apt-get install lubuntu-desktop

Boot into lxde

sudo apt-get autoremove --purge ubuntu-desktop

I'm running archlinux <3
[G 2014 General] Vidhanth:
What will those commands basically do?
[G 2014 General] :
Install lmde as your de.

DE - Desktop environment

And it will purge/remove unity(Default ubuntu DE)
[G 2014 General] Vidhanth:
Lol I wanted the whole distro, not the de.

How can I do that?
[G 2014 General] luca020400:
The base is the same

Diamond did the same :)
[G 2014 General] Vidhanth:
I know but how do I install lubuntu along side Ubuntu on my hard disk? Coz one of my laptop is slow as hell and I herd that lubuntu is a lightweight distro. Ubuntu lags like hell on that laptop.
[G 2014 General] DiamondBond:
luca i did try that, but there was a tonne of gnome and unity **** left over, i ended up installing lubuntu, thats why i was gone for 1+ hours ;)

replace ubuntu with lubuntu, ubuntu just is not for laptops to be honest, it laggs on mine aswell, windows 7 is fine and so is lubuntu, actually lubuntu is spectacular, it looks nice (win xp esque) and it performs how ive always wanted my pc to, :D i recommend a clean install of lubuntu though ;) + i have to update these instructions, oracle jre is not what we need, we need openjdk and there is some moto propietary stuff that needs to be installed (simple ./setup-makefiles.sh stuff), will add that as a section in op :)
[G 2014 General] Vidhanth:
Just experienced lubuntu through vbox and I'm completely convinced that lubuntu is far and way better than Ubuntu. But I want to keep Ubuntu also coz it has a lot of my apps which I cannot download again (60 GB quota[emoji20] ). Btw Ubuntu didn't lag on my newer laptop but it did on my older one (its 32bit and has a Pentium processor[emoji24] [emoji24] but it can run 64 bit[emoji2] ) So I'll just try installing lubuntu on another partition on my HD and try an update-grub(or whatever that is lol) on Ubuntu and reboot. Let's see if grub asks me to boot into lubuntu.
[G 2014 General] DiamondBond:
glad you like lubuntu :) i do know that feeling, stupid isps... anyways go ahead, hope it works! :D
[G 2014 General] DiamondBond:
this guide is horrible xD ive realized since i started building cm12.1 now, java is wrong, you have to use openjdk7 and not oraclejre7 and you have to also throw in themuppets propietary files and dependencies are not all satisfied, point being, if you want to build cm12.1 this is not the best place as of now since you will come across errors, i will try to fix them later though :)
[G 2014 General] redbeard1083:
thank you for the reply. if i get some free time, i may just do that. never hurts to learn something new, you know?
[G 2014 General] smitharro:
Why don't you just install the lubuntu desktop from within Ubuntu? Than you can choose the window manager you like! The the lean one from lubuntu or the slightly heavier Ubuntu. The base is the same anyway...
[G 2014 General] Vidhanth:
That's what Luca said. But Diamond recommends installing the whole distro.

And I somewhat prefer that. [emoji4]

And I don't want my 690 mb download to go in vain. Ask diamond, he knows[emoji4]
[G 2014 General] DiamondBond:
installing just the lubuntu desktop and removing ubuntu-desktop will cause havok, sound issues with pulseaudio and alsa , gnome apps still left over cause apt thinks lubuntu will use it, theres alot of things that go wrong... :) + a clean install is easier to be honest than to just hack your way around and fix it all together, i recommend if your not gonna use ubuntu anyways, just got ahead and try out the lubuntu-desktop stuff, if it goes wrong then just wipe and "flash" lubuntu (only 15 min install, then 45 mins for configuring, not long...)

I do, and yes its "cleaner" in my opinion, and regarding downloads yes i do know the feeling, having limited access to such a powerful index of knowledge such as the internet is almost illegal in my opinion and it should stop, net neutrality should come to india + sri lanka + the other countrys with greedy isps! :D
[G 2014 General] Vidhanth:
It worked![emoji4]

Agreed. But I don't have a 60gb limit. It's a kind of boundary. If u stay in it, 30mbps, u cross it, 512 kbps.(but I get only 20kbps due to heavy internet traffic lol). So I can still access net after reaching the limit[emoji4]
[G 2014 General] DiamondBond:
same here except we get 128kbps after we cross 100gb (at 16mbps though) :/ still i prefer my old internet connection in cyprus (unlimited at 8mbps)
[G 2014 General] smitharro:
Whatever feels the best for you is OK, of course. I never noticed any bugs in the combination of Ubuntu/Lubuntu/Kubuntu. But I mainly use Ubuntu with the classical Gnome desktop. Tried Lubuntu and Kubuntu, but over the years I'm so used to the classic Gnome desktop...
[G 2014 General] DiamondBond:
Exactly, however I chose lxde for its minimalistic approach and low ram usage , however after 5 attempts at building , its simply impossible to build android from source on a laptop, always hard locks up or something, attended and unattended... I will try leaving it to build overnight tonight, but I have no hope... :) if anyone else can chip in as to why building on a laptop is impossible then please do!

Sent from my Moto G 2014
[G 2014 General] davcri91:
+1 for arch linux, the distro that every programmer and every free software enthusiast should use.

Unity is one of the worst desktop environment if you want productivity.

I suggest Cinnamon in case you need the perfect mix of efficency, features, look, great community and ease of use. Really, I used Unity, Pantheon, KDE4, KDE5, lxde, GNOME but with Cinnamon i found the sweet spot.
[G 2014 General] Vidhanth:
Really? So will all in one desktops work?
[G 2014 General] DiamondBond:
edit: i fixed the issue xD

it was that using brunch uses mka which uses all cores and all cpu power = overheat = pc ded, i have to run :

$ lunch

select cm_titan-userdebug

$ make otapackage -j5

j = number of cores + 1 , i have i5 (physical dual core, hyperthreaded to be quad core) = 4 +1 = 5 :)

All in one desktops should be alright, i recommend trying brunch titan initially, if it dosnt work then simply follow the method above, also if you want 1 on 1 help from me (any maybe others) then drop into the #titandev irc, but before you do msg me and we can get you setup since this guide is not working as is, i still have to fix it (but i have exams next week so i cant be bothered...) ;)
[G 2014 General] Vidhanth:
I have an Asus f202e. So could u check if it's capable of compiling Roms? Bcoz I was thinking of buying an all in one but if it's possible, I'll try it on this itself.

And which command should I use to build?

Link to the specs for ur convenience[emoji4]
[G 2014 General] DiamondBond:
Nah your pc should handle it, use the commands i suggested above if you dont have adequate coolin :D
[G 2014 General] Vidhanth:
So -j5? Btw how many cores does my laptop have?[emoji14]
[G 2014 General] :
Similar specs here

A clean build with ccache will take ~4hours for you. It takes same here

Use -j4 [MENTION=4725371]DiamondBond[/MENTION] why use make otapackage use make bacon -j4 instead. Builds better here. Make ota package breaks few things in some roms.
[G 2014 General] DiamondBond:
using make bacon -j5 fixed all my issues lol, tnx bro ;)
[G 2014 General] luca020400:
All "make" commands uses the same argument

make bacon = make otapackage ( you need to add jobs )

brunch = mka bacon ( jobs = CPUs )
[G 2014 General] AhmedRana:
No output

The build process started and continued for a long time. In the end there was no output file at all.

I have attached the terminal output.

Can anyone please have a look at it let me the where the fault is?

Thanks in advance,
[G 2014 General] LuK1337:
make: *** No rule to make target 'vendor/lge/d800/proprietary/etc/Bluetooth_cal.acdb', needed by '/home/rana/android/system/out/target/product/d800/system/etc/Bluetooth_cal.acdb'. Stop.

U forgot to sync proprietary blobs XD
[G 2014 General] DiamondBond:
using arch now, so if anyone else wants to setup the arch wiki has an excellent guide on setting up (even better than aosp's and cm's guide lol):

https://wiki.archlinux.org/index.php/Android#Required_packages
[G 2014 General] ingeniousambivert:
What kinda changes do need to make if i wanna build it for another device as this tutorial is for moto g and i wanna build it for s duos

PLEASE reply
[G 2014 General] DiamondBond:
you need to add different device proprietary blobs to the local_manifest. This guide is sorta deprecated i guess since im to lazy to clean it up / keep it maintained lol.