yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] yozpalang:
when i do a repo sync will i be able to tell if there were any changes made ?

This is what I got

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

Syncing work tree: 100% (245/245), done.

I just don't want to do a build if there weren't any changes.

Thank you
[HTC Sensation] sparksco:
There's really no point. You can keep track of the changes on the ICS branch from HERE to see if it's worth your time to rebuild or not :)
[HTC Sensation] selectodude:
For whatever reason, whenever I run a repo sync now, it syncs everything and then spits out the error

error: revision master in OpenSensation/android_device_htc_pyramid not found

Any ideas?
[HTC Sensation] yozpalang:
I could be wrong but i think you need to change the master to "ics" here

<remote fetch="https://github.com/" name="gh" />

<project name="OpenSensation/android_device_htc_pyramid" path="device/htc/pyramid" remote="gh" revision="master" />

<project name="OpenSensation/vendor_htc_pyramid" path="vendor/htc/pyramid" remote="gh" revision="master" />

</manifest>
[HTC Sensation] selectodude:
Good call. Someone should update the local_manifest in the OP.

Thanks.
[HTC Sensation] yozpalang:
Question:

How long should it take to do a build ?

last night my first build took almost an hour but today( i wanted to see if everything still working :D) it only took like 8 minutes :confused: am i doing something wrong or is this normal?

i have i5 4gib ram

i followed this steps today

repo sync

. build/envsetup.sh

lunch (Select cm-pyramid-userdebug, it should be #20)

make CC=gcc-4.4 CXX=g++-4.4 -j# otapackage(Change # to the number of system cores on your computer)

also do I need to delete the last build's zip from /home/office/android/system/out/target/product/pyramid or will it be replaced with the new one ?

Sorry for being a noob :o
[HTC Sensation] blahbl4hblah:
Reason for that is because you didn't delete the out folder in ~/android/system. If you don't delete it it will take that long. For me I like to delete it unless I run into a compiling error which saves time so you can tell if passed the previous error or not.
[HTC Sensation] blahbl4hblah:
Been busy with school so ill do it when I get home. Sorry for the confusion
[HTC Sensation] yozpalang:
Glad I could help
[HTC Sensation] blahbl4hblah:
I've made the change for local_manifest.xml

I've also made a reference post in post#3 or #4 to help others look for some answers
[HTC Sensation] yozpalang:
Awesome thank you
[HTC Sensation] blahbl4hblah:
No problem at all, I think I'm in love with my desktop LOL
[HTC Sensation] blahbl4hblah:
Changelog:

- Youtube video playback (Vorbeth)

- Headphone/Headset working

- Facebook sync working

- Added Torch and Music FX

Download for 02-23-12

http://www.mediafire.com/?p3zu4ec6c81dimc

md5 - 49a86621fcb5bcc6c54debe2e9cc2833
[HTC Sensation] master.peterm:
@blah any chance for a pyro-ics with apps 2 ext :)
[HTC Sensation] blahbl4hblah:
LOL, I wish

Well see where this goes
[HTC Sensation] Vorbeth:
When your not on Ubuntu 10.04 brunch is broken, you need to pass CC & CXX to get compile to finish.

Regardless I always use a script, so all I ever type is

./build.sh

As always it down to personal preference too.
[HTC Sensation] seadersn:
on 11.04 it's working just fine...? thx for informations :) and jip @ pers.pref.; did it always this way, never thought about another one :)
[HTC Sensation] biggunsv:
Thank you for the great guide! It was very easy to compile CM9 by just following it step by step. You asked for information about compilation on VM, so here is what I've got:

Virtual Box 4.1.8 r75467

Host OS: Windows 7 Enterprise 64-bit with all updates

CPU: Intel Xeon E31230 3.2GHz (4 cores + HT = 8 virtual cores)

Memory: 8GB

Guest OS: Ubuntu 11.10 64-bit with all updates

CPU: 4 cores devoted to guest OS

Memory: 4GB devoted to guest OS

Compilation time: 47 minutes.

P.S. During compilation I was running Visual Studio 2010 with my project and did not notice any performance drops. So it is more that real to build CM9 on VM.
[HTC Sensation] matt95:
I have followed the guide a few days ago... Now how can I get all the new things added without do all over again?
[HTC Sensation] biggunsv:
As far as I understand, you should run

make clobber
repo sync

and then build again

. build/envsetup.sh
lunch cm-pyramid-userdebug
make CC=gcc-4.4 CXX=g++-4.4 -j# otapackage

