yashsingh1/xdaforums huggingface dataset:
[Defy General] skeevydude:
I'm still gittin the hang of git...Over on the Bravo I basically got tired of waiting for Quarx to release roms, sometimes a new version would be weeks away or not coming anymore like CM7. I figured someone else on with a Bravo had to do it, so I started learning all this, plus I got tired of porting Defy roms.:p

Unlike the Defy which has 400,000 rom cooks, all the Bravo has is Quarx, Aleeyt, myself, and a few other porters who pop up from time to time. Quarx does everything:cool:, Aleeyt focuses on CM10, I do CM7 kangs based on Quarx's origonal Bravo repo with merges from Maniac103. I should also add that Walter79 tries his best to support us with MS2Ginger, but its not very popular on the Bravo due to the camera and usb tethering not working. If I didn't require tethering, I'd probably be using MS2...Our camera sucks and I could care less if it worked or not.

Its amazing how much I've learned on xda the past 9-10 months: from never using android before to compiling roms from source and having people actually want and wait for my releases. I have to give a big thanks to the Defy Team, especially Quarx, for all their help and posts I've learned from. Hell, it was a post from Quarx about AOKP compiling that allowed me to compile PA (up until that help post anyways).
[Defy General] Kayant:
Thats great to hear kinda the same with me after compling my first cm9 kang i wanted to port an AOSP rom from source and defy being my first android phone just made it more exciting as android was alien to me at that point :p

So I tried porting gummy rom but was unsuccessful in getting it to boot probably but now thanks to Quarx help I finally get a rom to boot ^_^...... I would say I know most hit commands now :)

Btw Have you tried merging the frameworks yet??

And keep up your great work we need more people like you, me and brajesh.sharma87 that ultizle XDA to the max not just be downloading roms and posting please fix this.... Bug etc.... XDA is also here for us to learn from developers and help them out apart from reporting bugs :cowboy:
[Defy General] skeevydude:
Finished merging a couple hours ago and its been compiling since. I'm almost to the point where it crashed last night. I think I may have incorrectly merged the java code in PhoneWindowManager.java, but I'm still trying anyways.

Agreed on the XDA to the max and learning from developers. There's more to do than just downloading roms from here and asking for bug help. I was here for 3 months before I created a user account, and I'd search multiple device forums to see if it was a universal bug or device specific and I try not to bother asking for eta's, fix this bug, etc...I do give some slack to the non-english users since they might not understand what was posted or what something means.

Well, forget that first sentence, just quit compiling. I didn't merge in settings.apk yet. I've been trying to add and remove as little as possible. Gonna merge settings.apk once I finish the dishes.
[Defy General] Kayant:
Good to hear the merging is going well.... Yh I know the feeling starting to compile then reliaizing you forgot some stuff :p

I really want to get back to some GitHub work but I got to compile full AOSP for defy and defy+ and also fix a syntax error am having in milestone 6 :(
[Defy General] brajesh.sharma87:
@Kayant: can you check if your AOSP JB has got libaudio.so by default in the ROM. My PA has been compiled successfully but its not booting coz libaudio.so was not generated in the output ROM during the process. Copying the libaudio in the ROM from another cm10 rom also doesn't work.

Whatever, I am gonna compile from scratch and will see tomorrow what's the issue. I can atleast breathe easily that the ROM compiled at least. :)
[Defy General] Shubhamqweasd:
hey brajesh , i just checked kayant's AOSP JB , it also doesnt have libaudio.so file ,

however it does have several other libaudioxxx.so files ..

btw , with ur compiled PA , u getting a bootloop with bootanimation or just a black screen ??
[Defy General] Kayant:
It does.... It's copied from the vendor folders.... I think it's the same thing that is causing problems with Full_AOSP

am going to go check it out and see if can fix it... If not then we need Quarx magical powers :)
[Defy General] Kayant:
@brajesh.sharma87

sorry to hear man hope you get better soon ^_^

All the errors can be easily fixed with cherry-picking and merging and for phone we can use Quarx phone app instead of cherry-picking :)

Thanks hopefully I find a fix ;)
[Defy General] claudiobastos:
One more to go: nandroid.c:106: error: undefined reference to 'mkyaffs2image'

Thank you guys. :good:

I'm haviing these errors now:

