yashsingh1/xdaforums huggingface dataset:
[HTC Rezound] tmanschuette:
After I setup my box, what command do I use to pull source?

I tried:

repo init -u git://github.com/vigor/android.git -b cm-11.0

And got errors. I tried just making a script with the contents of initrepo.sh and ./ it, with no luck. I really want to start this tonight because I know it will take awhile, so please help!

Also I think I setup ccache, but I'm not sure. Anything that will help build faster would be awesome. If anyone wants to gtalk and help me out I would really appreciate it!

I was picking off of two guides, so it's very possible my box isn't setup right. Mint is a little different than Ubuntu, so some links may be different..

Edit: Here is the error I am getting when I try to manually run through the repoinit.sh script line by line.

/home/travis/android/bin/repo: line 1: syntax error near unexpected token `newline'

/home/travis/android/bin/repo: line 1: `<!DOCTYPE html>'

I am thinking I put something in the wrong place, but I can't find it...

Update: The /bin/repo from the Cm10.1 guide is messed up somehow. I downloaded the one from the other guide i'm using and something is finally happening!

Repo Sync initiated!
[HTC Rezound] REV3NT3CH:
[MENTION=4309923]tmanschuette[/MENTION] pm me and ill show you what to do to set it up
[HTC Rezound] tmanschuette:
Check your pm. I cancelled the sync for now. It was downloading at incredibly slow rates and the box reported 2+ weeks to do the sync, which just doesn't sound right...
[HTC Rezound] pbcupcake:
Minor bug

A very minor issue has popped up in which the voice mail icon stays on the screen even after deleting voicemails. I can get the icon to go away if I clear voicemails then restart the phone.

Also, was the screen shot from the power button removed on your end or was that something that the official CM build did?
[HTC Rezound] Chucktr:
Terminology...

Sorry... terminology. Don't mind UpDates -but- don't want to change to some other recovery. That is what we meant. We'll move up to the 2.6.3.3 and try again.

Thanks,

Chuck
[HTC Rezound] REV3NT3CH:
go with 2.6.3.0 first....2.6.3.3 was made for kk only and will break certain things if trying to install anything...even kernels i believe it wont work....2.6.3.3 fly made for a quick kk fix but is no longer needed....
[HTC Rezound] Hobox10:
Alright, so I've realized that the incredibly slow, laggy scrolling has some really weird aspects to it. I'll use Gmail as an example:

So, if I never allow the emails to load images, it scrolls perfectly fine. It doesn't get unresponsive until I allow images to load.

Here's the weird part: It is only slow when scrolling vertically. If I move the email side-to-side, it will display perfectly fine. This is the exact same in the browser too. It has to be a perfect horizontal scroll, the slightest bit of a diagonal scroll and it will be the laggy, unresponsive movement that usually results in a force close. But they all only happen when there's such things as images on the screen.

Hope that info helps solve any issues, especially the (very odd) vertical vs horizontal part.
[HTC Rezound] el Filou:
What do you mean exactly by 'work'. I've tried CM11 with v2.6.1.0 and it flashed withtout any errors. Do you mean some things may have failed to flash or flashed in an incorrect way and it didn't tell me?
[HTC Rezound] galaxyfreak:
Hopefully you got my point.
[HTC Rezound] dlumberg:
...and then there were none... lol
[HTC Rezound] Neo:
Hangouts: DavidEddlemon@gmail.com
[HTC Rezound] REV3NT3CH:
this is all part of the display errors we are still working...both in kernel and in thr rom itself....alot still isnt shaking hands and it seems when we fix one thing something else breaks because of it...we are getting pretty close to narrowing everything down for this issue though
[HTC Rezound] _litz:
Y'all have to realize ... this is something akin to running a diesel motor on gasoline ...

If you don't tweak everything just exactly right, BOOM!
[HTC Rezound] Chucktr:
Could use some cherry pickin' help...

Allllllllllrighty now.... we got our recovery UpDated from TWRP 2.6.1.0 to TWRP 2.6.3.0 and it still failed for the same reason. We checked into the cherrypick and could not figure out how to use/add it. In order to avoid spending days in Internet searches for information... could someone give us a few hints on how to use them???

Thanks,

Chuck

P.S.

We would gladly move our building conversations over to the "proposed build site" at:

IF it is monitored and we could get assistance there. Sounds like an excellent idea. Even though it is not fished yet we could still converse. The extraneous questions are as annoying to us as the build questions are to others. That is NOT meant to be mean ar cause any hard feelings. It is just a statement of fact ... as nice as it can be said in print where "friendly expressions" are difficult to display. Ok??:o
[HTC Rezound] _litz:
There are all kinds of nice friendly scripts to help you out in the "Build Scripts" folder, which if you used initrepo.sh, will be located in the /vigor directory under your build root.