where # is a number of your CPU cores.
[HTC Sensation] sparksco:
Yes that is correct. You shouldn't be running brunch on userdebug builds ever :)
[HTC Sensation] sparksco:
For those of you that running brunch on userfebug builds, reference the notes about what fattire has said for building cm9 for nook color. He does recommend lunch and not brunch because of stability issues.

https://gist.github.com/1499318
[HTC Sensation] tomS01:
I read this maybe help for somebody Breakfast, Brunch, and Lunch!
[HTC Sensation] sparksco:
Yeah that's a good way to look at it. That's why I like to run lunch and then mka bacon.
[HTC Sensation] matt95:
oh that one again? another 3 hr of download? :)
[HTC Sensation] Vorbeth:
No, it only pulls in new changes.

Takes a few minutes
[HTC Sensation] eggyenergy:
So when synced one time, the next time i sync i onky get small new updates? And when finished syncing i can compile when i want?
[HTC Sensation] matt95:
last time i typed make clobber al my "out" folder got empty...
[HTC Sensation] tomS01:
This way is much faster in my computer:)
[HTC Sensation] Vorbeth:
Oh yeah, "make clobber" causes a full rebuild.

I was meaning "repo sync" for pulling sources.

I wish it was only 3 hours for me, would speed up quite a bit my side, lol
[HTC Sensation] sparksco:
Sometimes the new changes don't always get built into the new builds unless you make clobber. If I run lunch first and then make clobber it doesn't always delete the entire "out" directory, leaving behind some old things. That's why I do "rm -rf ~/android/system/out" just to make sure.
[HTC Sensation] tomS01:
I have some of apk like bloomberg how can i put directly to my Rom?
[HTC Sensation] blahbl4hblah:
You could just add it in the rom after it compiles.

If it's a market app create a folder data then make another folder inside called app

Just simply drag the data folder into the root of the rom zip and it's done.

If you add market apps into the rom while it's compiling you most likely won't be able to update it without getting an error saying resigned error
[HTC Sensation] tomS01:
Thanks this easier what i made:)
[HTC Sensation] Vorbeth:
Apparently the build script I posted here is NOT welcome in this thread.
[HTC Sensation] sparksco:
Is this part really necessary when you could just do this? :confused:

Deleting the kernel, boot.img, ramdisk.img does nothing unless your updating the kernel all the time. Your still leaving a bunch of stuff behind.
[HTC Sensation] sparksco:
So facebook sync works now on this build? Great news :D
[HTC Sensation] blahbl4hblah:
No offense at all, but why are you putting your scripts in my guide?

Putting scripts that a lot of people don't understand is making them confused. Sure you can tell them to just put it in the root of the source but they won't understand how it runs.

I appreciate what you've done for sensation by opening CM9 to everyone.

Please do keep your scripts out of my guide.
[HTC Sensation] Vorbeth:
pointless outburst removed
[HTC Sensation] sparksco:
So far all I've seen you do is bash this guide from the start and posting your scripts here. Mutual respect? Comon now, if you had a issue with the guide you could of pm'd your suggestions to the OP and I'm sure you'd get the respect/credit you deserve. But this is not the way to do things.
[HTC Sensation] tomS01:
I use your script often
[HTC Sensation] seadersn:
xD again, bad vibs :( not that fatal as it looks to me, blah; he just gave tips? :D calm down, you two :) it maybe was a little bit overkill for most of the visitors of this thread, sure; but it's a nice script, sharing it won't hurt?

working together, not against, is the aim of this forum :)

omg, i really have to work on my english skills... and, blah, pls don't hurt me for this ;) it's only my opinion.
[HTC Sensation] blahbl4hblah:
I didn't give mutual respect? I think you missed where I said I appreciated what you've done for the Sensation.

Credit? Well I forgot something, I'm pretty sure the github name gives away who worked on it.

All I said was that you don't post your scripts, it's nothing rude at all. But your taking it to a higher understand to make it sound like I disrespected you which is not the case.