target StaticExecutable: recovery (out/target/product/mb525/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery)
/dados/repositorios/cyanogen/quarx2k_jellybean/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/mb525/obj/EXECUTABLES/recovery_intermediates/nandroid.o: in function mkyaffs2image_wrapper:bootable/recovery/nandroid.c:106: error: undefined reference to 'mkyaffs2image'
/dados/repositorios/cyanogen/quarx2k_jellybean/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/mb525/obj/STATIC_LIBRARIES/libbusybox_intermediates/libbusybox.a(mktemp.o): in function mktemp_main:external/busybox/debianutils/mktemp.c:94: warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
collect2: ld returned 1 exit status

I've google but without success.

Suggestions ? :confused:
[Defy General] skeevydude:
libaudio.so would be a success for Defy and Bravo users -- its the same file for both of us; that's why we build from the jordan-common. Almost all our proprietary files are the same. The difference in files from PA Bravo and PA Defy\Plus was adding in 4 extra conf files and maybe 16 extra lines between all the files :). The way Quarx set up the proprietary files & repos makes it really easy to build and setup repos for both devices.

Haven't merged yet -- that's why the overlay errors are there. Got tied up yesterday and didn't have time to get to it. I just finished forking some PA repos, setting up branches for paranoid on frameworks/base and settings (if you're using my repos, then set revision="paranoidjb" for frameworks/base and settings.apk). About to set up my Quarx JB remotes and merge from Quarx's frameworks/base and settings.apk. I've already merged in all the PA updates since forking. Once the Quarx merge is done then MotoFM shouldn't be an issue, nor should the overlay -- shouldn't being the key word; then all I have to do is deal with tiwlan & compile :). I've also set up my PA manifest to pull from a Defy Dev repo if it was set to pull from CyanogenMod; it may be why I don't have some of the errors you're getting.

Hope you get to feeling better.
[Defy General] Kayant:
In your .repo folder change Cyanogenmod/yaffs2 to tpruvot/yaffs2 then repo sync again and compile
[Defy General] skeevydude:
I'm not sure if CM10 compiles are the same as PA compiles, but I got the nandroid.c 106 error, changed to tpruvot/yaffs2 and still had it. After checking Epsy's repos I was still getting that error when I realized that there wasn't a jellybean branch to yaffs2 so I set it to revision="ics" and have gotten past that part.

The full line for that fix is

<project path="external/yaffs2" name="tpruvot/android_external_yaffs2" revision="ics" />
[Defy General] Kayant:
For me there is looool :p

This is the one i use for JB_AOKP

<project path="external/yaffs2" name="android_external_yaffs2" remote="TP" revision="jellybean" />

Look here - https://github.com/tpruvot/android_external_yaffs2/tree/jellybean
[Defy General] brajesh.sharma87:
In nandroid.c:106 change return to "return 0;"

This is what Quarx replied me when I PMed him but before his reply I switched to tpruvot in the manifest and that worked.
[Defy General] skeevydude:
That's good to know. I'm glad epsy's work so I don't have to fork and maintain it just for "0". :rolleyes:

Just started another compile...my last errors were with trebuchet. I was pointed to PA/trebuchet and changed to CM/trebuchet like in the PA xml. Hopefully it'll compile now (the frameworks merge compiled, haven't gotten to settings yet, but it didn't have any conflicts when merging so it should work).

What sucks is there are some PA frameworks\settings updates that I can't merge in until I'm done with this compile; but I think its going to finish this time (don't we all :p) I'll post results in 3-4 hours.

Once I get it compiling all the way, I'll fork tiwlan and wpa6 and add in the changes to them (we all know them by now) so my repos can be used for PA for all our devices. I'll PM the appropriate people with build instructions when its done. I'd offer to build for all 3 devices, but since it takes me about 4-5 hours per rom, including upload, building PA for 3 devices isn't an option for me.

---------- Post added at 12:19 PM ---------- Previous post was at 12:04 PM ----------

LOL, it helps when you move that nav bar down :o
[Defy General] brajesh.sharma87:
I will be happily compiling for mb525 and mb526. Lets see if I get success in the current compiling otherwise I will have to rely on you ;)
[Defy General] Kayant:
Btw Guys I fixed Wlan and wpa 6 check out my repos :) .... but I saw recently quarx forked wpa...
[Defy General] skeevydude:
I was using Quarx's forked wpa and was getting those errors. Once I'm done compiling I'm going to switch to your repos for ti and wpa and pull in the latest PA\Quarx changes.
[Defy General] brajesh.sharma87:
Proprietary file pulling problem solved, thanks to Kayant.

