yashsingh1/xdaforums huggingface dataset:
[Android] lozohcum:
After last commits in CM source I can't get rid of this:

bootable/recovery/minui/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minui/graphics_overlay.c:164:17: error: 'struct ion_allocation_data' has no member named 'heap_mask'
bootable/recovery/minui/graphics_overlay.c:166:13: error: 'ION_SYSTEM_CONTIG_HEAP_ID' undeclared (first use in this function)
bootable/recovery/minui/graphics_overlay.c:166:13: note: each undeclared identifier is reported only once for each function it appears in
bootable/recovery/minui/graphics_overlay.c: In function 'free_overlay':
bootable/recovery/minui/graphics_overlay.c:304:31: error: storage size of 'ext_commit' isn't known
bootable/recovery/minui/graphics_overlay.c:335:35: error: invalid application of 'sizeof' to incomplete type 'struct mdp_display_commit'
bootable/recovery/minui/graphics_overlay.c:336:24: error: 'MDP_DISPLAY_COMMIT_OVERLAY' undeclared (first use in this function)
bootable/recovery/minui/graphics_overlay.c:338:21: error: 'MSMFB_DISPLAY_COMMIT' undeclared (first use in this function)
bootable/recovery/minui/graphics_overlay.c: In function 'overlay_display_frame':
bootable/recovery/minui/graphics_overlay.c:358:31: error: storage size of 'ext_commit' isn't known
bootable/recovery/minui/graphics_overlay.c:416:35: error: invalid application of 'sizeof' to incomplete type 'struct mdp_display_commit'
bootable/recovery/minui/graphics_overlay.c:417:24: error: 'MDP_DISPLAY_COMMIT_OVERLAY' undeclared (first use in this function)
bootable/recovery/minui/graphics_overlay.c:419:21: error: 'MSMFB_DISPLAY_COMMIT' undeclared (first use in this function)
make: *** [/home/lozohcum/CM11/out/target/product/jlo/obj/STATIC_LIBRARIES/libminui_intermediates/graphics_overlay.o] Error 1

any idea how to solve? I tried to revert as much as possible but it doesn't help
[Android] jsauder2:
Looks like you're trying to build aokp? Mind linking the repo? I'll try it myself and see what happens.

Sent from my Nexus 4
[Android] ShinySide:
Try this. Delete your room service file in .repo, delete device trees, delete kernel then

repo sync

make clobber

. build/envsetup.sh && brunch mako
[Android] kl522:
I tried follow the tutorial EXACTLY, so this is what I used :-

repo init -u git://github.com/AOKP/platform_manifest.git -b kitkat

---------- Post added at 04:19 AM ---------- Previous post was at 04:16 AM ----------

Sorry I am an absolute beginner. I go into the .repo, I don't see anything by the name of "room service". I also don't see device and kernel.

There is a "device" directory in ~/android. But there is no "kernel" directory.
[Android] ShinySide:
Well theres your problem right there. You cant build for a device with out its device tree and kernel.

Run this

repo init -u https://github.com/AOKP/platform_manifest.git -b kitkat -g all,-notdefault,mako,lge

That'll download everything you need for mako and not crap you don't need for other devices. Since you've already sync'd the source it wont take that long. And itll automatically delete the stuff you dont need.

Then get to compiling ;)

And just for a useful read. Read the readme

https://github.com/AOKP/platform_manifest
[Android] jsauder2:
Ah, it's because you are using the repo init for no device/kernel/vendor, so the files for a specific device are not there. You need to be more specific with that command. So if you want to build for mako for example, use the following

repo init -u https://github.com/AOKP/platform_manifest.git -b kitkat -g all,-notdefault,mako,lge

Then you can sync with

repo sync

Then carry on as normal...

source build/envsetup.sh

lunch

Select your device, and then...

make -j4 otapackage

*ninja'd*
[Android] kl522:
Ok I deleted everything before the replies come back and restarted a new repo init, this time I do this :-

After repo sync, it's complaining oracle java 6 is not right, so I changed it to oracle 7.

Then it's complaining oracle java 7 is not right, so I changed it to openjdk-7.

Then I try to do 'lunch mako', it still gives problem. So I do 'lunch aosp_mako-userdebug' instead.

Now I am compiling. Compilation is going on now as I am typing. I will know the result later.