I'll change the device tree and vendor files, that's fine.
[HTC Sensation] blahbl4hblah:
By all means it wasn't my intention to start a small argument, I understand that sharing is caring. But my point was that this is a simple guide to which anyone can understand, putting something like a script to which someone doesn't understand might say "what does this script do and so on"
[HTC Sensation] sparksco:
I apologize in advance if this question has already been answered. But, has the OpenSensation repo sources been submited to Cyanogenmod gerrit for merging? I don't really see the point in keeping it separate in local_manifest.xml the entire time. Other devices have already been merged into gerrit ICS branch, so it's worth a try if it has not been done yet.
[HTC Sensation] Vorbeth:
No, I highly doubt they would accept it anyhow as kmobs already has a pyramid tree submitted, it's just being kept private.
[HTC Sensation] yozpalang:
I guess a "PRIVATE" open source is kind of a open source, as long as we call it open source right?
[HTC Sensation] sparksco:
If 99% is open source then yes. But it's missing the most important repositories, making it impossible to compile a build unless you have your own repo sources. I just don't see how they expect people to be able to test gerrit changes on multiple devices and in a timely manner by doing it this way. When I asked one of the members they simply say it will be released when it's ready. From what I've seen that could be up to a full year after the initial release of android 4.x at this rate, as it's already been about 4 months since it's release. They also say they are doing the same thing google does by not releasing specific device source code. Not to mention that Cyanogenmod is a community built distro and most of the changes are not even from CM members! I'll end this rant now because I could go on and on about this.
[HTC Sensation] Vorbeth:
For this I agree with you, now kmobs claims that they have to re-write most of what they had for the sensation before releasing a build.

Well I call that BS, most of the code that is needed is currently available in cm & or caf source already.

Look at the HP touchpad, that's a msm8660 device and currently has full hw acceleration and sound working from source.
[HTC Sensation] sparksco:
Yeah I'm calling BS also, I mean he could of at least released the GB source code for sensation after the stable release came out.
[HTC Sensation] sparksco:
For those people that are using lunch and mka CC=gcc-4.4 CXX=g++-4.4 bacon this is why it works so well and compiles faster because of the code in the envsetup.sh script:

function mka() { case `uname -s` in Darwin) make -j `sysctl hw.ncpu|cut -d" " -f2` "$@" ;; *) schedtool -B -n 1 -e ionice -n 1 make -j `cat /proc/cpuinfo | grep "^processor" | wc -l` "$@" ;; esac }
[HTC Sensation] mo976:
Didn't see that, I downloaded from the link in the post on page 30. Anywho I am running it on Kohr-Ah's latest 3.30 unlocked, all is smooth no new issues to report!
[HTC Sensation] SethNkC:
I am haveing this issue, "exited sync due to fetch errors"

I have repeated the process multiple times. I have checked the form and seen some one else has had this problem and said he had fixed but did not explain. Please help. Very noob. Thanks
[HTC Sensation] gbzbar:
I've been having the exact same errors since last night. I've pulled down everything successfully before, but last night I tried resyncing the repo from scratch so I could move everything over to a different partition, and the errors kept coming up.

I've tried multiple troubleshooting steps, and at this point I'm pretty sure that CyanogenMod needs to reset their git to get it working right.
[HTC Sensation] sparksco:
It's probably a problem with github a.t.m.

Try:

repo sync -f
[HTC Sensation] gbzbar:
Nope... the same errors still come up multiple times during the download process. The force keeps the download going, but I'm pretty sure that none of the source is actually downloding, it just keeps giving the same errors over and over again. Thanks for the suggestion, though. Anything else to try, or just wait for CM or github to fix the problem?
[HTC Sensation] SethNkC:
Same here....

Thanks
[HTC Sensation] sparksco:
I'm using my own repo source so I have no idea but something is definately messed up in the cm repo...
[HTC Sensation] tomS01:
Hi Sparksco!

How can i make own repo source?

Thanks

Tom
[HTC Sensation] Vorbeth:
It's an error introduced by koush: https://github.com/CyanogenMod/android/commit/8327388862650b77646d7ae9e633df2bfae3ec9c

You can edit ~/android/system/.repo/manifests/default.xml and change

<remote name="github"
fetch="http://github.com/"
review="review.cyanogenmod.com" />

back to

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

This will undo koush's change.

You may need to do this again, should anyone push a change to Cyanogen's android tree.
[HTC Sensation] sparksco:
Yeah I think it's supposed to be "https" and not "http"...
[HTC Sensation] sparksco:
It's quite complicated and it's taken me over a week to upload all the repos and get the source set up to build the way it's needed. I'm using gitorious.org instead of github.com because it's free for teams unlike github that wants to charge money. I don't have a ICS branch yet but as soon as the gingerbread branch is complete I'll work on a ICS branch. You have to deal with tags on the repos and stuff like that so it gets pretty tedious at times. Then you have to make your own vendor repo ect.
[HTC Sensation] Vorbeth:
According to https://github.com/blog/642-smart-http-support