Now I hope that the rom boots after compiling and then I will add the changes skeevy did for framework and phone.
[Defy General] mihovil13:
Could my machine from sig help ? ;)
[Defy General] Kayant:
Well I wish you two Luck on compiling ^_^
[Defy General] Kayant:
That setup right there will be a God send ;)
[Defy General] brajesh.sharma87:
got it guyz :)

will build tomorrow for defy+ too
[Defy General] skeevydude:
Any Ideas? I've had the same errors with Trebuchet from PA's repo and CM. And :highfive: for your success.

Nevermind. I think I found the problem. Revision was set to ics.
[Defy General] Kayant:
Does PA have a Trebuchet repo??
[Defy General] skeevydude:
They did with ICS. The jellybean xml points to CM Trebuchet.
[Defy General] Kayant:
So was it the revision?? Hope it's working for you now :)

Btw report is wifi seems to be less stable with revision ics? :( for some reason. Am going to try use Quarx wpa and commit some stuff from ics.....
[Defy General] skeevydude:
I'll find out in another hour or so. I decided to set up my own vendor repos based of Quarx's with the addition of ParanoidPreferences.apk from SGS2 1.99.2 and did some tweaking with the device repos. Plus I merged in the latest updates of the repos I've forked for PA and switched to your ti and wpa repos.

If it works, all that'll be needed to build from source is:
[Defy General] Kayant:
Nice and I have changed wpa 6 I forked quarx one and ported some stuff from ics..... I want to see how that works

if you want to test it out revision is test_jellybean
[Defy General] skeevydude:
I was wondering what that branch was for. I'll try it out later tonight after this compile finishes.
[Defy General] brajesh.sharma87:
@kayant: I will set up my account on git today so ping me when u are available for help. I have zero knowledge of git, simply coz I never tried to learn it. :p
[Defy General] Kayant:
@skeevy420

What kind of errors are you getting???
[Defy General] brajesh.sharma87:
I guess we need to move this thread to Developement section so that more devs can see and advise us on our problems.
[Defy General] Kayant:
Not to sure on that ..... Firstly this is just a guide with no actually development... Secondly the people in the defy forum will just flood and mess up this thread like cm10 and other and we don't want that ;)
[Defy General] skeevydude:
Fully compiled and running. By the time I was done compiling it was around 10, did some sdcard cleaning, made a nandroid, and ran my first Jellybean Rom ever. I was having too much fun playing with my phone to post :victory:.

SystemUI was crashing when the gui became active, but I used the SGS2 SysUI and its working perfectly. I'd post a logcat of it, but I pushed the SGS2 apk before I thought about it:p

Agreed. I've even thought about making a private group just so people like us could talk about things like this w\o the floods of eta's, add this feature, fix my flash you mofos. :silly: As helpful as this thread is, the less noticed the better, besides, Quarx knows we're here and he's been helpful in giving us hotfixes and tips along the way.
[Defy General] Kayant:
Great work ^_^

Yep that's a perfect idea :D
[Defy General] skeevydude:
Made a private group here @ http://xdaforums.com/group.php?groupid=797

Sent invites to the following

aleeyt

brajesh.sharma87

Epsylon3

josuearisty

Kayant

m11kkaa

maniac103

Quarx

TweetyPeety

walter79

I'm sure I missed someone so let me know and I'll send out more invites.
[Defy General] yodawg:
Would you mind inviting me too? I'm planning to do a full cm10 build once I have downloaded the tons of sources ;) Thx in advance
[Defy General] lennox671:
Was starting to make my own build, and what a surprise when I searched on google to solve my build errors :D

I did some code modifications in the dalvik vm and relocked phone in ram, will test this afternoon ^^

So thank you all :good:

EDIT: Doesn't boot... the next time I will do a bit less modification before testing ^^

EDIT2: Found out that there are missing libs and framework parts compared to a Quarx build
[Defy General] sushi03:
I compiled my own build and i would not suceed so fast without the help of all of your posts. So maybe it would be very nice if at least the thread is readable so everyone planning a build for himself and coming in trouble is happy finding fast answers without doing the same effort others already did for the same error or bothering quarx with questions others already asked. So at the end we can concentrate on things we really wanna change or just having a image build by our selves on our phone.
[Defy General] Kayant:
Yh am going to add all the fixes to the first post soon.... Am currently doing other stuff atm.
[Defy General] lennox671:
I started all over again...

Now my build seems to be complete :)

I got a strange issue, it was a thing like no rule to make out/target/product/mb525/system/media/bootanimation.zip

