yashsingh1/xdaforums huggingface dataset:
[Android] raptor170:
hey sorry if this is a repost but trying to setup my enviroment and issuing

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

i get

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: Package 'lib32readline-gplv2-dev' has no installation candidate

E: Unable to locate package lib32readline5

E: Unable to locate package lib32bz2-dev

ive also done sudo apt-get update and sudo apt-get upgrade and same error.

on ubuntu 15.10, maybe packages already included in 15.10? thanks
[Android] neonkat:
[MENTION=5212860]raptor170[/MENTION]

are you doing this on a 32-bit ubuntu 15.10?
[Android] raptor170:
[MENTION=5991747]neonkat[/MENTION] no on 64 bit, basically just copied and pasted the command from the o.p.
[Android] neonkat:
that package is for 32 bit pc..you can see that "32"..(correct me if i am wrong)

just remove the 32 and try to install package or add 64.
[Android] raptor170:
[MENTION=1686648]noenkat[/MENTION] think I'll give it a try, thanks, was trying to setup at 2am lol. I'll report back how it goes for anyone else having same issue :)
[Android] nitin.chobhe:
[MENTION=5212860]raptor170[/MENTION]

It's answered before.

You've to remove ":i386" from these package names and install them :thumbup:
[Android] raptor170:
[MENTION=6175226]nitin.chobe[/MENTION] tried removing :386 from the command and still errors? Also tried changing number from 32 to 64, maybe replace :386 with :amd64 think I was reading somewhere....... Also from page 166 someone posted what they had do e but I was still not getting anywhere..... Could it be different since I'm on 15.10? Was thinking at first maybe already have recent packages but it would say that when trying to install. Maybe a missing repo..... Sorry first time setting up environment :/ noob here lol
[Android] neonkat:
[MENTION=5212860]raptor170[/MENTION]

press Y

it's a ****ing rom:D,it needs lot of things+disk size too(i read somewhere,~100gb to compile a rom)
[Android] raptor170:
[MENTION=5991747]neonkat[/MENTION] lmao, will do, I was getting too picky, I'm pretty sure if I'm missing anything I'll know soon enough ;) lol
[Android] AlanMercus:
pls help i got this error while compiling ...

I am newbie to this compiling thing...

target C: libdrm <= hardware/intel/img/libdrm/libdrm/xf86drmSL.c

target C: libva <= hardware/intel/common/libva/va/va.c

target C: libva <= hardware/intel/common/libva/va/va_trace.c

target C: libva <= hardware/intel/common/libva/va/va_fool.c

target C++: libva-android <= hardware/intel/common/libva/va/android/va_android.cpp

target C: libva-android <= hardware/intel/common/libva/va/drm/va_drm_utils.c

target C: libva-tpi <= hardware/intel/common/libva/va/va_tpi.c

target C++: libva_videodecoder <= hardware/intel/common/libmix/videodecoder/VideoDecoderHost.cpp

In file included from hardware/intel/common/libmix/videodecoder/VideoDecoderWMV.h:20:0,

from hardware/intel/common/libmix/videodecoder/VideoDecoderHost.cpp:17:

hardware/intel/common/libmix/videodecoder/VideoDecoderBase.h:28:24: fatal error: vbp_loader.h: No such file or directory

#include "vbp_loader.h"

^

compilation terminated.

make: *** [/home/alanmercus/cm12.1/out/target/product/a500cg/obj/SHARED_LIBRARIES/libva_videodecoder_intermediates/VideoDecoderHost.o] Error 1

make: *** Waiting for unfinished jobs....

make: Leaving directory `/home/alanmercus/cm12.1'

#### make failed to build some targets (42:06 (mm:ss)) ####
[Android] desalesouche:
you're missing that file: fatal error: vbp_loader.h: No such file or directory

after googling i found this.

May be this can help you?

https://github.com/CyanogenMod/andr...mmit/1b69a16ac4fa51c24b4be8f844a7253ed62cc710
[Android] bloodhound42:
someone help me to setup local manifest for falcon
[Android] desalesouche:
cm13.0 build error

Hi all i can't pass these errors: any clue please?

http://pastebin.com/71wzLYED

hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp:4433:18: error: 'V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY' was not declared in this scope

thanks all

---------- Post added at 12:14 PM ---------- Previous post was at 11:32 AM ----------

I guess this is the fix.

https://github.com/sonyxperiadev/device-sony-rhine/commit/9b07c3ad07287025d3c1a759114a00fed10d4d4a
[Android] ayazm.140895:
Some one help me out with these errors while setting up environment.

here's the link : http://hastebin.com/widapubabu.coffee
[Android] sahoorahul:
where can i get my micromax d303 's device identity .Please help...............

and i have jdk 8 so is this fine or i have to download jdk 6/7
[Android] ayazm.140895:
can anyone help me with this download errors ?

hastebin.com/ipopuxomem.coffee
[Android] Krishrocks:
Compiling Error

Guys anyone give me insight of this

Checking build tools versions...

build/core/dex_preopt.mk:48: *** target pattern contains no `%'. Stop.