http is correct, https is for private repos, or to have push access on your repository.

Just seems github is having issues with http right now, reverting to git solves this.

(I've tested and am syncing without error now)
[HTC Sensation] tomS01:
Ok thanks the quick answer.
[HTC Sensation] sparksco:
If you guys are using kde desktop and you have enough ram try out the file indexing feature, it really speeds up the compiling process :D My current pc has very litte ram but I'm using swap so it helps quite a bit. I have allowed file indexing up to 1GB of ram lol.
[HTC Sensation] sparksco:
From the looks of it this is better for private repos, maybe that's their whole reasoning for trying this change in the first place -__-

Once I get my ics branch up I'll let you guys know. Do you mind if I merge in OpenSensation sources to it? Some makefiles would need to be changed in the device source tree but it wouldn't be that difficult. If you want push access to it the site is here:

https://gitorious.org/+teamandroid

Let me know and I'll see about adding in more members once the ics branch is up and running.
[HTC Sensation] Vorbeth:
I don't mind at all, however a lot of qcom changes are about to be made, so it may be best to hold off for a little bit.
[HTC Sensation] tomS01:
I made an account on this:)
[HTC Sensation] sparksco:
Ok thanks, like I said it might be easier if your a member so that way you can just push the changes whenever you want and whatever branches you want also. Since you making most of the changes yourself, you'll know what's what and what everything does. I wasn't planning on merging anything until the rest of the ics repo soureces are up. I keep all the original commits on all the repos which currently are mostly cm's commits. That way I'm not hijacking/kanging the changes. The current gingerbread branch is compiling nicely and I'll be adding in the gingerbread teamandroid vendor repo soon. The reason I'm doing gingerbread first is to test everything out so I won't screw up the ICS branch lol.
[HTC Sensation] sparksco:
Oh cool do you have some good knowledge with git and source code? This is important to be a member but you can also make forks of the repo if you want to do little changes here and there. Mostly I just want one or two maintainers for each device and since I don't have a sensation would be better if Vorbeth and/or blahbl4hblah could do it. I can however get the initial base source up for ics and merge in new cm commits when I have time. I'll be testing cm changes for my device as well so it would benefit everyone. I'm just really getting tired of having a incomplete repo source. I'm not using a local_manifest.xml at all anymore which I really like :D But once the ics repo source is available I'll post instructions on how to get the repo set up for building. It'll be very similar to this guide but you'll have to make a seperate folder on your pc like android/TeamAndroid or something to that effect.
[HTC Sensation] Vorbeth:
Just a heads up,

If you sync your repo's as of tonight, compiling may fail.

While we are working on getting thing's working better we have merged some gerrit changes ahead of Cyanogen.

All the diverged repo's can be found on https://github.com/OpenSensation

@sparksco & blahbl4hblah

To resolve the above issue I have made a default repo that will pull the correct forward gerrit changes.

repo init -u git://github.com/OpenSensation/android.git -b ics
[HTC Sensation] TamCore:
Why does it requires GCC 4.4? Compiled fine here with GCC 4.6.2, Python 2.7.2 and openjdk 6.b24_1.11.1-1.

"Time to compile: 174 min(s) 31 sec(s)" on my Core2Duo T6570 with 8GB Ram and nicemode 5 :)

I think my kernel update (from source) slowed it a bit down. Next run should be faster :D
[HTC Sensation] blahbl4hblah:
It was a prerequisite before but I guess it's no longer required. I'll try it next time

Thanks for letting me know
[HTC Sensation] gbzbar:
Yeah, after that PM I got from you, I've tried compiling since using brunch with no switches (only as an experiment), and I've had absolutely no problems. Compile finished fine, and the ROM ran perfectly.

I get a full compile done in exactly 2 hours on an i7 with 8gb ram.
[HTC Sensation] sparksco:
According to this site you should still use gcc-4.4 on Ubuntu 11.10 systems:

http://www.android-dev.ro/2011/12/13/building-android-4-0-on-ubuntu-11-10/
[HTC Sensation] blahbl4hblah:
That's actually slow. Mine finishes in a hour and it's only a amd quad
[HTC Sensation] gbzbar:
Sorry, I meant i7 dual, not quad. It's a laptop, so new processor, but older technology. :(