so i just added TARGET_BOOTANIMATION_NAME :=vertical-480 to the makefile, but I think it's a bit dirty...

and the build took just 2h15 on my virtual machine :D

And is there a how to for learn to use repo proprely?
[Defy General] Kayant:
Did you repo sync first?? because the bootanimation was updated..... Always try repo sync to get latest updates befoe you compile..... When not really.... What do you want to do with .repo??
[Defy General] lennox671:
I did sync the repo yesterday evening, started the build and then i just went to bed.

And had this error this morning as I woke up. then I "fixed" it and started a new build, which is working fine as I'm running it now
[Defy General] Kayant:
That's great to see more people compile their roms and stop waiting for updates when you can update it themself ;)
[Defy General] FFU5y:
I would appreciate an invite too, if that's ok. I'm experimenting with PDroid/PDroidAddon integration and so being able to build is handy. (I have ICS builds working at the moment, and am running a test build of JB right now based on what has been posted, but I'd hate to be missing out on new info).

Update: Build worked fine with PDroid JB (from pastime1971); now looking over the implementation of some PDroidAddon features in JB (although CollegeDev, the original author of PDroidAddon has apparently already done it - just not released the code yet).

Cheers.

Edit:

Also, to avoid the problem with the boot animation file not being found (because of the change to /vendor/cm/config/common.mk), I added to the device/moto/mb525/cm.mk (which is what I use) the following lines right after the boot animation.

TARGET_SCREEN_HEIGHT := 852

TARGET_SCREEN_WIDTH := 480
[Defy General] yodawg:
A rebuild after an update shouldn't take very long, right? Only changed files have do get compiled?

Kayant: I think it is not neccessary to add all the fixes to the first post... the search function does a good job ;)
[Defy General] peter_harr:
Hi, I've been trying to compile for a while now but I've encountered many errors. Most of the errors could be solved thanks to this and many other xda-developers threads. However, this is an error I can't seem to solve by googling:

Any ideas?

EDIT:

Nevermind, after a closer look in the thread i found a similar error and fix :)

http://xdaforums.com/showpost.php?p=30666037&postcount=73 if anyone wonders.
[Defy General] yodawg:
Just wanted to say that the cm10-directory is ~13 GB big after a fresh repo sync.
[Defy General] Kayant:
You're right look like JB gained some weight from ICS :p
[Defy General] claudiobastos:
Compile but doesn't boot

Hi guys.

I got my first full compile of CM10 (based on Quarx2k works) \o/

but, it doesn't boot :(

Any tip on how can I debug/diagnose the problem ?
[Defy General] Kayant:
adb logcat then post the output here
[Defy General] Kayant:
Looks like it's a problem with multi boot not the rom..... try it in your main system I heard they're some issues with multiboot and cm10
[Defy General] claudiobastos:
doesn't work

I tried.

After blue led =>green led => red led...

and remains that way :(
[Defy General] Kayant:
Ok post a logcat of the rom on your main system....
[Defy General] labsin:
I kept getting an error in external/wpa_supplicant_6 that the .config file could not be build ('... no rules to make external/wpa_supplicant_6/wpa_supplicant/.config ...)

Seems that copying the android.config file worked (for now).

Don't have time to do the whole build. Especially now one of my ram slots broke. Don't think it actually mathers to have half the ram on my machine ^^

Is it possible to build just one package without building the whole thing first? (though you needed to for the mm and mmm to work)

Edit: On quarx's repo. Had a lot more errors on espylon's... Using Ubuntu 12.04
[Defy General] Kayant:
Not that I know of...... Yh I fixed that in my repo ;)

Like you said you need to build first before mmm will work...
[Defy General] claudiobastos:
logcat of main system

Hi Kayant,

I attach the logcat from main system that works (Jellybean powered by Quarx2k)

I am trying to build using

source build/envsetup.sh && brunch mb525

Is that right ?
[Defy General] Kayant:
Yh that's right ;) you can also use lunch if you want then choose cm_mb525 then mka otapackage bacon......

Yh so it was I issue with multiboot not the rom...... I think Quarx has fixed it now.
[Defy General] claudiobastos:
But I'm using 0903 version of Quarx, it still had multiboot problems ? :confused:

Why I can't use that build (the one I compiled) as a main system too ? :(
[Defy General] Kayant:
So you haven't tested the compiled version on your main system yet???
[Defy General] claudiobastos:
Yes, I tried,

and the LED does like :

blue => green => red , and stays that way without running (nothing in logcat)

if I try to enable ADB Daemon in Bootmenu, it reboots

:crying:
[Defy General] Kayant:
That's very weird never seen a compiled rom not boot before.......

Post a copy of your default.xml from .repo
[Defy General] claudiobastos:
I think its weird too...

Check it out my default.xml
[Defy General] Kayant:
Your repos are fine.... yh this is too weird ;)

