yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] riz1234:
Thanks. I'll change that. Meanwhile, managed to build it. Just for feedback sake, I built on Ubuntu 11.10 x86. I only had one minor issue which I'll go into in a bit. Perhaps I got lucky or the problems have been fixed.

The issue I had was the failure to create JVM at one stage. Just changing the max memory from 2G to 1G for jvm helped. Look for -Xmx2048m in build/tools/releasetools/common.py and change it to -Xmx1024m.

Rest is good.

Going flashing now.
[HTC Sensation] edgg51:
I wanna know if the code for the temporary kernel fix applies to AOKP or it applies to CM9 as well. Sorry for the confusion, I tried searching the thread but found nothing.

Temporary fix to build:

install -d prebuilt/android-arm/kernel[CODE]
[HTC Sensation] edgg51:
Thanks
[HTC Sensation] riz1234:
Sorry to ask a slightly irrelevant question here. I tried to find in other places but couldn't. If there is a better place, could you please point me to it?

I was wondering which structure to use when creating eclipse project for this that compiles the code but doesn't get everything into the project. Is there some guide somewhere? I downloaded AOKP.
[HTC Sensation] blahbl4hblah:
I never worked with eclipse so can't really help you on that part sorry.

Googling helps a lot though
[HTC Sensation] riz1234:
What IDE do you use?
[HTC Sensation] dislplin01:
so i know this is pprobably a noob question but when i run

sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin

i get what looks like a terms and conditions thing in terminal but i dont know how to accept it
[HTC Sensation] geoffcorey:
Press tab, then enter.
[HTC Sensation] dislplin01:
when i put java version i get this

java version "1.6.0_23"

OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre10-0ubuntu5)

OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

????
[HTC Sensation] blahbl4hblah:
Did you follow steps after installing?
[HTC Sensation] dislplin01:
sudo add-apt-repository ppa:ferramroberto/java

sudo apt-get update

sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin

you mean that yes i did but i installed java runtime 6 from the app store on ubuntu ???? before ???

if you mean did i finish all the steps in the tread after it read this then no i wanted to wait till i saw what you guys said cause i failed the first two times so i want be more patient with this cause i am new.
[HTC Sensation] blahbl4hblah:
I put instructions after that part exactly on how to get the right java,

using sudo nautilus or synaptic helps
[HTC Sensation] dislplin01:
Thank you sorry my bad I tried that on 12.04 that's and it didn't work that's why I am being more patient with this one I would like it to work :)
[HTC Sensation] dislplin01:
one last dumb question

so one last dumb question about the .bashrc so on the line in the tread for example

2c. Add Android SDK Path

gedit ~/.bashrc

Enter the Following:

Code:

#Android PATH

export PATH=$PATH:~/android/sdk

export PATH=$PATH:~/android/sdk/platform-tools

export PATH=$PATH:~/android/sdk/tools

in the instructions on the top of the tread it just says to type everything in a box in terminal and thats it?? is that all i have to do or do i actually put those line in the file it self cause if i type gedit ~/.bashrc it brings up what looks like a note pad document i was not sure if i am supposed to enter that text in the document after the typing gedit ~/.bashrc or if i just have to type

#Android PATH

export PATH=$PATH:~/android/sdk

export PATH=$PATH:~/android/sdk/platform-tools

export PATH=$PATH:~/android/sdk/tools

into terminal and thats it????? thanks in advance
[HTC Sensation] jassycliq:
gedit is the "notepad" program for gnome. So by typing that the desired result would be for that little pop up ;D
[HTC Sensation] dislplin01:
so then after i have the notepad pop up i enter the text into the note pad that is listed in the box???????
[HTC Sensation] Naimand:
Is compiling in around 30 minutes good? I've never compiled before so this is a first for me.
[HTC Sensation] drewtang:
Considering on my old crappy computer it took 8-10 hours, I'd say yeah lol
[HTC Sensation] jamesrt:
repo sync fails

Hi,

I'm trying to do the initial sync, and I'm getting this:

# cd android/system/
~/android/system# repo sync
Fetching projects: 100% (258/258), done.
error: revision refs/tags/android-4.0.4_r1.2 in platform/abi/cpp not found
~/android/system#

As far as I can tell, I've not missed anything obvious in terms of the setup to that point - the "repo init" seemed to run successfully; currently using the v1.15 of the repo script from code.google.com/p/git-repo/downloads/; modified to change the REPO_URL link to http rather than https to avoid the "fatal: branch 'stable' has not been signed" issue.

