yashsingh1/xdaforums huggingface dataset:
[Android] mschief148:
Hey guys!! After execute the 2 step I get this errors:

Unable to locate package lib32bz2-1.0

Couldn't find any package by glob 'lib32bz2-1.0'

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

Unable to locate package mingw32

Package 'lib32readline-gplv2-dev' has no installation candidate

Unable to locate package lib32readline5

Unable to locate package libreadline:i386

Unable to locate package lib32bz2-dev

Unable to locate package libwxgtk2.8-dev

Couldn't find any package by regex 'libwxgtk2.8-dev'

Couldn't find any package by regex 'libwxgtk2.8-dev'

What Am I doing wrong? Thanks in advance
[Android] somadsul:
You did repo sync?

If yes thus you getting same error then just clone busybox repository again from here https://github.com/CyanogenMod/android_external_busybox

Where your makefile wants
[Android] GreenneeG:
thank you ... i'll clone it again .. i'm trying to build twrp for CM-A810F .. this is my first try in my whole life
[Android] somadsul:
Great,

It means you not cloned busy box before :laugh:

Thus you asking for busybox any ways then clone busy box from given link in external folder

Me too compiled TWRP for S5 G900H Exynos...
[Android] mihran_thalhath:
I am trying to compile RR N for my m8. I am getting this error. Its my first time building a rom. Hope someone will help with this
[Android] NepoRood:
AOKP has a working N tree for the HTC m8 on Git, both ROMs are CM based, so porting shouldn't be too hard. If that's the same device, anyway...

Link
[Android] mihran_thalhath:
It also has a official rr support. Just trying to learn new things. Didnt find any reference about the error on google. So I thought i would ask here!
[Android] nicesoni_ash:
Are sources for oneplus 3 and one plus 3T same? Cause I couldn't find one specifically for 3t.

Edit :

Ignore please as found them. I'll be basing then on Grarak sources.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] neonkat:
disable hw encryption in boardconfig.

TARGET_HW_DISK_ENCRYPTION := true
[Android] neonkat:
which rom are you compiling?
[Android] wingedpanther:
https://github.com/ezio84/abc-n_manifest
[Android] Infinity:
Copy paste the command line somewhere and remove those packages which are giving errors...

Try this!
[Android] Arvind7352:
Nothing wrong in it, all of these packages are either renamed, merged with another package, or has been deprecated. If you still aren't sure, there are guides to install Packages on various versions of Distros (Google is your friend)

In the command you've entered, remove these package names, so that errors won't come up again.

Same has been mentioned in the previous post.
[Android] Infinity:
https://hastebin.com/hakolosogi.scala

What does this gello error mean...and how do i tackle this

Thanks!
[Android] nicesoni_ash:
Try this.

http://xdaforums.com/showthread.php?p=70103232

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] josip-k:
Any help with this guys?
[Android] nicesoni_ash:
Can you read that yourself?

---------- Post added at 11:15 AM ---------- Previous post was at 10:58 AM ----------

DIdn't fix the issue for me. I put this command in terminal and then build. Same exact error at same time. So for the time being I again removed Gello from the package.
[Android] neonkat:
[MENTION=5764157]wingedpanther[/MENTION]

i went through your manifest and that rom.i guess that's an aosp rom,but why are you using media-caf?have you tried with android_hardware_qcom_media?same error?
[Android] bablu048:
help me please, i am getting this error while compiling AOSP.