One of those is "cherrypick.sh" which can be used to apply the cherrypick.

In fact, the first cherrypick in the list, should be the one you need. Just search for "getcherrypick" in the file, or hit page down about four times.

Comment all the others out, except that single one, at first.

(most of those are merged by now anyway)

Copy this script to your build root, then "./cherrypick.sh check" to verify your list of picks, and if they are new, merged, abandoned, etc.

Then "./cherrypick.sh auto" to apply. Do this AFTER a repo sync, and BEFORE you initialize a build.

Which, btw, there is a handy "make.sh" script in there as well. Read the README.
[HTC Rezound] kaluna00:
Has this rom been updated since 11-24?

I know there has been lots of posts. I was just wondering if Neo has updated the zip file.
[HTC Rezound] DarkCodedDragon:
Not yet... Its been quite busy time.. I believe we will have something soon though.. Is any one working on port of Ubuntu Touch for Rezound ... I might try and port that....
[HTC Rezound] iamwalterwhite:
No. Fly released an ion test version a couple of pages back. Don't worry though, when our devs get quiet for a period of time it means that they have something big going on and are ironing out kinks before an update. Neo is good about updating the date on his op, so just check in periodically and don't worry about missing out :D
[HTC Rezound] Chucktr:
No Cherries!!

Nope. We did a "repo sync" and then looked for "cherry" and the only thing we found was:

~/android/system/kernel/htc/vigor-3.0/driver/hid/hid-cherry.c

no cherrypick.sh

Thanks,

Chuck
[HTC Rezound] _litz:
Look in the /vigor folder in your build root. There is a "Build Scripts" folder under there that contains sample scripts.

Everything in the "Android" project on github is mapped to this folder.
[HTC Rezound] mengma021:
the rom is soooo stable I have ever been try. thanks : D

Also there are some small issure, and i check the posts almost everyday to find if there is an update. So I wonder if there will be an update and when:)

BIG thanks from chinese!
[HTC Rezound] Jonman409:
The commit that fixes YouTube fixes turn by turn navigation audio for me.
[HTC Rezound] Chucktr:
Still no cherries...

ctaylor@dusty-tr2:[COLOR="Red"]~/android.cm11/system[/COLOR]
> lsd
abi/ bionic/ cts/ development/ external/ initrepo.sh* libnativehelper/ out/ prebuilt/ system/
android/ bootable/ dalvik/ device/ frameworks/ kernel/ Makefile packages/ prebuilts/ tools/
art/ [COLOR="Red"]build/ [/COLOR] developers/ docs/ hardware/ libcore/ ndk/ pdk/ sdk/ vendor/

> lsd [COLOR="Red"]build/[/COLOR]
buildspec.mk.default CleanSpec.mk core/ envsetup.sh libs/ target/ tools/

We performed a search from the ~/android/system for "cherry' and the only thing we got was what we mentioned in the last message. Now as we constructed this message we searched for "cherrypick.sh"(without the quotes) from the ~/android.cm11 dir -and- it was not found. Perhaps you obtained it somewhere else and forgot that you got it somewhere else?? :o -OR- it is because we are on different systems??? We are using openSuSE 12.3.

Thanks for your efforts,

Chuck
[HTC Rezound] dlumberg:
If you go to the page from that link there's a block in the middle with a bunch of tabs. If you click on the tab that says "cherrypick" it'll give you the code you need to run from the base directory for the commit.
[HTC Rezound] Chucktr:
What Link??

Oh thanks... you brightened my morning with with a chuckle.:laugh: And my answer may brighten yours with a chuckle... or not. Anywho, what link??? What I displayed was a listing of my dirs from a terminal... my terminal. Those were files and other folders. Not links. Sorry -but- evidently I am missing something somewhere. Could be a few brain cells -but- that is cause of heart attacks and old age.:p

If you could be a little more explicit on the link we would greatly appreciate it.

Thanks,

Chuck
[HTC Rezound] bunchies:
i think he may be talking about take the code from here: https://github.com/vigor/android/blob/cm-11.0/Build Scripts/cherrypick.sh

and copy/paste into a empty document and save it as cherrypick.sh

or maybe even running them individually from the link
[HTC Rezound] tmanschuette:
Once you pull source, you have a copy of everything though. He shouldn't have to go through github.
[HTC Rezound] bunchies:
i know but he cant seem to find it, but that also makes me wonder if anything else more important could be missing.
[HTC Rezound] Chucktr:
It's not there..