Looks like the 'tuturial' has not taken into consideration of various other possibilities, or rather the android compilation is a deep sea ?

;)
[Android] sylentprofet:
According to https://source.android.com/source/initializing.html

Looks like they just changed up the requirements for building as of the L release. Java 6 for Gingerbread thru Kitkat, open-jdk7 onwards.

So I guess it depends on what version and flavor of Android you're trying to compile.

Good luck!
[Android] jsauder2:
How did it go?

Sent from my Nexus 7
[Android] myepicyear:
You will need a little swap--rarely, but it happens. I have 16GBs of RAM, but I keep a little swap partition. Install a tiny one--like 1 or 2 GBs. It won't slow anything down. To be sure, set your "swappiness" value to 10 or lower.

Believe it or not, compiling can/will fill up almost all your memory, especially if it's pulling all your ccache in. Ubuntu System Monitor doesn't show highly detailed information. Download Xosview from Ubuntu's Software Center, and watch the memory fill up while compiling. It doesn't need all 15.4 GBs RAM to complete, but it will not hesitate to use as much as there is available.

Ccache helps build times..a lot. You're going to have to decide which storage locations to use for everything (SSD vs HDD#1 vs HDD#2). Both storage technologies have their ups and downs when it comes to compiling Android (or anything) from source code.

You'll enjoy compiling on your machine--because it's powerful like mine--and that helps...a lot.

Good luck!
[Android] caspboy:
okay, I want to build just the latest cm7.2 for my LG Ally, where do I start? Ive completed this, so now what?

The device source is here: https://github.com/venkatkamesh/android_device_lge_ally

The kernel source: https://github.com/venkatkamesh/lg_ally_kernel-2.6.XX
[Android] ShinySide:
sudo apt-get purge oracle-java8-installer

And skip sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\* because its obviously not installed so cant purge/remove it

Also sudo apt-get upgrade and sudo apt-get dist-upgrade to update those 6 not upgraded
[Android] ShinySide:
oracle-java6-installer is already the newest version.

^ says java6 is already installed and at the latest version.

Try running

sudo update-java-alternatives -s java-6-oracle

Run java -version again
[Android] jared12:
You my friend are a genius, thank you
[Android] autotech40:
repo init

i'm having problems trying to repo init.i get this error.....fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle

fatal: error unknown url type: https

i have followed the directions and have installed corect java,python,etc.i have tried a few things i found while searching.proxy,etc in git config,and still can not figure out whats going on.
[Android] jsauder2:
That's the wrong link. if you are trying to build AOSP, use

repo init -u [url]https://android.googlesource.com/platform/manifest[/url]

if you want to do a specific device (the nexus 4 for example), checkout that branch by specifying the build number...

repo init -u [url]https://android.googlesource.com/platform/manifest[/url] -b android-4.4.4_r1

then use

repo sync

to download the source.

Google has a great guide on building AOSP here...

https://source.android.com/source/downloading.html

if you've followed this guide, you should be able to skip to the section of the page that has the commands I listed above and go from there.

Sent from my Nexus 4
[Android] autotech40:
thanks

thanks for the reply but for some reason i could not do repo init with ubuntu 13.04,git was configured and it keep saying repo not installed when i tried to figure it out.so i decided to go with a lighter version,xubuntu 14.04 and it is way faster,and after follwing tut here i was able to repo sync in about 45 minutes.
[Android] yemen-Hadramout:
Thank you to the subject of Raya
[Android] ColeTrain!:
definite newb. trying to download beanstalk

repo init -u http://github.com/scotthartbti/android.git -b kk44

getting this error

thanks in advance

cole@cole-Satellite-A665:~/source/beanstalk$ sudo nano ~/.bashrc

[sudo] password for cole:

cole@cole-Satellite-A665:~/source/beanstalk$ repo init -u http://github.com/scotthartbti/android.git -b kk44

Traceback (most recent call last):

File "/home/cole/source/beanstalk/.repo/repo/main.py", line 500, in <module>

_Main(sys.argv[1:])

File "/home/cole/source/beanstalk/.repo/repo/main.py", line 476, in _Main

result = repo._Run(argv) or 0

File "/home/cole/source/beanstalk/.repo/repo/main.py", line 155, in _Run

result = cmd.Execute(copts, cargs)

