yashsingh1/xdaforums huggingface dataset:
[Android] calikevin:
I've been able to add the holiday to the lunch menu, but when I try to choose the number for the holiday I get these errors-

Which would you like? [aosp_arm-eng] 28

build/core/config.mk:159: *** No config file found for TARGET_DEVICE Holiday. Stop.

Device holiday not found. Attempting to retrieve device repository from SlimRoms Github (http://github.com/SlimRoms).

Repository for holiday not found in the SlimRoms Github repository list. If this is in error, you may need to manually add it to .repo/local_manifests/slim_manifest.xml

build/core/config.mk:159: *** No config file found for TARGET_DEVICE Holiday. Stop.

** Don't have a product spec for: 'slim_holiday'

** Do you have the right repo manifest?

Here is what my slim_manifest.xml looks like-

<manifest>

<remote name="holiday" fetch="git://github.com/"/>

<project path="kernel/htc/msm8660" name="calikevin/android_kernel_htc_msm8660" remote="holiday" revision="cm-11.0"/>

<project path="vendor/htc" name="calikevin/android_vendor_htc" remote="holiday" revision="cm-11.0"/>

<project path="device/htc/holiday" name="calikevin/android_device_htc_holiday" remote="holiday" revision="cm-11.0"/>

<project path="device/htc/msm8660-common" name="calikevin/android_device_htc_msm8660-common" remote="holiday" revision="cm-11.0"/>

<project path="kernel/htc/msm8x60" name="calikevin/android_kernel_htc_msm8x60" remote="holiday" revision="cm-11.0"/>

<project path="kernel/htc/msm8660-caf" name="calikevin/android_kernel_htc_msm8660-caf" remote="holiday" revision="cm-11.0"/>

</manifest>

I know I have some extra kernels and a device, I saw that they might apply to my device due to the msm8660, maybe I can use the kernels for other test builds or something... Does anyone know what I might be missing or maybe need to remove?
[Android] Haze028:
Look at how other devices are added. It looks like you've not fully added your device.

Check the slim vendor...is there a config folder? If so have you added a make file for you're device there?

Does slim use a slim.mk in the device folder, like cm does with cm.mk? If so is it added?

Check slimroms github, uses another device as a reference.
[Android] calikevin:
Okay, there's one thing I need to do... Where do I find the make file I need to add to the config folder, or do I need to create it myself?

Yes, slim.mk is there and I made changes accordingly.

I'm not exactly sure what you mean by use as a reference, do I compare all the folders and files in another device and make sure my device has the exact same?
[Android] Haze028:
nevermind on the config folder, just looked at it, not anything you need to do there.

out of curiosity what does your slim.mk look like?

and just for clarification on where you are in the process, you've already downloaded the slim source and your vendor/device/kernel?

if you havn't gotten your device/vendor/kernel repo's downloaded yet, the problem might be using slim_manifest.xml instead of local_manifest.xml ... i've not built slim rom so i'm not really sure how they have everything set up.
[Android] bariz143:
Hi guys one more question since no one answered the last one haha. I just build a AOSP build and i noticed that i dont get any GPS lock.not even one. Anyone want to help?
[Android] calikevin:
Correct, I've got all vendor/device/kernel sources that I need, I believe.. Here are my repo sources, slim_manifest btw-

<manifest>

<remote name="holiday" fetch="git://github.com/"/>

<project path="kernel/htc/msm8660" name="calikevin/android_kernel_htc_msm8660" remote="github" revision="cm-11.0"/>
<project path="vendor/htc" name="calikevin/android_vendor_htc" remote="github" revision="cm-11.0"/>
<project path="device/htc/holiday" name="calikevin/android_device_htc_holiday" remote="github" revision="cm-11.0"/>
<project path="device/htc/msm8660-common" name="calikevin/android_device_htc_msm8660-common" remote="github" revision="cm-11.0"/>
<project path="kernel/htc/msm8x60" name="calikevin/android_kernel_htc_msm8x60" remote="github" revision="cm-11.0"/>
<project path="kernel/htc/msm8660-caf" name="calikevin/android_kernel_htc_msm8660-caf" remote="github" revision="cm-11.0"/>

</manifest>

Do I need to make project paths that match up with the holiday, like should I change kernel/htc/msm8660 to kernel/htc/holiday? Would that help or hurt?
[Android] Haze028:
What does your slim.mk look like?

So all your device repos are already downloaded and in your working folder?
[Android] kaygoingpro:
bros@bros-laptop:~$ sudo apt-get install git gnupg flex bison gperf build-essential \

> zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \

> libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \

> libgl1-mesa-dev g++-multilib mingw32 tofrodos \

> python-markdown libxml2-utils xsltproc zlib1g-dev:i386

Reading package lists... Done

Building dependency tree

Reading state information... Done

gnupg is already the newest version.

libc6-dev is already the newest version.

zip is already the newest version.

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:

build-essential : Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed

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

what to do :confused:
[Android] Haze028:
Looks like you may just need to install the required dependency.

Try: sudo apt-get install dpkg-dev

Then retry installing the build-essentials again. This seems to be a common issue people are encountering.. Look back through the thread, solution may already be posted.
[Android] kaygoingpro:
I am doing repo sync and waiting as you told it takes a while

Now sir in part 3 i.e. preparing source nothing is given about slimkat and I am confused and how to make it work for my device i.e. Sony Xperia Ion.:silly:

And sir your work is awesome.:good:
[Android] raizbauer:
Questions!

Hello to all! first post here, my first question is, can I use this guide to create a jelly beam rom for my gt-s7562? since it only has ICS .... that could present problems in doing this? can be brick? how could I prevent this?
[Android] a2441918:
If you have a working cm tree yes u can but jb sources are outdated. If u have a kitkat tree well and gud.

---------- Post added at 11:20 PM ---------- Previous post was at 11:15 PM ----------

Go to slimkat repo and open the platform_manifest or android tree and sync sources.. once synced add ur device nd dependancies to local manifest and resync again. After that you need to edit ur tree to be compatible with slimcat. In slimkat repo search for the keyword device and if anything shows up go into it and search for slimkat.mk.. if cm.mk is thr well and gud u can proceed without changes. If any name other than cm.mk then you have to rename your tree simlarly as that one..edit the mk file and change path to proper vendor sources by referencing it from the vendor_slimkat tree. Voila thats all..

---------- Post added at 11:22 PM ---------- Previous post was at 11:20 PM ----------

First remove that remote. Makes no sense here. And i think the caf kernel has no use here.. see your boardconfig.mk of device tree to see what kernel it uses. And the format for your local manifest is wrong. Double check the format.
[Android] kaygoingpro:
After doing and editing this acc to my device and closing

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote name="name-for-remote" fetch="remote-url" />

<project path="destination-folder-path" name="repo-location" remote="name-for-remote" revision="branch" />

</manifest>

it shows this when i do add slim rom manifest line

bros@bros-laptop:~/working-dir$ repo init -u git://github.com/SlimRoms/platform_manifest.git -b kk4.4

fatal: manifest 'default.xml' not available

fatal: error parsing manifest /home/bros/working-dir/.repo/local_manifests/local_manifest.xml: no element found: line 1, column 0

bros@bros-laptop:~/working-dir$

And afer rom source i ve done sync the repo and forgot to add device source is that any problem??:confused:
[Android] BriKeD:
can i make rom for any android device?
[Android] santosjb:
Wow! Everything that I needed is here. Thanks for the share!
[Android] phanitej:
Amazing thread for starters.. Thanks for the efforts [MENTION=4153704]Haze028[/MENTION]

I have a ROM built and running successfully on my nexus 5. Im trying to compile the ROM with SM 4.8, how do i do that. I am unable to locate SM files
[Android] akshay-shah:
error

m trying to build rom from source can any1 help me wid d errors..i have attached the log file below
[Android] Haze028:
Sorry, what do you mean by SM 4.8?
[Android] Haze028:
Error says you're missing a file. Make sure you have all needed repos for your device.

Make clobber then do another repo sync. From doing a google search it seems that a repo sync may correct your issue. Just double check you are syncing all the repos your device needs
[Android] Haze028:
Yes...and no. You need to have or create a device/vendor/kernel tree for your device first.

If you have those than yes, if not than no.
[Android] BriKeD:
Thanks for your answer [MENTION=4153704]Haze028[/MENTION],

But i don't know how to find my s plus's device/vendor/kernel tree.

Do you know how to find that or please please find it for me?

I will be very grateful to you.

Thanks a lot:)