And either way, its the same exact compile time that I was getting while using GCC 4.4.
[HTC Sensation] mpmilestogo:
HI Vorbeth. Just a question since I have been tracking the changes. When/if I make this change to my repos, do I still need the local manifest file per the instructions in 4c in the OP or does this repo take the place of those in the local file?

Thanks. Appreciate all the goodness coming!
[HTC Sensation] Vorbeth:
If your using your own repo, then you can remove local_manifest.xml
[HTC Sensation] sparksco:
So with most of the repos from this are cyanogen's so we won't have shh access right? I'll be working on a entire repo source for ics that will not just pull other people's repos but will allow us to have shh access unlike the cm repos. However we will still be able to test gerrit patches and merge in new cm github changes to our own repos...
[HTC Sensation] rawdealer:
I have fresh installed Ubuntu on W7 (dual boot) and while installing Java stucked again on this screen. How long I have to wait here....? It stays here for ages.

If I want to close terminal it says that something is working in "backstage" :D etc

Sent with a cold beer in my hand :)
[HTC Sensation] gbzbar:
Click on the window and press the right arrow key, and then enter. :)
[HTC Sensation] rawdealer:
Gracias :)))))
[HTC Sensation] tomS01:
Restart your computer and try make repo sync before you go back to 4c & control all step.
[HTC Sensation] rawdealer:
I did also this be4 your tip.

You can edit ~/android/system/.repo/manifests/default.xml and change
Code:
<remote name="github"
fetch="http://github.com/"
review="review.cyanogenmod.com" />
back to
Code:
<remote name="github"
fetch="git://github.com/"
review="review.cyanogenmod.com" />

Now is working....
[HTC Sensation] Bastaerd:
Thanks, that also fixed my syncing problems.
[HTC Sensation] blahbl4hblah:
I hope everyone is having a successful compiling time. The strange thing about the github issue is this. I do not have that issue at all.
[HTC Sensation] rawdealer:
hmmmmm I did all things like it is the guide and got this message....again :D

step: 5b

Which would you like? [full-eng] 20
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/pyramid/cm.mk]]: "device/htc/common/common.mk" does not exist. Stop.
Device pyramid 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 16, in <module>
result = json.loads(urllib2.urlopen("http://github.com/api/v2/json/repos/show/CyanogenMod?page=%d" % page).read())
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 394, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 412, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1201, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1171, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/pyramid/cm.mk]]: "device/htc/common/common.mk" does not exist. Stop.

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

Thanks for helping me :)
[HTC Sensation] blahbl4hblah:
You didn't make a local_manifest.xml file. That's the only reason for why that would show. Without that file you wouldn't be downloading the device tree and vendor files
[HTC Sensation] Vorbeth:
In my effort to get HW Acceleration working correctly the current OpenSensation repo's may fail to compile.

I'm working as hard and fast as I can to get thing's resolved.
[HTC Sensation] rawdealer:
I have downloaded device tree and vendor files...what should I do now?

this is my local_manifest file

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

<remote fetch="https://github.com/" name="gh" />

<project name="OpenSensation/android_device_htc_pyramid" path="device/htc/pyramid" remote="gh" revision="ics" />
<project name="OpenSensation/vendor_htc_pyramid" path="vendor/htc/pyramid" remote="gh" revision="ics" />
</manifest>
[HTC Sensation] blahbl4hblah:
That's very strange then can you take a screenshot what's in the device tree

Just want to be sure everything is in there
[HTC Sensation] rawdealer:
Which folder is this? :)
[HTC Sensation] sparksco:
Did you repo sync after you made your local_manifest.xml?
[HTC Sensation] rawdealer:
Yes, it was syncing for few hours :O :D
[HTC Sensation] seadersn:
device/htc/pyramid

vendor/ " / "
[HTC Sensation] sparksco:
Then it didn't finish syncing your work tree. Don't do repo sync -j, just repo sync. I've already told this to multipule people, use the thread search feature!
[HTC Sensation] BurnRubber90:
error: RPC failed; result=18, HTTP code = 200MiB | 213 KiB/s
error: RPC failed; result=18, HTTP code = 200 | 127 KiB/s
error: RPC failed; result=18, HTTP code = 200 | 117 KiB/s

I'm getting that error and sync sticks there. What's going on?
[HTC Sensation] sparksco:
It's a common mis-conception that people need to put -j when doing repo sync. It does nothing but causes issues.
[HTC Sensation] sparksco:
Rawdealer it looks like you missing the htc/device/common repo which is being called upon by the OpenSenation repo source. You should ask Vorbeth why it's calling on this repo.