File "/home/cole/source/beanstalk/.repo/repo/subcmds/init.py", line 395, in Execute

self._ConfigureUser()

File "/home/cole/source/beanstalk/.repo/repo/subcmds/init.py", line 289, in _ConfigureUser

name = self._Prompt('Your Name', mp.UserName)

File "/home/cole/source/beanstalk/.repo/repo/project.py", line 650, in UserName

self._LoadUserIdentity()

File "/home/cole/source/beanstalk/.repo/repo/project.py", line 663, in _LoadUserIdentity

u = self.bare_git.var('GIT_COMMITTER_IDENT')

File "/home/cole/source/beanstalk/.repo/repo/project.py", line 2483, in runner

p.stderr))

error.GitError: manifests var:

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"

git config --global user.name "Your Name"

to set your account's default identity.

Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'cole@cole-Satellite-A665.(none)')

cole@cole-Satellite-A665:~/source/beanstalk$
[Android] ShinySide:
You need to run

git config --global user.email "youremail"

Then

git config --global user.name "Cole"

You have to "sign" into git.

Then rerun repo init
[Android] jsauder2:
You need to setup your user and email, just like it says.

Type "git config --global user.email" then your email address. Then do the same thing with the username one (you can pick any username you want). For example...

git config --global user.email myemail@gmail.com

git config --global user.name myusername

That would register you with the email myemail@gmail.com and the username myusername. Once you've done that with your own information, you should be good.

*edit* ninja'd

Sent from my Nexus 4
[Android] caelin99:
Worked like a charm

^^^^^^^^^ No Homo, I love you
[Android] AhmedO.:
When i write "lunch" in the Terminal and I write the number 33 (aokp_i9300) he says:

What should I do ?
[Android] mrlolli:
Thanks to the OP for this thread and the time you put into it :)

I would like to add a little side note for anyone trying to use this with Lubuntu-14.04. When trying to do step 5, you will get an unmet dependencies error, and it will list the 3 files that caused the error. Just re-paste the step 5 line, then go through and delete the files that caused the problems in that list, then hit enter. After all that is done installing, re-paste step 5 line yet again and this time the 3 problem files will install without any problem.

Everything else works fine with Lubuntu. Thanks again for the guide!
[Android] ColeTrain!:
3g lte

hi, i sucsessfully did this, thank you, using this and help, but for whatever reason 3g does not work well and i never get 4g/lte. I am thinking of just swapping out some files from another rom, but what files are key for this? thank you in advance.
[Android] Echo_Platoon:
Thank you for this guide. I have always wanted to try to make my own build of Android. I will have to give this a try at some point.
[Android] gtasmodder:
how do i get aokp_n7100 files
[Android] regalstreak:
Solution to E: Unable to correct problems, you have held broken packages.

Hey guys! Are u you getting this error :

E: Unable to correct problems, you have held broken packages.

Then here is the solution to your problem:

Post these commands in Terminal Windows one by one:

sudo apt-get install aptitude

(Enter your password if you have one..)

Then:

sudo aptitude install git gnupg ccache lzop 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:i386 libgl1-mesa-dev 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 It will ask some Questions.. Enter

Y

For each Question.. Then You will have these packages installed! Continue to step 6.. :laugh: :good:

Happy Deving :D
[Android] JekaPinsk:
Hi all!

Can I use java-7 to build 4.4 roms?
[Android] hastalafiesta:
Idk but java 6 is recommended

Inviato dal mio GT-I9070
[Android] savie:
multiple java installer ?

hello [MENTION=2645562]sylentprofet[/MENTION]

let say u have java-6 coz u build from gb-kk. but now u wanna build L which mean (base on this guide) must use java-7.

how to install java-7 without remove java-6 and switch using java between java6 when build kk/java7 when build L ?

its nice if thats can update on first page since many of people have older version of android source. thanks
[Android] sylentprofet:
[MENTION=4483891]savie[/MENTION]

I'll update the front page with some instructions shortly. Thanks for the support!
[Android] manask002:
repo init -u git://github.com/AOKP/platform_manifest.git -b kitkat