ninja: Entering directory `.'
ninja: error: '/home/bablu_b048/pure/out/target/product/angler/obj/STATIC_LIBRARIES/libbootloader_message_writer_intermediates/export_includes', needed by

'/home/bablu_b048/pure/out/target/product/angler/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it

make: *** [ninja_wrapper] Error 1
[Android] josip-k:
Okay, anyone who has issues with jack server and Ninja_wrapper, try increasing your RAM. My machine has 8gb, and yesterday i couldn't build anything. I added 8G swap to it and today i built without problems. It doesn't hurt to try :)
[Android] nicesoni_ash:
Getting this failed error while building RR for op3.

http://pastebin.com/DXdVi9np

Any help is appreciated. Thanks.

Edit:

Also do I need to set two different OUT directories for my two different devices if I am building for two different devices on same sources? If I have to, how to make two separate out folders automatically I don't have to make clean every time I make one of the builds.

Thanks.

Edit:

Error was gone after I made the clean build.
[Android] mihran_thalhath:
Got the same error. Now I just cloned the kernel, vendor and device tree repos to their respective paths. Modified the makefiles of device tree and aicp vendor. Now it started to compile. Will update if the build is successful.

Edit: Compiled Successfully.
[Android] NepoRood:
I write my builds to a separate hard drive, but, adding something like this to .bashrc:

export OUT_DIR_COMMON_BASE=/path/to/out

Should keep your builds separated.

EDIT:

Wait, you said same source, 2 device. It "should" separate itself...

out/target/product/YOURDEVICE
[Android] nicesoni_ash:
Already in my bash file but that only does the work of a custom location of default location, how to separate two builds in two separate directories.

So if I build for two devices, I won't have to make clean every time coz I had those errors earlier and they were gone after I made a clean build.
[Android] Arvind7352:
That "feature" isn't provided by the Android BuildSystem, but you can do it for yourself, by using Bash Aliases.

Add these two lines in your .bashrc file

alias [B]out1[/B]='export OUT_DIR_COMMON_BASE=/path/to/out1';
alias [B]out2[/B]='export OUT_DIR_COMMON_BASE=/path/to/out2';

[I]Change out1 and out2 according to your desire[/I]

And then execute ~/.bashrc to set these aliases. If you want to make .bashrc cleaner, see if there's a file named .bash_aliases under the same directory, if found that, then add these aliases there, else keep it in .bashrc itself

Now, whenever you want to set the /out directory to folder 'out1', then just enter the name of the alias which does that and hit ENTER, it'd perform the respective command mentioned in this alias. Same is applicable for out2

Tip :

You can Incorporate these changes into a script too...

out1;
<commands_to_start_device1_build>
out2;
<commands_to_start_device2_build>
[Android] nicesoni_ash:
Thank, so my assumption is correct that building for two devices in same output directory will create issues while building?

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] Arvind7352:
I haven't heard of such attempts, most commonly, /out is completely cleaned before building for another device
[Android] amdev0101:
Hello, I'm porting Omni 7.1 to my tablet v400 (G Pad 7), Omni is not really CAF ready and needed loads of changes and cherry-picks. First of all I need CAF wlan from cm what made me update libhardware_legacy from CAF and CM. V400 uses qcoms powerhal so I had to use cm's qcom/common since Omni is still on android-6.0. Latest powerhal fetures needed updates in libhardware, I used CM's so bluetooth hardware was updated also what caused problems in system/bt since Omni uses AOSP system/bt. Again easiest was to use cm, this however needed changes in bluetooth app. Used cm's again reverting one commit, then I needed to implement features in frameworks/base. Then it finally compiled but Im getting boot certification error. Thats weird because changing fstab I built working twrp-3.03-0 from this tree. Anybody has any idea what could caused it not to boot? My local_manifest Hello, I'm porting Omni 7.1 to my tablet v400 (G Pad 7), Omni is not really CAF ready and needed loads of changes and cherry-picks. First of all I need CAF wlan from cm what made me update libhardware_legacy from CAF and CM. V400 uses qcoms powerhal so I had to use cm's qcom/common since Omni is still on android-6.0. Latest powerhal fetures needed updates in libhardware, I used CM's so bluetooth hardware was updated also what caused problems in system/bt since Omni uses AOSP system/bt. Again easiest was to use cm, this however needed changes in bluetooth app. Used cm's again reverting one commit, then I needed to implement features in frameworks/base. Then it finally compiled but Im getting boot certification error. Thats weird because changing fstab I built working twrp-3.03-0 from this tree. Anybody has any idea what could caused it not to boot? My local_manifest https://github.com/MyczkowskiAdam/local_manifests/blob/omni7.1/roomservice.xml

Writing this I got an idea to re-review libhardware and discard all the changes to bluetooth, then it may work. I'll see. Any help will be appreciated anyway!!

EDIT: OMNI CAN'T BUMP BOOT.IMG PROPERLY

I discarded all the bluetooth changes keeping them minimal, view my current local_manifest, I downgraded media codes and audio profiles back to LG's configuration but it still gave me ERROR: Boot certification verify. Previously I tried flashing boot.img from omni compilation on slimrom 7.1.1 I made - it resulted in device booting into a weird mode with black screen and device showing up as external drive with two folders (one with firmware blobs). Now I tried the other way around - boot.img from Slim 7.1.1 0.4 fresh today's build on omni build. Guess what, it booted up just fine. Conclusion - boot.img in omni build is not being bumped properly! I am so stupid... I will have to look into it
[Android] nicesoni_ash:
Not unless you make clean. There are two folders under out.

out/"rom name you are building for"/target

out/"rom name you are building for"/host

and in target we have

out/"rom name you are building for"/target/common

out/"rom name you are building for"/target/product

Now product has different folders for each device and nothing to worry about but common and host folders don't get cleaned up nor separated so they might be overlapping when building for two different devices.

I will again build for two devices after I built for first device and without cleaning, will see how it goes.
[Android] mihran_thalhath:
This is the error I encounter when I try to build. Can anyone help me out?
[Android] neonkat:
which device?

make sure your kernel tree got synced.

unknown target "m8"?
[Android] mihran_thalhath:
Yeah, device tree and proprietary vendors have got synced.
[Android] sagarshah1729:
Kernel source is not defined in the device tree..

You will need to define it to do inline kernel building..
[Android] mihran_thalhath:
Sorry, forgot to edit it. Figured it out myself. Now faced with another error. If I cant find a solution I will ask for help here.
[Android] savsir:
I try compile DU. Please help.
[Android] Hai96:
Iam still experiencing this problem and dont know how to fix it, hopefully someone here can help me :)
[Android] Imotep95:
FLP is "fused location provider", we removed it on the very begging of bringing Nougat to m8. I'm not sure whats happening now with it, maybe [MENTION=4090196]David 617[/MENTION]

can help, he fixed it actually.
[Android] Epirex:
Thanks for the tutorial
[Android] ab-samy:
Thanks [MENTION=5216756]jackeagle[/MENTION] [MENTION=5022494]Vivek_Neel[/MENTION] [MENTION=2822284]matt95[/MENTION] [MENTION=4918174]Red Devil[/MENTION] and All xda friends for helping me to build my first build from source.:)
[Android] nepotist:
Hello I am trying to build ROM for Samsung Galaxy Note 1 (I717). I am getting "Cannot fetch errors" when I do the repo Sync.

I am at the stage of Local manifest. (CM Tree, kernel and Vendor). I have used the CM Tree, kernel and vendor information from the following thread;

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

The only change that I have made to the local manifest from the above thread is change the revision value from CM 10.2 to CM 12.0.

After saving and exiting the manifest, enter repo sync -j2 command, I am getting "Cannot fetch errors".

Can someone please help me with this?

Thank you very much.
[Android] ab-samy:
The above CM tree that you want to sync does not have cm-12.0 branch. try cm-11.0
[Android] russellvone:
Bump
[Android] nepotist:
Thank you ab-samy! I updated the manifest file to CM11 and was able to sync few files and after sometime "Cannot fetch error " shows up. :(

I figured it out turns out there are internet connectivity problem at my work place. CM12 worked too.

Thank you
[Android] mohamed786:
As any one tell me how port a ROM from gingerbread to kitkat

Tell me how to choose base roms
[Android] nepotist:
This command gives me an error message:

I tried breakfast command too, it doesnt work. Any help, please.

THank you

Below is the Screenshot, Any help, please?

[IMG="Screenshot"]http://postimg.org/image/qqudepe99/[/IMG]

http://postimg.org/image/qqudepe99/
[Android] ab-samy:
Try this:

. build/envsetup.sh
brunch cm_quincyatt -j4

or type

. build/envsetup.sh

then type:

brunch

you will see list of devices and find exact name of your device from list and type it, for me (Galaxy S2 i9100) it is:

cm_i9100-userdebug

Good luck!
[Android] nepotist:
When I enter brunch, I don't see my device. It lists only 47 devices and mine is not one of them.
[Android] russellvone:
bump
[Android] katinatez:
Are you in your source folder, when you type repo sync?
[Android] russellvone:
Yes, this is after the initial source sync.....I added a local_manifest.xml then synced again and this is what I get.

I deleted the local_manifest.xml and tried again, and still this exact same output :/
[Android] katinatez:
Your local_manifest.xml is suppose to be in a folder called local manifests.

Are you running python 2?
[Android] russellvone:
it was before I removed it located......

russellvone/source/.repo/local_manifests/local_manifest.xml

I'm running Python 2.7.6
[Android] katinatez:
Go to .repo/manifest and in terminal type

git reset --hard

Then in same terminal

repo sync
[Android] russellvone:
thanks.... is synced, but still error

ive copied whole output for you

http://pastebin.com/5RabdnMp
[Android] katinatez:
I believe that error happens when you init repo refference like this

#example

repo init --reference=~/android/cm -u*git://github.com/AOKP/platform_manifest.git -b jb

you could restore the folder and it will sync or delete folder and resync source I do this when i go to bed because it will take 4 hours or more to sync. Then make a clone of repo like this

repo init --reference=~/android/cm-12.0 -u git://github.com/CyanogenMod/android.git -b cm-12.0

this will make a clone and it will only take 10 minutes, now if you mess up on one build you have a second to work with. But don't delete a clone repo or you'll have sync errors.
[Android] russellvone:
thanks, I'll look tonight, maybe I screwed it up with my local_manifest.xml
[Android] Deep Nox:
Thanks for a great guide. I am having problems editing the /.bashrc file. I run sudo nano, it opens up, scroll down to bottom, add the PATH info. But, the save and exit commands don't work. Tried to edit with text editor, but can't find the file. any suggestions? Also the get install file esd0-dev show up as non existant, can't find.

Thanks,

I got it! To save the file press shift and ctrl and o, to exit shift, ctrl and x. The libesd0-d3v was typed wrong.
[Android] somadsul:
Is that you added flag for kernel config or not? if not then you need to add in boardconfig
[Android] mihran_thalhath:
Solved it. Thanks! Now some error with sepolicy. I'll post it here if I didnt get any solution.
[Android] somadsul:
If you trying first time then disable sepolicy for now in boardconfig comment it & also in kernel defconfig disable it
[Android] Hai96:
I've read this at [MENTION=4090196]David 617[/MENTION] Unofficial CM 14.1 M8 thread in the third post. I've already modified GnssLocationProvider.java at frameworks/base/services/core/java/com/android/server/location from this

case DOWNLOAD_XTRA_DATA:
handleDownloadXtraData();
break;

to this

case DOWNLOAD_XTRA_DATA:
Log.d(TAG, "mSupportsXtra = "+mSupportsXtra);
Log.w(TAG, "Setting mSupportsXtra to false!");
if (false) {
handleDownloadXtraData();
}
break;

but it doesnt help.
[Android] maulik__p81:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/maulikp163/RRN/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libtime_genoff_intermediates/export_includes', needed by '/home/maulikp163/RRN/out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libandroid_servers_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/maulikp163/RRN'

#### make failed to build some targets (32 seconds) ####
[CODE]

Getting error.
Building for tamato
RR 5.8.0
[Android] sagarshah1729:
Add this flag to your kernel's defconfig..

make CONFIG_NO_ERROR_ON_MISMATCH=y
[Android] crutchcorn:
Say I have the source for CM14, but want to download the source for a ROM based on CM14. Is there any tutorial out there for a way to cherry pick changes or whatnot? So I don't have to redownload all of the sources again?
[Android] mihran_thalhath:
I think you can reference the source you already downloaded while syncing the new source, so it will only download the changes.
[Android] crutchcorn:
So that would be done using repo? Pardon my lack of knowledge. I'm a "developer" by name only (at least for anything Android). Great (arguably) at following tutorials tho
[Android] mihran_thalhath:
Check this out

http://xda-university.com/as-a-developer/repo-tips-tricks

PS: I am also new to this?
[Android] crutchcorn:
You're the man! Knew I saw it somewhere, but my intense Googling wasn't showing much.

Luckily I'm not the one even touching the sources, I'm asking on behalf of another (actual) dev of my device. I remembered this was a thing so I wanted to look for it to help.
[Android] ZeNiXxX:
Hey guys can someone help be solving the build error:

I already have removed ubertc and llvm....

here is the log:

https://hastebin.com/ubevujemej.sql
[Android] Modder001:
Try make clean first.. I think toolchain wasn't removed properly
[Android] Pacer_456:
deleted
[Android] ArjunrambZ:
hello guys

I'm fairly new to the android rom building section,, i would like to start now

oky before that i have some doubts about it so let me get in to it

My device is Lenovo k6 power (k33a42)

i have got the kernel source as well as the vendor source from the lenovo website

http://support.lenovo.com/us/en/pro...PS%3ABody_Search+Products&tabName=&beta=false

can someone check that whether it is a full source or partial one

and also i know that we need to create a new device tree (as the device is new i didnt find any till now )

can some one help me out with that (method to create a working device tree )?

help would be really appreciated,, thanks
[Android] TimSchumi:
If you want to make CyanogenMod (now LineageOS), there is a script called mkvendor.sh inside build/tools/device, which automatically creates a device tree skeleton for you.

So you do (when you are in the root of your source)

./build/tools/device/mkvendor.sh [vendor] [codename] [optional: path to boot.img]

And it will create a empty device tree for you in device/[vendor]/[codename]

If you added the boot.img, it will also try to populate some of the settings and also adds a prebuilt kernel.

If you are not building CM, you need to go through an existing device tree and look for the first commit, when the device tree was created.
[Android] Matt07211:
Quick question, what is the minimum required files needed to be downloaded to use the script (I know it needs the template files, but what else) cause I'm getting the device tree setup on my laptop and then using Google cloud to build, and one of the main reasons why is internet is limited.

Also can you point me to some information to modify the script it use a custom unpack booting tool? I'll be looking at the script tonight so this question may become redundant by then. :)
[Android] TimSchumi:
I don't know what the minimal requirements for this script are. Why don't you run the script on the cloud directly? After everything I heared about Google Cloud, you have a ssh console.

I did never change the script to use a custom unpack bootimg tool. But I'm sure you'll find how to do this, when you go through the script.
[Android] Matt07211:
Cause I don't want to spend half my time trying to get a tree setup for development, I want it get at least a base setup before using the free trial.

Yea I'll have a look at the script and see what I can do about that.
[Android] ArjunrambZ:
yes cyanogenmod itself, everything comea after that only, well i suppose i can try the mkvendor script , does it need to sync the whole source before using the script cus i havent yet started the work
[Android] sub77:
or change kernel toolchain prefix to androideabi

TARGET_KERNEL_CROSS_COMPILE_PREFIX := arm-linux-androideabi-
[Android] Imotep95:
Stupid lazy user here, ignore pls.. mods delete
[Android] Gaboros:
I'm trying to build a ROM but I get the following error.

ninja: error: 'out/target/product/<device_id>/kernel', needed by 'out/target/product/<device_id>/boot.img', missing and no known rule to make it

It's also give the error when I only want to build the kernel with "make bootimage". I don't understand this. Of course the kernel is missing I just trying to build it. BTW I have the kernel sources it's even compile the ramdisk.img but than fail with this error. What did I done wrong?
[Android] TimSchumi:
Are you sure you gave him the correct path to your kernel source? And that the defconfig name is correct too?
[Android] Infinity:
Check device tree and also go to out/target/(device name)/ and check boot.img is present or not (it is clearly written that this file is missing)

And which device ?

---------- Post added at 09:52 AM ---------- Previous post was at 09:51 AM ----------

If that the error...then i will damn simple to solve....

But i don't think so...

(Even we don't have full Logcat so can't comment about it)
[Android] Gaboros:
I think it's not a problem. It's compiling just fine. As I said it's also create the ramdisk.img but after this give me this error.

Why would I need the boot.img file already in the out folder? I just trying to make it. Or I'm I think something wrong? Sorry I'm totally new to android development.
[Android] TimSchumi:
ramdisk.img has nothing to do with kernel
[Android] Infinity:
Post full log error via hastebin...
[Android] Gaboros:
http://pastebin.com/cs89sR3V
[Android] Infinity:
What you building brother...

(Rom right ?....and i think aosp...then try command "make (codename)" -j4
[Android] Gaboros:
Yeah AOSP. It should be working, I don't know what I did wrong.

. build/envsetup.sh
lunch full_thor_k506-user
make -j4 bootimage

It compiled a lot of things just fine and after give me this error which I don't understand. O.o
[Android] MSF Jarvis:
make bacon not otatools
[Android] Infinity:
https://hastebin.com/awizanogoy.makefile

Please help me here guy's
[Android] DJKristy:
Can anyone tell me how long will it take to download marshmallow source code using a net speed of 1 megabits per second

Pls tell me how long did u all take to download the source code( pls mention ur internet speed and which version of Android did u download)

I want to start ROM development. Pls reply
[Android] Arvind7352:
Assuming the download speed to be persistently around 150-200 KiloBytes per second (1 Mbit/s ~ 100KBps), it would take continuous 1-2 (3 in worst cases) days to sync the entire source

ROM Source would be around 20GB.
[Android] DJKristy:
Ok thanks for the info

And is there a way to compile already downloaded android source code
[Android] Arvind7352:
Maybe you should re-frame the question ?

I mean it's obvious to compile the source code after syncing (downloading) it
[Android] DJKristy:
I saw a thread for downloading source code. Not from git. So I'm asking if this downloaded source code could be compiled.
[Android] Arvind7352:
Yes, it can be compiled.