#### make failed to build some targets (23 seconds) ####
[Android] desalesouche:
problem is coming from the fact that you wanna odex the rom but you also wanna build qcmediaplayer?

check this, https://github.com/msm7x30/android_hardware_qcom_media/tree/cm-13.0-caf-7x30

your media folder might be missing qcmediaplayer and dashplayer
[Android] flightdragonz:
Can someone pls give me the link for latest su bin (3.XX )

---------- Post added at 12:24 AM ---------- Previous post was at 12:23 AM ----------

I want to install su manually
[Android] stillchimp:
Hi, a great and interesting guide, I'm attempting to build my first ROM.

Here's where I'm currently stuck:

I'm basing my build on cyanogenmod 12.1 and want to do it for Nexus 7 2012 (grouper), I tried to search for CM Tree in the Nexus 7 forums and haven't been able to find it. Next I tried searching on the CM wiki for the device, http://wiki.cyanogenmod.org/w/Build_for_grouper, which gives a method that doesn't involve creating a local manifest, however it does say how to get the data from their github if you do want to. But after searching on github I still came up with a blank. It looks like CM github is split out into sub-repositories, and perhaps the instructions in the wiki are out-of-date?

What are the device, kernel, vendor that I need for my Nexus 7, and where *should* I have found this? (either here on XDA or somewhere on CM/github)

Thanks for any help!
[Android] KeTuRr74:
Here ?
[Android] asnaeb:
great work man
[Android] stillchimp:
Hi, thanks for the response. As I mentioned, that wiki seems to be either out-of-date or not clear enough about how to locate a device and the cm.dependencies, I can't find it there. Can someone please explain where to find the device?

I would try the breakfast command except that this guide advocates using a local manifest. I'm hoping that by following the guide I'll learm more about building more ROMs and for more devices.
[Android] myblessayu:
I am starting with this post, beginning with the requirements. Downloaded VMware WorkStation, and now for Ubuntu , which version should I go for?

the LTS 14.04 or the latest 15.10?

EDIT: I have Windows 10 Home x64 PC, 8 GB RAM, 1TB HDD, running on 5th Gen i5 processor!
[Android] LoneWolfSK:
LTS is long term support. You can use either, just bear in mind that they have to be x64 (64bit) distributions.
[Android] Rumorbox33:
Best Guide i've seen for building Android from source.:)

This will Help new learners like me a lot... :)
[Android] XLORX:
Fantastic guide.
[Android] navenedrob:
make: *** No rule to make target `/Volumes/DEV/tmp/out/aosp/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes.jar', needed by `/Volumes/DEV/tmp/out/aosp/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp'. Stop.

Can't find much information on this on the forum or Google. Anyone care to help? Using AOSP source + CM device tree and correct vendor blobs.
[Android] nitin.chobhe:
What device are you building for?

What all changes did you make?
[Android] haytham0xin:
Excellent, only this time I find someone who is pleased to provide this detail android science. I really appreciate this. Thank you very much :highfive:

Kindly permit marking thread, personally for reference material. :good￼
[Android] LiquidT:
Will this guide work if your trying to port a custom rom to a different device with some other changes to it? Can you test your ROM before putting it on a real device?
[Android] DSA:
these shoud help:

http://xdaforums.com/showthread.php?t=2545618

http://xdaforums.com/showthread.php?t=2245786
[Android] LiquidT:
Thanks. Will the information in those links work with lollipop roms stock/custom? Also will this threads information work on lollipop?
[Android] DSA:
you will probably have to change a couple of things due to lollipop, but the generics will probably be the same (i dont personally port roms, i compile from source)

There may also be posts in those threads relating to the questions you are asking - spend a little time reading through them and see what you can come up with :good:
[Android] hemantbeast:
Thanks for the guide. It really helpful.
[Android] RealGalaxyLink:
Thanks for this guide!
[Android] Jeik:
Hey guys.