Asama
[Android] Haze028:
The forum for you phone here on XDA will lead to the trees you need.

http://xdaforums.com/galaxy-s-i9000/i9001-development

Go to a thread for a custom ROM and look for their github link. Get the vendor/device/kernel trees there.
[Android] akshay-shah:
Bro..I hav already done a repo sync several tyms..its missing a kernel/driver/videocore named directory which is not in ma source tree..neithr did I found it in d kernel sources from samsung opensource release center site..
[Android] phanitej:
Hi, sorry for not being clear. I meant sabermod
[Android] Haze028:
https://github.com/SaberMod?query=prebuilt

download the two 4.8 repos as zip files,extract them in the toolchain folder then follow the directions in the guide for changing toolchains
[Android] Haze028:
Which repos are you using? the cyanogen offical repos? also what rom are you trying to build again?

also again, which device are you building for?

also again, again, looking back over your error log you posted i noticed you ran make using the command

time make -j4 recoveryzip

I've not seen that before, maybe i'm just not with it though, have you tried using a normal make command like in the guide?
[Android] akshay-shah:
Ma device does not hav a source tree so I ma self created a source tree..evrythin is sorted apart frm dis error m getting...ma device is i9152 crater..for which I hav built a github repo..time make is just use to show usr hw much tym it took to build..m buildin for cyanogenmod
[Android] Itzamistry:
if i have an ubuntu laptop with only 50 gb free can i use that laptop if i have a 300 gb external hard drive plugged in at all times and just install android source to external hard drive
[Android] Haze028:
Yup.