Ok try to compile another one

Repo sync then before you use the source build/envsetup.sh command..... type make clobber or make clean... then lets see if this one works
[Defy General] labsin:
Can you break/pause the building process? I canceled the process last night (just with ctrl+c) and rebuild it today and it took (just) 1-2h. If it really just is 1-2h then it's still quite nice. (Got a 3.1 GHz Athlon II x2 with 2GB DDR3)

Btw: copying the android.config to .config was all I had to do in Quarx's repo (appart from setting up the build env ofc. Didn't have to ln the /usr/lib/i386-linux-gnu/mesa/libGL.so.1 in 12.04. Could be I had already done this in the past.). Strange that it doesn't work 'as is'.
[Defy General] Kayant:
Thanks for that I will add that to my repo for the roms I compile :D...... Yh it continues compiling from where you last left off..... That's a beast cpu you got there ;) It is dual core or quad??

Not sure if it's necessary to do that but i just do since it's on the source.android.com and in all tutorial I see for 12.04.

If you haven't ccache yet then do so your next builds will be faster....

export USE_CCACHE=1
export CCACHE_DIR=<path-to-your-cache-directory>
prebuilts/misc/linux-x86/ccache/ccache -M 50G change 50 to what ever value you want under 50....
[Defy General] yodawg:
It's Athlon x2 so it is Dualcore :D

I'm wondering how my Q6600 2,4 GHz Quadcore will do :D (but first have to download the whole thing :( )
[Defy General] claudiobastos:
Could someone test ?

I'm using ccache

and sometimes use make clean but didn't know of

make clobber

what is this for ?

my compile time:

real	36m35.930s

user	33m46.439s

sys	1m28.702s

(let it in background while I'm doing other stuff )

really don't know what can I do.

I put my last build in techbh.com.br/downloads/android

If someone could test it in multiboot or

check some files in zip ...
[Defy General] Kayant:
Make clean and make clobber do the the same thing but it think make clobber delete the out folder while make clean just the deletes the target folder....
[Defy General] Kayant:
Get to it then!!! :cyclops: It should be quite quick as long as you have at least 4gb ram with that ;)
[Defy General] Kayant:
Have you modified .mk files??? As this is the only way these things will not be made..... This is weird. I have never seen something like this before....:confused:. All I can say is try to make a new dir and compile again.
[Defy General] labsin:
Not much special, but good enough. For yours it should be much faster. And for the downloading: Github is quite fast. I'm always downloading with 1.6MB/s or so (my max bandwidth). Be sure to use -j4 or -j8 when building with a Quadcore and 8 or 16 GB do good to apparently. Wouldn't go buy it specially for building android tho :p
[Defy General] Pottkopp:
repo isn't finding your repo...

Get git://github.com/Kayant/android.git
fatal: remote error:
Repository not found.
[Defy General] Kayant:
I changed the name for salad bar :p...... Delete these folders and files in .repo manifests and manifests.git manifest.XML and project list then repo init and repo sync again :)
[Defy General] claudiobastos:
That's it

Thank you all! , I compile my first build \o/

I forgot that I change some mk before.

just to backing up what I've done:

- repo status (to indentify what I change)

- fix mk's

- repo sync

- make clobber

- rm -rf external/hostapd

- rm -rf hardware/ti/wlan/wl1271_softAP

- source build/envsetup.sh && time brunch mb525

:victory:
[Defy General] Kayant:
Yh I thought so ;) go to see it working now :)
[Defy General] claudiobastos:
It's working: in multiboot and main system. :)
[Defy General] Kayant:
My bad forgot to update readme :p

It should be this repo init -u git://github.com/Kayant/Salad_bar_android.git -b ics
[Defy General] Pottkopp:
uhm but I want to build aokp jb :D
[Defy General] Kayant:
For aokp check platform_mainfest on my GitHub....

Only CM really uses android to keep a list of their repos

Other teams usually use platform_mainfest

Yh I just saw my silliness :p sorry...... OP has been updated.... Thanks my friend for spotting that error :D
[Defy General] Pottkopp:
haha no problem already was so far thinking me or my pc's too dumb for that :D but mistakes make you a human :P