So I forked the vendor,kernel and device from github to my account,signed in the terminal in Lubuntu,

repo synced after editing local_manifest,adding these lines:

I would repo sync after saving changes,and then I would get this error:

edit

also,here are the links to the git:

https://github.com/TeamRegular/android_kernel_alcatel_msm8916-stock

https://github.com/TeamRegular/android_device_alcatel_idol3

https://github.com/TeamRegular/android_vendor_alcatel_idol3
[Android] KeTuRr74:
Type this.

repo sync --force-sync ?
[Android] Jeik:
I hate my life....

Why cant it "fetch" the vendor? I properly signed into git,forked all the repos properly into my account...
[Android] KeTuRr74:
There is no master branch for the vendor.

Replace revision="master" with this revision="cm-12.1" or revision="cm-13.0" ifyou build for CM13.
[Android] Jeik:
I actually already figured that out(I am a noob,and figured that out-WOW,there actually may be something in my thick head).

Changed,typed repo sync again,now its operating...

IT SYNCED EVERYTHING.

What now? o.O

EDIT

typed in brunch idol 3,then got this:

EDIT#2

Then I got this error?

It did say this:

before trying to build the rom(after I typed "brunch idol3" in and pressed enter)
[Android] KeTuRr74:
Kernel is in /kernel file of your repo ?

Have you typed this command before brunch :

. build/envsetup.sh

?
[Android] Jeik:
Yes.

I will try again tho.

EDIT

The error is a bit different,but still pretty much the same.

The cm12.1/kernel/alcatel/idol3/ directory has many folders and files,obviously meaning that it shouldve worked,right?
[Android] nitin.chobhe:
[MENTION=4259820]ayazm.140895[/MENTION]

Focus on "Using prebuilt kernel binary instead of source"

---------- Post added at 12:20 PM ---------- Previous post was at 12:18 PM ----------

Check if the name of the folder is correct. You can check this in cm.dependencies file
[Android] Jeik:
I got rid of that problem some time ago,but now I have a new one.

The rom was building over night,and during the morning(I would look at it every 30 minutes or so),and then this error occurred:
[Android] nitin.chobhe:
Post the full log to hastebin
[Android] ayazm.140895:
[MENTION=5044214]nitin.chobhe[/MENTION] I am downloading kernel sources as there is no kernel sources in kernel folder. Only kernel. Mk is present.
[Android] Jeik:
Wait,how do I do that?