It will be slower as you'll be restricted by the USB, quite a bit slower.

But it'll work.
[Android] Itzamistry:
do you think it is a better option to do that or run it on virtual box. On the laptop it has an intel pentium m processor 2 ghz, 2 gb of ram, and 60 gb of storage, its an old laptop but i'm thinking of fully installing ubuntu on there and using an external hard drive to install adroid source on there. So i think it would be better than using virtual box...on my other desktop its amd athlon II x2 processor 2.8 ghz, 1 tb of space, and 4 gb of ram...but on virtual box it is setup to have 1 gb of ram and 400 gb storage. I just want to know what is a better option and what will run smoother!!! thanks!
[Android] Haze028:
In the end, either virtual or not, you want as many cores and as much ram as you can throw at it. From what you were describing I would set a virtual box on you faster computer with as much ram and cores as you can give it. Keeping with that same 400gb HDD would be more than enough.

That said ideally you would use the whole systwm to build by running Ubuntu on it, maybe dualbooting with you're base windows. The more cores and ram the quicker the building process

When I was building last I was using a native Ubuntu machine with Intel quard core and 8 GB ram. Builds would generally take in or around two hours for me.
[Android] Itzamistry:
Ok if i run it on virtualbox i cant run it with all the ram because then my computer would freeze because it has no ram for windows so i probably will dual boot it thanks! I dont think touch screen qould work on ubuntu though i just hope it doesnt affect my windoes 8
[Android] Haze028:
That's your best option. And you may find Ubuntu works with the touchscreen... Or can

Edit: make a backup of your windows drive in case, but it should work fine.
[Android] Itzamistry:
everything is all good, i took my brothers desktop because he didnt use it...got ubuntu running on i3 8gb of ram and 500 gb space im all good now! thanks man
[Android] badaboumcrac:
Hi all, I really need help,I'm a newbie and I'm building for Sony Xperia SP (Hashuan) for cyanogen's source, but after "lunch" I've :

"Which would you like? [aosp_arm-eng] 57

build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/sony/huashan/cm.mk]]: "vendor/sony/huashan/huashan-adreno-blobs.mk" does not exist. Arrêt.

Device huashan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).

Found repository: android_device_sony_huashan

Default revision: cm-11.0

Checking branch info

CyanogenMod/android_device_sony_huashan already exists

Syncing repository to retrieve project.

Fetching project CyanogenMod/android_device_sony_huashan

Fetching projects: 100% (1/1), done.

Repository synced!

Looking for dependencies

Done

build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/sony/huashan/cm.mk]]: "vendor/sony/huashan/huashan-adreno-blobs.mk" does not exist. Arrêt.

** Don't have a product spec for: 'cm_huashan'

** Do you have the right repo manifest?"