for lillipop type like this repo init -u git://github.com/AOKP/platform_manifest.git -b lollipop
[Android] sylentprofet:
Pretty sure this doesn't work yet. To my knowledge, as of writing this AOKP hasn't updated their platform manifests to reflect the changes made by Lollipop. I'm sure they're hard at work, along with the rest of the teams (Cyanogenmod et al) trying to get a release out, so stay tuned for updates. There's going to be a lot of changes happening in the coming weeks.
[Android] satyr007:
You can use java 1.7 for KK, but If u wanna both version try this: I presume u got 1..6 installed so install 1.7. To build with 1.7 just export path to correct java version before make/brunch: export PATH="usr/lib/jvm/java-1.7.0-openjdk-amd64/bin:$PATH" or something similiar and check "java -version". It should change to 1.7. Restarting bash should switch to 1.6 again.
[Android] Mad07:
Hi,

Many thanks for the clear instructions to set up the system to be ready for compile.

I have installed Java 1.7 for Lollipop and for the first try the git hub from CM.(the A510 is uncomfortable not a supported device of CM, but I want first look, that the compiler progress is working)

Now, after sync, the source files are local. What's happen if I change something and make once again a sync? Does my changes will be available in the official hub? Hopefully not ....
[Android] sylentprofet:
Nope, your changes will only be available locally. In fact, if your local copy is different than an updated file on the server, you'll actually get a sync error because the checksums on the files won't match what is in the git repo. You'll need to move your local files out to successfully sync, then compare the differences with the new file.

I recommend looking into how to use git. That's how you can learn to submit patches and changes of your own, once you feel comfortable with the code and compile process.

Good luck!
[Android] Mad07:
THX, I'll search something to read about this one to understood this issue better.
[Android] Timoxy:
Hi all, i'll like to port cyanogenmod 11 on my wiko getaway. I'm on Ubuntu but when i try to lunch aosp_arm-eng, I have this message :

I'm very lost on my operation. So i'll like to need help ^^.
[Android] manask002:
I also get this error.... How to fix this...if you find how to fix it plz tell me
[Android] Riku Azhurlar:
so personally so i can run this and leave id make each apt-get apt-get -y so it automatically assumes yes

---------- Post added at 07:31 PM ---------- Previous post was at 07:30 PM ----------

in either you manifest.xml or your roomservice.xml for the path the repo should download to instead of device/blah/blah its /device/blah/blah which is giving it a system path instead of atrhe right obne
[Android] TehTempstack:
system.img corrupted!?

Hi everyone,

I had a running build machine with Ubuntu 12.04 and recently moved to a new one to test the process on Ubuntu 14.04.

First I followed the guide provided by Google directly but I ended up in having problems with the produces image files - I could flash them to a Nexus 5 but the boot process will stop while showing the Google logo.

Now I came across this guide here, followed it but in the end the result was the same.

I wasn't able to see any build errors - the only difference I was able to recognize is that now the system.img file was about 35MB smaller than before on the Ubuntu 12.04 machine - the four other image files have the very same size.

Does anyone have a clue what can be causing this issue?
[Android] dchatterjee172:
can i use this guide...to build android kernel building development environment??

i want to build kernel
[Android] CheesyNutz:
i used this and it set up perfectly i can now build CM very easy and quick how would i go about adding another repo say liquidsmooth or any other please
[Android] ShinySide:
By looking on their github for their manifest

https://github.com/LiquidSmooth/android

I usually find it easier to just Google "liquid smooth manifest" "carbon rom manifest" etc to find it then sifting thru device trees, packages, etc etc to find it on their github.
[Android] winxuser:
thanks for this,, but im building cm9 AND cm12 how would i go about that, is there a way to change the running javajdk so i can compile ics with 16 and when i want to change it to 7 to do lp builds
[Android] sylentprofet:
sudo update-alternatives --config java

AND

sudo update-alternatives --config javac

Make the appropriate selections for choosing between JDK6 and 7. They can both be installed side by side, you just have to tell the system which one to use when. Make sure to do both.
[Android] liquidsuspension:
At step 5 I get this…

E: Unable to locate package lib32

And I don't yet have the /mesa/ directory for step 6...

Any ideas?
[Android] JJsevol:
Try this

sudo apt-get install libgl1-mesa-dri:i386 sudo apt-get install ia32-libs-multiarch:i386 sudo apt-get install ia32-libs-multiarch sudo apt-get install ia32-libs

Had this a while ago and saw this online
[Android] liquidsuspension:
Ok tried that and here's what I get from the first command...