Ok now, most of you have been doing this for quite some time. I am relatively new... to the phone programming -but- have programed in COBOL, PL/I, 'C', Basic, Fortran, HTML and Assembly Language. So, I do know a little bit. Now that was NOT braggin' just lettin' you know that I know.:p

OK, with that out of the way, we setup a "Brand New" Environment. So we have nothing "Leftover" from previous builds. Upon execution of initrepo.sh we got "ALL" the sources that it provided. Even did and UpDate via "repo sync". Now in my Linux we have a directory viewer called Dolphin. In that, there is a search facility -- find. We used that and searched the whole shishcabob and there was NOT a "cherrypick.sh" anywhere to be found.

The first time we saw anything remotely like what was being talked about was when bunchies pointed us to:

https://github.com/vigor/android/blob/cm-11.0/Build Scripts/cherrypick.sh

So, "we" might want to look at what is offered -or- what "we think" is offered when an init or update is performed. You might want to create a "Brand New" Environment yourselves and see what happens. Just a thought,

Thanks again for all your assistance,

Chuck

=======================

Ooooohhh ok. The thing online is

android/Build Scripts/cherrypick.sh

-But- that does NOT show up on our machine after an init or update.
[HTC Rezound] Chucktr:
Don't think it worked...

We edited the "cherrypick.sh" file and commented out all the picks except 53559 which, as was suspected, the first in the list. However, looks like it did not work.

gitpath: ''

fatal: Invalid refspec 'refs/changes/59/53559/'

Done with 53559 (retval = 1; merged = 0)

Done with CM Cherrypicks, current result value : 1

Script result value : 1

Thanks,

Chuck
[HTC Rezound] dlumberg:
The attached image is a screenshot from this page: http://review.cyanogenmod.org/#/c/53559/

Notice that the cherrypick tab is selected. It changes the code inside the text box depending on what tab you are on. Notice that the repo that it is pulling from is android_build so then you need to apply the cherrypick in the ~/android/build directory.

from the terminal:

cd build
git fetch http://review.cyanogenmod.org/CyanogenMod/android_build refs/changes/59/53559/6 && git cherry-pick FETCH_HEAD
[HTC Rezound] Chucktr:
Playing with my mind... and there is not much to play with!!

First we are told to "initrepo.sh" and all would be taken care of... it wasn't.

Then we are told to get a newer recovery ... we did TWRP 2.6.3.0 ... didn't help.

Next was the cherry pickin'. Wasn't in the downloads on our PC. Told that it was in a directory ... that we did not ... and still do not ... have on our Personal machine. Finally got proper direction to it and the dir that was being talked about was out in the githubs. We snagged a copy of "cherrypick.sh" and ... like we were told ... edited the file and commented out everything but the first one. The results were shown in the previous message. Perhaps it was thought that I was executing those lines. No, those were the last few lines from the execution of:

./cherrypick.sh auto

Now you have another way presented that I thought was taken care of in the "cherrypick.sh" script.

My layout is thus:

home
\
android.cm11
\
system
\
all the other dirs.

At the command line we have:

ctaylor@dusty-tr2:~/android.cm11/system
>

and we execute from there:

./cherrypick.sh auto

This will cause a long list of the dirs as it is marching through them and then those last few lines are presented... with the failure. Now things are changing to:

cd build
git fetch http://review.cyanogenmod.org/CyanogenMod/android_build refs/changes/59/53559/6 && git cherry-pick FETCH_HEAD

Is this to be executed from the dir "~/android.cm11/system/build" on my machine or the "build" dir online??

Sorry for the density....

Chuck

Never mind.... we did it and it apparently worked ... from our dirs. Thanks
[HTC Rezound] bunchies:
if your doing the cherrypick by running

cd build
git fetch http://review.cyanogenmod.org/CyanogenMod/android_build refs/changes/59/53559/6 && git cherry-pick FETCH_HEAD

Than you would need to navigate into the directory first. So you should be navigating to your "/build" folder before running the command.

if all fails. you can always open up the file that the changes are being applied to, in this case the file being changed is called "Makefile" and is within your "/build/core" directory. and all you would have to do is add the code in manually from http://review.cyanogenmod.org/#/c/53559/6/core/Makefile code is being added on line 1379 & 1381

theres even a download link to the new file there with the latest commits http://review.cyanogenmod.org/cat/53559,6,core/Makefile^0

i wouldn't use that entire file if your building anything other than Cyanogenmod, and you also might be experiencing issues when trying to cherrypick Cyanogenmod commits if you are building an entirely different rom