I'm searching for adreno-blobs, but .. nothing ! Can you help me ?
[Android] Haze028:
Just did a quick google search and was able to find this github account.

https://github.com/recaf/fxos_vendor_sony/tree/master/huashan

There will be other places you can find this repo too, should you find that the repo tree on the above link has edits to it. As I said, I googled 'huashan-adreno-blobs.mk' and the very first link was the above github repo.
[Android] shahjalalbwdb:
liquid

please give here Preparing Source for liquid smooth i waiting for it
[Android] Haze028:
There really is not much different between build different custom Roms for your device. You're best bet is to pick a supported device from liquid and look at how their setup is.

I'm not sure all the exacts steps for liquid off the top of my head, if your still stuck later I'll look into it and add liquid specific steps in the quide. Generally you will need to add your device to the liquid vendor(should be similar to how other Roms in the guide do it), and add a liquid make file in your device tree(or edit your fullfull make file and add a liquid entry, again similar to otherothers in the guide)

Again let me know if you can't figure it out and I'll elaborate when I get a chance.
[Android] adomol:
[MENTION=4153704]Haze028[/MENTION] you should add in the OP that to build a rom you need a 64bit machine. I went through the whole process and found out the hard way. :(
[Android] Haze028:
I'm sorry about that. I really should have had that in there and will add it now. Thanks for the heads up.

Yes, a 64-bit machine became a requirement to build staring with gingerbread.
[Android] aazzam16661:
No File or Directory

Ok, I'm building Android 5.0 Lollipop Aosp Tag= Android-5.0.0_r2

The problem is that some files cannot be found normally and need some editing

For example:

device/htc/leo/custom_libraries/libsensors/AkmSensor.cpp:25:27: fatal error: linux/akm8973.h: No such file or directory

The file "akm8973.h" can be found in "kernel/htc/leo/include/linux" But, nope, the compiler can't find it

One workaround is that I edit it to find the file like this

Before:

#include <linux/akm8973.h>

to

#include <akm8973.h>

and then put the file in the same dir as the file asking for it "device/htc/leo/custom_libraries/libsensors/AkmSensor.cpp"

Please, help, I know this is not normal and if there is a fix, please tell me
[Android] Lordomn:
[MENTION=4153704]Haze028[/MENTION] how do i get my build to stop trying to use a prebuilt kernel? i have made the changes to the boardconfig.mk file but it still tries to use a prebuilt. thanks for any help.
[Android] Haze028:
​

Going on the assumption you're building aosp? Generally your best option is to first/seperatly build the kernel and add it as a prebuilt for your ROM build.

I'm sure its possible to set aosp to build kernel with ROM, though I'm not sure how that would work. I'd recommend doing kernel then rom .
[Android] DoxMAZz:
Can anyone help me?
[Android] Lordomn:
i tried that by doing this

source build/envsetup.sh from root dir. then i used mka bootimg but that only tries to build the rom again.
[Android] Haze028:
Follow this guide to build the kernel.

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

Then add the built kernel into the rom source and do the rom build again.
[Android] Haze028:
The error is that it cant find that specified file, I'd first try repo sync and make clean then try again.

I'm not much help beyond that, sorry.
[Android] navendugoyal:
Try make clean

Then run only make

without any -j flags
[Android] Haze028:
Sorry I'm confused as to how not specifying number of jobs would help.

Maybe I'm missing something, and always egar to learn if I am, but the -j flag tells the compiler how many jobs to run at once(instead of using the default number stated in the source).

Are you thinking the compiler is losing track of the files if its trying to process to many at once?
[Android] arunmcops:
Help Needed !

Getting this error which building CM-12.0 for Android One

Install: /home/arun/cm/out/host/linux-x86/framework/dumpkey.jar
target Prebuilt: (/home/arun/cm/out/target/product/sprout/system/bin/monkey)
device/google/sprout/sepolicy/device.te:6:ERROR 'duplicate declaration of type/attribute' at token ';' on line 11308:
type gpu_device, dev_type;
# GPU (used by most UI apps)
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/arun/cm/out/target/product/sprout/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
target StaticLib: libc_nomalloc (/home/arun/cm/out/target/product/sprout/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
target StaticLib: libc (/home/arun/cm/out/target/product/sprout/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)

device.te file reads this :

# Wifi device used by net daemon
type wmtWifi_device, dev_type;

# GPU (used by most UI apps)
type gpu_device, dev_type;

Any solution ? What to do ?
[Android] Vivek_Neel:
Its because of the declaration of the same attribute occuring at two places.

Just delete one declaration.
[Android] GalaticStryder:
I'm having the same issue building CM12 branch sources. Any help?

make: *** No rule to make target `/home/stryder/cyanogenmod/out/host/linux-x86/bin/dtbTool', needed by `/home/stryder/cyanogenmod/out/target/product/d802/dt.img'. Stop.
make: *** Waiting for unfinished jobs....

Tried changing .mk file deviceboot.mk and nothing. I have done all by the tutorial you posted my friend.

Thanks;

Ill report back when I solve this.
[Android] adomol:
Just finished setting up my 64-bit Linux Mint 17 rig with 2tb of free space. About to finally give this a try!
[Android] adomol:
Has anyone here successfully build a lollipop based rom using this guide?

[MENTION=4153704]Haze028[/MENTION]

Besides the need for openjdk7, does this guide apply to building an LP rom? I just built aosp from source for nexus7 for the first time using the guide from the aosp site, but i would like to try building slimlp for nexus 5,7. I'm especially curious about preparing the DEVICE SOURCE, since I would like to experiment with a couple of small edits there so I want to try using the GIT CLONE method to grab the device and kernel directories which slim has in their git. Do the directory structures still apply... device/manufacturer/codename, and kernel/manufacturer/codename? I was wondering about this because after building aosp, I have the device dir in my working folder but not the kernel dir... although the rom successfully compiled and installs on my n7.

As for retrieving the vendor source for nexus, that is the same as downloading the binaries/blobs from here, and extracting into the vendor directory of my working folder (SlimLP.) Is this correct or am off on this.

TIA for any insight to this.
[Android] aky_style:
[Request] Need some help

Hello [MENTION=4153704]Haze028[/MENTION]

Thanks a lot for an awesome guide on building from source.

Although, I am quite late in the party :P but its better to be late than never.

OK, back to business

I have below queries regarding building from the source:

1. Identify the source for my device is the problem, as CM does not have any (how do you guys actually find one) (am searching for LG Optimus One- P500)

2. As per CM, they support my device upto CM7, but I have seen a no. of roms floating in XDA for this device based on CM11 or CM10. So, how did those guys made them?

Sorry for the lame questions, but I am completely new to this and also very very Passionate to learn building rom.

I will not mind if you remove my post, but appreciate if you help me/redirect me to a correct way.

Thanks in advance.
[Android] soorajj:
LOCAL dex preopt

Can somebody help me, How to ODEX prebuilt apk in source build android lollipop (For eg cm12)
[Android] vendell5220:
cm12

Hi guys.

I tring to build cm12 for huashan and I get this error:

including vendor/cm/vendorsetup.sh

build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/huashan/cm.mk]]: "vendor/sony/huashan/huashan-adreno-blobs.mk" does not exist. Stop.