I've tried searching the thread, and I can't find anything that helps with this issue - it doesn't mean that it's not there, just that I couldn't find it!

Any help appreciated at this point.

Thanks.
[HTC Sensation] DragunKorr:
Repo syncs fine but now i get a building error any help will be taken greatly! And i googled the crap out of it!

Thanks!:D
[HTC Sensation] marvin_666:
1 warning

/bin/bash: jar: command not found

make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 127

what that mean?
[HTC Sensation] Alouch47:
Hi,

Either java isn't installed, or misconfigured (path)

Please check

java -version

Envoyé depuis mon HTC Sensation XE with Beats Audio avec Tapatalk
[HTC Sensation] blahbl4hblah:
Yeah that's pretty good

Try it again and see if it happens again.

If it does do CTRL+H and then go into .repo folder and open the manifests.xml file in text editor and find it and delete it.

I'm using my own android repo and I don't have issues.

Don't change HTTPS because that is NEEDED.

Unless you know what your doing, I suggest you don't do it because it might break

Let me get this, your reporting an error while building and you don't give which error your having?

That's a good way to get some help

I'm going to need the error a little higher.
[HTC Sensation] marvin_666:
running: mkbootfs /tmp/targetfiles-3upyWd/BOOT/RAMDISK

running: minigzip

running: mkbootimg --kernel /tmp/targetfiles-3upyWd/BOOT/kernel --cmdline console=ttyHSL0 androidboot.hardware=pyramid no_console_suspend=1 --base 0x48000000 --ramdisk /tmp/tmpYdenkV --output /tmp/tmp5eR0H9

warning: no radio image in input target_files; not flashing radio

running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt

running: java -Xmx2048m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpd3pX_e out/target/product/pyramid/aokp_pyramid-ota-eng.marvin.zip

Could not create the Java virtual machine.

ERROR: signapk.jar failed: return code 1

make: *** [out/target/product/pyramid/aokp_pyramid-ota-eng.marvin.zip] Ошибка 1

i have this mistake in last step. but i make zip by myself and all work. what i must to do with this mistake?
[HTC Sensation] yozpalang:
has anybody tried this GUI CyanogenMod Compiler Tool for Ubuntu
[HTC Sensation] blahbl4hblah:
Nope. I like doing it the old fashion way

Sent from my Sensation
[HTC Sensation] matt95:
Yeah... I also like the old nerdy way :D
[HTC Sensation] vizzze:
i searched the forum but didn't find anything, all the previous steps went well
[HTC Sensation] blahbl4hblah:
Try to do repo init again then repo syn

Sent from my Sensation
[HTC Sensation] blahbl4hblah:
I'll try to update this soon

Sent from my Sensation
[HTC Sensation] who_ohw:
Hi there, I was following your excellent guide and got hung up because the PPA's no longer worked due to Oracles licensing. So I created a thread here that simplifies java6 install. Feel free to use it however you want in order to update that step in your OP.

Thanks for the guide!

http://xdaforums.com/showthread.php?t=1677469
[HTC Sensation] blahbl4hblah:
Looks too long actually lol

I got a shorter way to get Java to work

Sent from my Sensation
[HTC Sensation] TamCore:
Simply use openjdk. It works fine ;)
[HTC Sensation] blahbl4hblah:
Thanks for the input and yet I don't approve of using OpenJDK
[HTC Sensation] blahbl4hblah:
Updated the guide completely

If you don't understand something, do say something

If it has been answered do search for it!
[HTC Sensation] Hitorijanae:
For some reason, repo doesn't give me any output...at all.
[HTC Sensation] blahbl4hblah:
You sure your following step by step?

Sent from my Sensation
[HTC Sensation] Hitorijanae:
I found out what was wrong. I had a corrupt download. Redownloaded and syncing now.
[HTC Sensation] rojovilla:
blah, I have a couple of rigs now running mint 13 (one i5 DT and a core2 duo LT) and have some free time to help build. All instructions are still good to go in the OP with Ubuntu 12.04LTS or is the recommendation 11.10? Thanks!
[HTC Sensation] blahbl4hblah:
It should be all varieties now. Only release I put a specific version was because of java