EDIT: Just saw you edited your post lol
[HTC Rezound] _litz:
Ok, to catch things up a bit ...

1) the 'mount point' for the android project from github was changed from /android to /vigor a few days ago. This is because CM already puts their android project on /android, and the two were conflicting with each other. If you do not see /vigor in your build root, you need to re-run initrepo.sh.

2) the cherrypick.sh script from the "Build Scripts" folder (which should be in /vigor, if you are initialized correctly) is meant to be run from build root. This means you need to copy it there, then edit to suit your own needs.

3) it is presumed that you have a proper android build environment in place, and such, which provide the git, repo, and other commands.

Using the scripts from "Build Scripts" (all are copy/run from the build root), the theory is that you do this :

./initrepo.sh to pull the source initially, or re-do a new pull (e.g., local_manifest.xml changes)

./fixrepo.sh to reset, resync, and refresh the tree back to "original state" each time you need to do so.

./cherrypick.sh to apply all of your own customizations (cherrypicks, patches, etc)

./make.sh to actually do the build.
[HTC Rezound] Hobox10:
For the sake of not sounding like I'm a source of nonstop complaining, I have to say: the battery life on this rom is incredible. It even exceed what I used to get on Newt's roms. Hands down the best battery life on a rom I've ever experienced, I'm actually able to get through full days with this again.
[HTC Rezound] REV3NT3CH:
for example in terminal direct terminal to build folder which the command should look like " cd /home/chucktr/android/cm11 " once terminal is directed to that make sure the sh files are in the root of your build folder....not seperate folder and in terminal type " . cherrypick.sh " no quote marks and yes dot space cherrypick.sh and it will go to proper places
[HTC Rezound] Chucktr:
Ok let's all get on the same page....

My PC
|
home
\
android.cm11
\
system
/ \
build all the other dirs
/
perform the cherrypicks from here???

=====================

... ... Believe that is what I did.

The above probably explains why my latest did not get a successful compile. So, in order to test all the "new found knowledge" we will completely wipe our environment and "Start from Scratch". Now then IF I got this right we need to:

1.) Get all the prelims setup... 'C', 'C++', Java and the include files.

2.) Install AndroidSDK

3.) Get repo installed in ~/bin

4.) Create the dirs:

...~/android.cm11

...~/android.cm11/system

...~/android.cm11/cache

5.) cd into ~/android/system and execute ./initrepo.sh

6.) cd into ~/android/system/build and execute ./cherrypick.sh ... IF it is there.

... does this need to be edited?? -or- do we just use:

git fetch http://review.cyanogenmod.org/CyanogenMod/android_build refs/changes/59/53559/6 && git cherry-pick FETCH_HEAD

Since that is the "only one" that I am supposedly interested in right now??

7.) cd back to ~/android.cm11/system and execute:

[B]time brunch vigor | tee build12-12-13.txt[/B]

... --- or ---

Do we stay in the ~/android.cm11/system/build dir and execute the make from there??

Thanks,

Chuck
[HTC Rezound] Neo:
Execute the brunch from the main working directory ie: ~/android.cm11

That is also the directory that the initrepo and cherry-pick need to be executed from.
[HTC Rezound] Chucktr:
My initrepo.sh just finished:

real 79m1.844s
user 20m30.836s
sys 7m53.419s

Have my newest and latest dirs constructed as:

~/Android/cm11.0-rezound

Which contains:

cherrypick-examples.sh* cherrypick.sh* fixrepo.sh* initrepo.sh* make.sh*

And all the other dirs. I created an ~/Android/BuildScripts dir to contain the scripts but then copied them over. initrepo.sh was executed from within ~/Android/cm11.0-rezound/ Just executed cherrypick.sh from within that dir and got:

> ./cherrypick.sh check

Running in check mode ...

Running in automatic mode ...

cut: the delimiter must be a single character
Try 'cut --help' for more information.
cut: the delimiter must be a single character
Try 'cut --help' for more information.
cut: the delimiter must be a single character
Try 'cut --help' for more information.
cut: the delimiter must be a single character
Try 'cut --help' for more information.
Cherrypick 53559 (patch: subpick:59) status: *** ***
cut: the delimiter must be a single character
Try 'cut --help' for more information.
cut: the delimiter must be a single character
---
- * -* - * plus a lot more ---- and ended with
---
cut: the delimiter must be a single character
Try 'cut --help' for more information.
cut: the delimiter must be a single character
Try 'cut --help' for more information.
Cherrypick 53434 (patch: subpick:34) status: *** ***

Script result value : 0