Device huashan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).

Found repository: android_device_sony_huashan

Default revision: cm-12.0

Checking branch info

CyanogenMod/android_device_sony_huashan already exists

Syncing repository to retrieve project.

Fetching project CyanogenMod/android_device_sony_huashan

Fetching projects: 100% (1/1), done.

Repository synced!

Looking for dependencies

Done

build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/huashan/cm.mk]]: "vendor/sony/huashan/huashan-adreno-blobs.mk" does not exist. Stop.

** Don't have a product spec for: 'cm_huashan'

** Do you have the right repo manifest?

Please help.
[Android] Hashbang173:
Put this in /vendor/sony/

https://github.com/TheMuppets/proprietary_vendor_sony
[Android] vendell5220:
Im ging to try it thanks.
[Android] vendell5220:
When I put that files to vendor/sony I've got same error. :/
[Android] Rohan purohit:
Add these projects in ur tree.. Andrpid_device_qcom_common device_sony_msm8960-common, device_sony_common, Devi ce_sony_qcom_common ..search them in cm github
[Android] Rio257:
can any body help i m getting this error while compiling slimkat [MENTION=4153704]Haze028[/MENTION]

http://pastebin.com/rk5xrN8n
[Android] Haze028:
Did a quick search... try this

sudo apt-get install lib32z1

found here:

http://askubuntu.com/questions/396473/error-with-libz-so-1-on-android-studio