Sent from my Sensation
[HTC Sensation] drewtang:
Question, I've been adding some cherry picks from the AOKP gerrit page, and I know they get discarded once a new repo sync is done, are there any alternate options to where I don't have to re-add them every time before I compile a build?
[HTC Sensation] blahbl4hblah:
Yeah there's a way. Make a github account fork the repository you want. Git clone it and the specific branch then make changes and push to your fork and then make a local_manifest file and your done.

Further questions use Google use it helps a lot more ;)

Sent from my Sensation
[HTC Sensation] drewtang:
Thank you, I had done some searching, but the information i was finding was a little over my head. This gives me a starting point and some more refined searches I can do, I appreciate it.
[HTC Sensation] blahbl4hblah:
No problem. I can be a nice guy too that helps people xD

Sent from my Sensation
[HTC Sensation] cpittman:
keep getting seg fault in external/llvm/utils/TableGen/CodeGenInstruction.cpp during compile. is this gcc related or am i totaly missing something simple here?
[HTC Sensation] blahbl4hblah:
Double check the guide and be sure you installed everything. And if you put ## as the java number you did something wrong

Sent from my Sensation
[HTC Sensation] bruce2728:
Does anyone know why the default.xml manifest in cm's repo has only one device listed? that is the pandaboard and no others.
[HTC Sensation] TamCore:
Read it's commit history. (Hint: "May 13, 2012")
[HTC Sensation] Diamondback:
Please stay on topic guys!
[HTC Sensation] blahbl4hblah:
Reason is because let's say you want to build pyramid. It'll download the source from cyanogenmod github and then starts to build.

Sent from my Sensation
[HTC Sensation] AntiBillOS:
Sorry guys for spam you but...

I build AOKP for Sony MT11i Xperia Neo V and all builds but builder cant make otapackage

(on CM9 all good)

My device need custom otapackage (because it sony specific)

i use this:

https://github.com/CyanogenMod/android_device_semc_msm7x30-common/tree/ics/releasetools

I add what happen on atached txt.

Thank you.
[HTC Sensation] blahbl4hblah:
Wouldn't it benefit you more if you asked someone who compiles for semc for a living?