I presume that '0' means no errors. From this dir I am now going to execute:

time brunch vigor | tee build12-12-13.txt

Let you know in a couple of hours...

Thanks,

Chuck
[HTC Rezound] Neo:
This has been blown up a lot more difficult then it really is. I will get with you later today and lay out the correct procedure for compiling the rom from start to finish. Actually, I will probably create a how-to compile cm-11.0 thread. Sorry that you've had such a rough time with this.
[HTC Rezound] onthehole:
Not to mention every time this thread gets a reply we all have a heart attack that the next version of this rom has dropped. :)
[HTC Rezound] Chucktr:
Wishin' for a 2x4 hit...

It seems that no mater what we do... it is wrong. Neo you are correct, it should not be this hard or difficult. I am missing something somewhere. That was one of the things that I started all these messages for ... way back.

Now then, I do not have 'Ubuntu' or 'Debian'. I have openSuSE 12.3. There was a writeup about using openSuSE 12.1 and I based all .. or at least most of my efforts on that writeup. It can be found at: http://xdaforums.com/showthread.php?t=1980379 IF anyone is interested.

Once again my concerns are with the changes in the 'C' includes -but- those don't seem to hurt the compile. At least not obviously. This last one took 7.72 hours for some reason after taking a couple of hours to get the sources. BEFORE the compile we ran the cherrypicks.

The compile was apparently successful. It produced cm-11-20131213-UNOFFICIAL-vigor.zip in our out Target. This was copied over to the SDcard and TWRP 2.6.3.0 was used to install it.

Failed because of the META_DATA problem again .. or still!!

We are back on ICS.:p

Thanks,

Chuck
[HTC Rezound] _litz:
Ok, it doesn't look like your cherrypick.sh executed correctly, that's because of the cut messages.

That shouldn't happen. when you see the results like it should say "NEW" or "MERGED" or somesuch for each cherrypick.

You say you are using SUSE ... are you using bash as your shell?

The scripts were all written on an ubuntu system, and they have been tested and run on ubuntu. None of us have SUSE, so that could possibly be the issue.

You need to make sure bash is your shell interpreter for the user you're logged in as, then try again.

Now, as far as making sure everything is "in the right place" ...

You said you had this :

if I'm interpreting this correctly, you intended all your source code to be in /system, and the ccache into /cache, right?

If that's the case, you need to place initrepo.sh into ~/android.cm11/system and run it there.

When it's done, you should have a ~/android.cm11/system/vigor/Build Scripts where the scripts are located.

** edit: it looks like when I reread what you posted, you did do this.

copy these scripts to ~/android.cm11/system. *** this is critical - the scripts MUST run from the build root!

You will also need to edit fixrepo.sh, and make.sh, and change the directory references for your directory structure.

The exception is in make.sh, you need to change the ccache directory to ~/android.cm11/cache.

Most of us, btw, don't structure this way ...

We put our cache folders in our home directory ... e.g. ~/.ccache-rezound

And our source in an Android folder ... e.g. ~/Android/cm11.0-rezound

---------- Post added at 11:59 AM ---------- Previous post was at 11:57 AM ----------

Oh, and an addendum ...

If you go back to the original post at the beginning of this thread, there's a link to a CWM Touch that's specifically created to work with the METADATA flagged builds ... you can install that as your recovery and never worry about metadata again.
[HTC Rezound] Chucktr:
ok

_litz,

Ok thanks. I'll have to digest this and then get back to you. Right now I must be off to work... and have to NOT mess with the phone. My wife just had some minor surgery and need to have a working phone... just in case. So, ICS is the one for now.

I really don't want to have to setup another system in order to compile an OS. Should work with this one ... It's Linux.:o. Anywho, after work I'll study what you've presented and then go from there. I've worked in programming long enough that it shouldn't be this hard. There is some little thing that I am missing ... just some little thing. It always is.

Take care and Merry Christmas,

Chuck
[HTC Rezound] mjones73:
I hear you, can we please move this build issue discussion to it's own thread not in the dev section? This thread should only really be for new CM11 releases and discussions about them IMHO.
[HTC Rezound] stankopp:
BTW. The 4.3 issue I was having with my BT connected phone not hanging up from the Sync in my car seems to have cured in 4.4.
[HTC Rezound] power950:
Wildstang would have never put up with this lol jk I love you neo
[HTC Rezound] kaluna00:
Awesome! thanks and I'll keep my eyes pealed. Happy Holidays!
[HTC Rezound] Neo:
I'm pretty lenient with my threads. I don't mind the chit chat really. Especially since a how to build cm-11.0 thread hasn't been created yet.