I cant start the procedure again,and then type the log-pull command. It took 9 hours of rom building for the error to appear...
[Android] nitin.chobhe:
If you start the build (it's called dirty), it'll appear in a minute or two

---------- Post added at 02:46 PM ---------- Previous post was at 02:45 PM ----------

That's good :cowboy:
[Android] Jeik:
What is the command for the log file?

I typed "brunch idol3 2>warn.log",opened a new tab and in it typed "tail -f warn.log"
[Android] KeTuRr74:
. build/envsetup.sh

brunch idol3

copy the log to hastebin.com ( all the log since the start to the error)
[Android] ayazm.140895:
hey [MENTION=5044214]nitin.chobhe[/MENTION] No difference. I have downloaded the kernel source code and placed the contents the of kernel source folder in nameless/kernel

and then I still get these errors.

http://hastebin.com/ejixoyajob.vhdl
[Android] Jeik:
http://hastebin.com/atujudexas.rb

This is the only error which appears...
[Android] nitin.chobhe:
Actual error is in the earlier part of the logs

---------- Post added at 04:33 PM ---------- Previous post was at 04:31 PM ----------

It should be in folder kernel/yu/tomato
[Android] Jeik:
I don't know where the error occurred.

I told you I left the PC to build the rom OVERNIGHT,resulting in a kilometer of logs.

And doesnt the command stop immediately when the actual fatal error appears?

Also,my PC froze,so I was forced to forcefully shut it down. Now there is nothing left to pull. ._________.

I will boot into Linux again and start the procedure again...
[Android] Jeik:
Sorry for double post,but I have a new error,which is making my PC lag so much that it is pretty much frozen.

I could only take a picture of the terminal.

EDIT

here is the hastebin link of the whole log:http://hastebin.com/eyerinofah.coffee
[Android] ayazm.140895:
[MENTION=280897]nitin[/MENTION]_chobhe how do i create a local manifest file?

<?xml version="1.0" encoding="UTF-8"?> <manifest> <project path="device/samsung/i9082" name="pawitp/android_device_samsung_i9082" remote="github" revision="cm-11.0" /> <project path="vendor/samsung/i9082" name="k2wl/android_vendor_samsung_i9082" remote="github" revision="master" /> <project path="kernel/samsung/i9082" name="pawitp/android_kernel_samsung_i9082" remote="github" revision="cm-11.0" /> </manifest> and mine is partially replaced - Mine is for nameless rom

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/yu/tomato" name="NamelessRom/android_device_yu_tomato" remote="github" revision="n-2.1" />
<project path="vendor/yu/tomato" name="k2wl/android_vendor_samsung_i9082" remote="github" revision="master" />
<project path="kernel/samsung/i9082" name="pawitp/android_kernel_samsung_i9082" remote="github" revision="cm-11.0" />
</manifest>

Do I really need a local Manifest file?
[Android] neonkat:
create a file named "local_manifest.xml" in .repo/*here* and paste the code there in the file.
[Android] nitin.chobhe:
It's not required but it makes life easy.

How are you syncing device specific files? Git clone?

---------- Post added at 08:26 PM ---------- Previous post was at 08:13 PM ----------

Have you seen this: http://xdaforums.com/showthread.php?t=2585207

What system are you building on?

---------- Post added at 08:28 PM ---------- Previous post was at 08:26 PM ----------

Have you seen this: http://xdaforums.com/showthread.php?t=2585207

What system are you building on?
[Android] Jeik:
Lubuntu 15.10,trying to build cm12.1.

Also,Intel Pentium with 4GB of RAM,not using Virtual Box,but dual-booting next to Windows 10.

How can increase SWAP then?

But I dont understand. Last night everything went smoothly(except for that error),but now I dont have enough RAM???
[Android] istperson:
The "local_manifest.xml" is deprecated, use instead a "local_manifests" folder and put your xml files there. You can call them anything.
[Android] ayazm.140895:
I don't how to create the customized code for my device.
[Android] ayazm.140895:
Hey, where do I create the "local_manifests" folder? in working_dr/local_manifests?

---------- Post added at 09:55 PM ---------- Previous post was at 09:52 PM ----------

@nitin.chobhe

chobheji, I have used git clone. I see that I have "device tree" and Kernel I have added myself and "Vendor" was also present. Now the question is

I have added the kernel (cm kernel) in kernel/yu/tomato

and I see a kernel on github https://github.com/NamelessRom/android_kernel_yu_msm8916/tree/n-2.1/android/configs

It is like https://github.com/NamelessRom/android_kernel_yu_msm8916

So, what should I name inside kernel/yu?

first, kernel/yu/tomato or kernel/yu/msm8916?
[Android] istperson:
In the .repo folder.
[Android] nitin.chobhe:
kernel/yu/msm8916
[Android] ayazm.140895:
[MENTION=5044214]nitin.chobhe[/MENTION] bhai, it was msm8939; finally edited it ,but here are the errors

http://hastebin.com/viqacenugu.vhdl

Few errors are common every time!

[B]find: `dummy': No such file or directory find: `../../../../../../external/hamcrest/src': No such file or directory find: `../../../../../../external/junit/src/org': No such file or directory find: `../../../../../../external/hamcrest/src': No such file or directory find: `vendor/cm/build/tools/droiddoc/templates-cmsdk': No such file or directory ln: failed to create symbolic link ‘libEGL_adreno.so’: File exists ln: failed to create symbolic link ‘libEGL_adreno.so’: File exists[/B] build/core/Makefile:46: warning: overriding commands for target `/home/mohammed/nameless/out/target/product/tomato/system/lib64/librmnetctl.so' build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/mohammed/nameless/out/target/product/tomato/system/lib64/librmnetctl.so' No private recovery resources for TARGET_DEVICE tomato build/core/tasks/kernel.mk:106: *************************************************************** build/core/tasks/kernel.mk:107: * Using prebuilt kernel binary instead of source * build/core/tasks/kernel.mk:108: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED * build/core/tasks/kernel.mk:109: * Please configure your device to download the kernel * build/core/tasks/kernel.mk:110: * source repository to kernel/yu/msm8916 build/core/tasks/kernel.mk:111: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building build/core/tasks/kernel.mk:112: * for more information * build/core/tasks/kernel.mk:113: ***************************************************************
[Android] nitin.chobhe:
See line no. 98 in your hastebin: vendor/cm/build/tools/droiddoc/templates-cmsdk

is this path correct?
[Android] ayazm.140895:
nope, rather it is vendor/cmsdk/cm
[Android] nitin.chobhe:
Enter the correct path then
[Android] ayazm.140895:
I don't get you. How do I enter the correct path and where? and there is no 'build' folder as expected while compiling.

expected:

find: `vendor/cm/build/tools/droiddoc/templates-cmsdk': No such file or directory

present: vendor/cmsdk/cm
[Android] KeTuRr74:
Those errors stop your build ?

If not, no need to add them because all roms have the sames errors but with differents roms so its common but normally dont stop the build.
[Android] ayazm.140895:
Yup, they stop the build. Check my full log in hastebin in previous posts
[Android] nitin.chobhe:
That path is specified in one of the .mk files. You've to find and correct it
[Android] ayazm.140895:
I think some files are missing like vendor/cm/build and downloading them would fix the errors.

But Cm 12.1 is too large to download.

The thing with your editing .mk files. I am not sure which one. There are many .mk files and most of it I don't understand what is written in it.

I feel like I should "QUIT Building". Everything so difficult.

My system is running on Intel core 2 duo e7300 2.67 ghz and 2gb ddr2 . So, how much time would take to build a rom?
[Android] istperson:
You should leave the first build for the night. But if you use ccache it will speed it up later. On my i7 2600 with 8GB RAM, now it's only 54-55 minutes after make clobber
[Android] nitin.chobhe:
It would take around 8-10 hours for a clean build

Why don;t you try that on Google Cloud? It comes with 2 months of free subscription. I learnt on those servers only. You need to have credit card to register on that.

There it takes 3-3.5 hours for building and repo sync is done in around 40 minutes :laugh:
[Android] ayazm.140895:
No credit card. And I have a debit card. Chalega? What about the errors? It is so frustrating. I have an external lab exam tommorrow too.

For creating PayPal account- sbi debit card will do? And what are the PayPal charges when get donations and any charges for account itself?
[Android] desalesouche:
cm13.0 for huawei g620s

Hi all i could see that in end of build.

does that could be a problem?

Thank you for helping :good:

actual cache size in device tree : https://github.com/surdupetru/android_device_huawei_g620s/blob/cm-13.0/BoardConfig.mk#L129

Reversing backward edges...

0/0 dependencies (0.00%) were violated; 0 source blocks stashed.

Improving vertex order...

Revising stash size...

Total 0 blocks are packed as new blocks due to insufficient cache size.

Reticulating splines...

max stashed blocks: 0 (0 bytes), limit: 214748364 bytes (0.00%)
[Android] Sv1ngen:
Hi

Im new to all this and im trying to build Resurrection Mix 5.5.9 for my OnePlus One. Im using Viritual Box on a windows 10 machine and i think i have everything

setup to start building. But after a 1 min or 2 my build halts with this message:

make: *** No rule to make target '/home/sv1ngen/RR/out/host/linux-x86/bin/dtbToolCM', needed by '/home/sv1ngen/RR/out/target/product/bacon/dt.img'. Stop.

make: *** Waiting for unfinished jobs....

host StaticLib: libz_32 (/home/sv1ngen/RR/out/host/linux-x86/obj32/STATIC_LIBRARIES/libz_intermediates/libz.a)

make: Leaving directory '/home/sv1ngen/RR'

I have no idea how to fix this. Looks like it has something to do with dtbToolCM.

Can anyone help me get past this problem?

//Sv1ngen
[Android] neonkat:
http://xdaforums.com/showthread.php?t=2662325&page=11

check post #108
[Android] Nikhil:
[MENTION=5216756]jackeagle[/MENTION] I can't see a post with build errors and their solutions. What happened to the solutions that I sent you? Change of plans!
[Android] jackeagle:
Na Really very busy these days so couldnt edit OP:eek::( will add it soon when i m free there is other guides too but my Time is big probs now will do it has soon has possible :o:):highfive:
[Android] VnnAmed:
I'm trying to build but I get errors.

marlab@u14:~/cm11$ brunch saga_userdebug
including vendor/cm/vendorsetup.sh
ls: cannot access device/*/saga_userdebug/cm.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_saga_userdebug". Stop.
Device saga_userdebug not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 76, in <module>
result = json.loads(urllib.request.urlopen(githubreq).read().decode())
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
ls: cannot access device/*/saga_userdebug/cm.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_saga_userdebug". Stop.

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

No such item in brunch menu. Try 'breakfast'