Sent from my HTC Sensation
[HTC Sensation] AntiBillOS:
Have no people for make AOKP for SEMC_msm7x30 from source. :(

So i ask you help.
[HTC Sensation] blahbl4hblah:
Using Google helps and I looked up semc xda aokp and things show up. Just so you know as long as it's semc fixes just towards compiling near the end would be similar

Sent from my HTC Sensation
[HTC Sensation] AntiBillOS:
Maybe you give me link? (i am werry sorry).
[HTC Sensation] blahbl4hblah:
If your too lazy to even open your browser then go to Google and search then I have lost all hope for you.

Sent from my HTC Sensation
[HTC Sensation] AntiBillOS:
I try! But not find! :(
[HTC Sensation] blahbl4hblah:
It can't be helped then if you can't figure out different words to find your solution

Sent from my HTC Sensation
[HTC Sensation] tlausl:
I get an error when I open the Android SDK Manager:

Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml

Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: invalid character at position 2 in 08

Fetched Add-ons List successfully

Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml

Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-7.xml, reason: NumberFormat invalid character at position 2 in 08

Done loading packages.

Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml

Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: invalid character at position 2 in 08

Fetched Add-ons List successfully

Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml

Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-7.xml, reason: NumberFormat invalid character at position 2 in 08

Done loading packages.

Can anyone help me?
[HTC Sensation] diperakui:
Look like you behind proxy. Can you access that xml file directly thru browser?
[HTC Sensation] tlausl:
yes, I can.
[HTC Sensation] diperakui:
Default fetching for sdk in https. You force -s command?

Try CLI method:

android -v update sdk -u

-v: Verbose mode, shows errors, warnings and all messages.

-u: Updates from command-line (does not display the GUI)
[HTC Sensation] tlausl:
android -v update sdk -u

Result of this:

Refresh Sources:

Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: invalid character at position 2 in 08

Fetched Add-ons List successfully

Refresh Sources

Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: NumberFormat invalid character at position 2 in 08

Refresh Sources:

Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: NumberFormat invalid character at position 2 in 08

Refresh Sources:

Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: NumberFormat invalid character at position 2 in 08

Refresh Sources:

Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-7.xml, reason: NumberFormat invalid character at position 2 in 08

There is nothing to install or update.

I didnt use the force option.
[HTC Sensation] diperakui:
resolved by adding below line to the hosts file (your local dns):

74.125.237.1 dl-ssl.google.com

or whatever IP that google use in your country. Try ping dl-ssl.google.com and get that ip.

running under Windows or Linux? If you have installed android-sdk under 'C:\Programs' then you have to run the sdk as administrator.

try disable firewall or allow "SDK Manager.exe" in wind0ws fir3wall.

if you behind proxy, try set proxy:

android update sdk --proxy-host:u.proxy.com --proxy-port:8080

(without http://) OR thru SDK Manager -> Tools-> Options-> HTTP Proxy Server and Port. Clear cache, menu Package -> Reload.

upgrade sdk tools to the latest (r20 as of 11/07/12) - download 'zip' not 'exe'
[HTC Sensation] mo976:
Wubi install?

It had been asked a while back in the thread but I did not see a definite answer. Has anyone tried compiling a build using a wubi install of 12.04 and were they successful. I want to experiment a bit just to get a better understanding of the compiling and build process, without committing to a dual boot machine perhaps even my own personal nightly's... Thanks in advance.
[HTC Sensation] blahbl4hblah:
Not sure about wubi but I'm dual booting and I'm compiling no issues at all. Might have an audio issue that can be fixed through ubuntu system and dual booting issue.

That's about it.

No issues to compiling at all

Sent from my Sensation
[HTC Sensation] seadersn:
wubi = no difference :)
[HTC Sensation] mo976:
I have not started compiling from source yet, but I had some issues with the sdk install rather then opening the android sdk gui it began downloading all the sdk's etc etc in the terminal window. I checked out the help on android sdk and it recommended installing eclipse? but I did not see that in your instructions.

Some observations on my wubi install, I had some weird screen distortion issues when I logged in after the screen went to sleep (a driver issue perhaps with the AMD HD6970) which required a restart. There was also some random slowdown after I opened a "large" 5 or 6 browser tabs and some other open folders and terminal windows with multiple downloads it could have to do with the NTFS file system or the fact that the partition is sort of virtual...

From Windows a check of the file properties reported the allocated space to be 30gb (the max you can choose for a wubi install) but the actual in use was much less about 5gb or so.

My system is a i3 2120 with 8gb 1600mhz ram and the system drive for the wubi install is a 128gb crucial m4 ssd with plenty of free space so I doubt that would be the cause.
[HTC Sensation] bruce2728:
If I were you I'd just set up a dual boot instead, I have my Ubuntu on an 80gb partition with 30gb swap partition.
[HTC Sensation] Bastaerd:
What driver are you using for your AMD (still weird to say that instead of ATI) GPU?

If you are using the open source ones, try installing the official catalyst one.
[HTC Sensation] mo976:
Catalyst driver's.

I installed eclipse and now the sdk gui works right...

How long should the repo sync take? And is there a way to edit it down to just the cm9 pyramid branch and necessary framework that is a way to drop the cm7 gb and earlier...

Never mind just started get-prebuilts and on a 15mb line took about 2hours but the average nominal speed was 500-700kb

Without eclipse it would just run the sdk install and pull everything

Check out this link http://sharepointkunskap.wordpress.com/2012/05/11/install-android-sdk-and-eclipse-in-ubuntu-12-04/
[HTC Sensation] blahbl4hblah:
That's weird I never installed eclipse for sdk to work. Should take 2 hours depending on your Internet.

Yeah there is just use the repo link in the OP. It's mine but it's pretty updated everyday

Sent from my Sensation
[HTC Sensation] jimam:
30 gigs? Even when compiling from source thats loads, use the command line tool free and see how much actually gets used?

Sent from my pyramid...
[HTC Sensation] mo976:
Funny I think the reason I am having issues like freezes and slowdowns are due to a small swap partition but I don't know if I can change that on the wubi install. Though 30gb is a bit extreme...
[HTC Sensation] blahbl4hblah:
It doesn't matter if you do or don't.

Personally swap helps just in case you need some more memory

Sent from my Sensation
[HTC Sensation] bruce2728:
Lol yep 30gig is a lot, I set up the partitions a couple years ago when I didn't know what I was doing, but now I'm just too lazy to change it.

If I set a swap these days I would mirror the size of installed ram. So 8gb ram - 8gb swap
[HTC Sensation] blahbl4hblah:
He also doesn't have to do anything to change that. 8gb swap Is automatically made when installing Ubuntu.
[HTC Sensation] mo976:
Just for the record wubi is a bust... I have a 1tb that I have been meaning to take from my office... Any recommendations for suitable partition size? Also when I tried to build I got a local sdk version 4 error message?

Thanks for the help
[HTC Sensation] mo976:
Made a 100Gb partition installed the real version of Ubuntu and I am in the middle of building my first ever CM9 nightly. Hope it works. Thanks for all the help.

Update:

And an hour and a half later I'm doing a nandroid and getting ready to flash.

And it works perfectly.

Thanks blahbl4hblah.
[HTC Sensation] blahbl4hblah:
Glad my guide helped you in compiling your first build xD
[HTC Sensation] mo976:
So I tried to pull the jellybean repo's and I think I mucked up my local stuff because now it won't build...

Gave up and wiped the system files and I am back in business, how would I go about setting up for multiple android versions, I have a nexus 7 as well? are multiple system files the way to go? For example: android/system = ics android/system1 = JB, would that work?

Perhaps soon you could update the how to instructions to include building JB for the sensation :fingers-crossed:

Thanks
[HTC Sensation] blahbl4hblah:
For the time being stick to ics. It's more stable than jb at the moment

Sent from my Sensation
[HTC Sensation] mo976:
I got a 120gb SSD yesterday and created a new ubuntu install etc etc went through the setup no issues or errors and tried to build...about half way through it stops with some sort of duplicates message...Later I will try to troubleshoot or delete and reinitialize the repo and or get a log and pastebin it... in the meantime I would rather use your OS android repo which includes the OC kernel etc and that perhaps would solve the build issues as well, what is the correct git address?

Thank you
[HTC Sensation] mo976:
Here is the error message

warning: comparison between signed and unsigned integer expressions

I'm guessing that if I delete the system files and then initiate your repo I will be all set
[HTC Sensation] blahbl4hblah:
My bad about not replying, I actually haven't looked here for some time.

The reason why I changed my repo to cyanogenmod repo instead is because this is a compiling guide for CYANOGENMOD.

As for your issue, not too sure. It might have to deal with all the repos I've changed and since you changed the repo init it might cause a conflict

Try this:

cd ~/android/system (or whatever the name you went with for your source folder)
cd .repo/manifests (yes there's [B]no[/B] space before the word "repo")
git reset --hard 28b2b02bb09f236fa05394915a655c748c7e69c6
repo sync
cd ~/android/system (or whatever the name you went with for your source folder)

After this it should be back to normal and just compile like normal.
[HTC Sensation] emanon:
Hey man, you plan on updating this thread to include JB? RMS no longer have the guides.

\Regards
[HTC Sensation] blahbl4hblah:
It's simple just replace ics with jellybean for branch
[HTC Sensation] emanon:
Thanks man, got some free time so I thought I play with it bit.

\Regards
[HTC Sensation] blahbl4hblah:
I forgot one thing though. If your going to do aokp it'll be jb

Sent from my iPhone
[HTC Sensation] DragunKorr:
To compile cm10 just use blahs guide!

Then repo with

Then after repo is complete! ADD>>> AudioHardware.cpp to android_hardware_qcom_audio/msm8660 From cm9..... Or it won't compile!
[HTC Sensation] blahbl4hblah:
I basically just told them that, good job repeating things
[HTC Sensation] DragunKorr:
oh well things will never change just tryin to help enjoy yourself!:laugh:
[HTC Sensation] bruce2728:
Intervigil fixed the audio so don't need to change it.
[HTC Sensation] blahbl4hblah:
Thank you for clearing this up
[HTC Sensation] blahbl4hblah:
Updated guide and cleaned up a few things that are needed for jellybean
[HTC Sensation] mo976:
Thanks I got everything working using tamcore's git and local manifest... Been rolling my own nightlys.

I was sure the move to SSD would result in a much faster build. Make pyramid userdebug on the HDD took over an hour and a half, with the SSD it takes an hour ish, with Ccache enabled and SSD optimization and all. I guess the i3 2120 3.3ghz is the limitation. Any suggestions for a faster build.
[HTC Sensation] TamCore:
I hope you're using the repos on github.com/OpenSensation and not the recently deleted ones on github.com/TamCore ;)
[HTC Sensation] mo976:
Last time I built was Friday afternoon (we are almost the same time zones) I will check when I get home... When did you delete it?

I am pretty sure I'm using git... Open....
[HTC Sensation] TamCore:
Yesterday :)