ryan@ubuntu:~$ sudo apt-get install libgl1-mesa-dri:i386

[sudo] password for ryan:

Reading package lists... Done

Building dependency tree

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed

Depends: libcheese7 (>= 3.0.1) but it is not going to be installed

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
[Android] JJsevol:
I haven't encountered that error before and usually you would try to meet those dependencies. Looking around online led me to these: https://github.com/ValveSoftware/steam-for-linux/issues/3728 and http://packages.ubuntu.com/trusty/libs/libcheese-gtk23. If you find a solution let us know.
[Android] liquidsuspension:
OK thanks. I'll check those links out later when I get home. When running some of the other commands you listed, it looked like the dependancies required were for older versions than what I have installed.
[Android] MarckozZ:
Guys, I followed this guide in Ubuntu 14.04 and this error didn't came up.. But now I have Ubuntu 14.04.2 and... this same thing came up just now.. Maybe some packages are not compatible with this version of Ubuntu... Hope to see a solution for this... Need to build a KK ROM but don't want to format and go back to 14.04 all over again! :confused:
[Android] liquidsuspension:
Yeah I have 14.04.2 as well. Seeing how I'm still hung up at steps 5 and 6, maybe I'll go back to 14.04.1 and give it a shot. While I've been stumped on this, I went ahead with 13.10 and its working great.
[Android] sylentprofet:
OP here.

I'll work on updating this guide per 14.04.2, but if one of you guys wouldn't mind, try my updated directions for 14.10 at the below link and see if they work out?

There were some pretty major changes in between the two versions, so it's worth a shot.

Thanks for the support everyone!

https://nathanpfry.com/howto-setup-ubuntu-14-10-utopic-unicorn-compile-android-roms/
[Android] Andromendous:
hey i had those same problems, i tried the guide you posted and still get the same errors

i had to install these packages, then i could install all the rest

sudo apt-get install libgl1-mesa-dri:i386

sudo apt-get install libglapi-mesa:i386

havent been able to make a build yet so i cant confirm if it works or not. but i have completely setup a build environment. just need to sync and build
[Android] Racing19969:
New ubuntu install gets this error when following your instructions

The following packages have unmet dependencies:

unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed

Depends: libcheese7 (>= 3.0.1) but it is not going to be installed

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

any helpwould be appreciated
[Android] khusika:
I think we all have the same problems, when we use Ubuntu 14.04.2( in Fresh Install)
[Android] sylentprofet:
From what I can see in your screenshot, the errors you are getting don't exactly come from the packages in my guide.

For instance "facebook account plugin", "libcheese", and "qt2" are all unknown to me.

I will take a look at this and get back to everyone. I just downloaded an iso of 14.04.2, stay tuned for an update.
[Android] khusika:
Good to know :good::)

Just an Info

i think this problems come from ubuntu it self. Because of that, i revert back to use ubuntu-14.04.1-desktop-amd64.iso to avoid this problems ;)
[Android] nickyhicky:
so late to the party

just wanted to say thank you, on 14.04.2 it nearly worked perfectly but only because of my noob-man-ship to linux had a couple dependancy issues (

/usr/lib/i368-linux-lib/libGL.so.1

was supposed to be on my setup /usr/lib/x86_64-linux-lib/libGL.so.1 thats not the exact location im sure but a little folder sleuthing "following the path" solved my problem. . I greatly appreciate the thread, i made sure i took notes along the whole process and saved to my backup partition on my laptop. kills me when to search for a build-enviorment set up i can actually follow. :fingers-crossed: thanks again.
[Android] Nevuly:
Ubuntu 14.04.2 main build tools command

Ubuntu 14.04.2 have a problem to install main build tools.

So, I checked main build tools, and I fixed it.

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

Edit

It is work in Ubuntu 14.04.2 LTS!
[Android] eudigorodrigo:
you rock broo!!!
[Android] mohamed786:
Hai as iam always stuck at this....

I already correct the TCP issue which

Sudo gedit /etc/sysctl.conf I add these line at the bottom

net.ipv4.tcp_window_scaling=0

But I can't resolve the repo stuck/hang

When I saw the properties of .repo and it still increasing means downloading...

As i have try of time with

repo sync -f, repo sync -j1 (nothing worked)