yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] Jamison904:
I was having issues in the set up under 4C.

4c. Setup Necessary Source

Code:

cd ~/android/system/

repo init -u git://github.com/OpenSensation/android.git -b ics

Changed second line to:

repo init -u git://github.com/CyanogenMod/android_device_htc_pyramid.git

edit:

Now I get

repo init -u git://github.com/CyanogenMod/android_device_htc_pyramid.git

fatal: manifest 'default.xml' not available

fatal: manifest default.xml not found

Sorry, definitely a noOb at this but trying to learn. Thanks again for the great "How to!"
[HTC Sensation] BookCase:
My house was robbed and they took my G2 so, the insurance company (Asurion) wanted to send me some crap phone as a replacement for the $130.00 deductable. I told them to send me something better or I am calling my lawyer. After about 3 hours of debating, holding and talking to two managers, I got them to send me the HTC Sensation 4G. It's a great phone but, I do miss my G2.
[HTC Sensation] Vorbeth:
The fix:

4c. Setup Necessary Source

Code:

cd ~/android/system/

repo init -u git://github.com/CyanogenMod/android.git -b ics

then copy https://raw.github.com/vorbeth/local_manifest/ics/local_manifest.xml to

~/android/system/.repo/
[HTC Sensation] TamCore:
What? Wouldn't

wget -O ~/android/system/.repo/local_manifest.xml https://raw.github.com/vorbeth/local_manifest/ics/local_manifest.xml

be easier? :)
[HTC Sensation] dc13:
After compile where do I locate my Rom zip please thank you!:D:D:D:D
[HTC Sensation] blahbl4hblah:
I'm going to be nice even though your a recognized developer on here :p

look in android/system/out/target/product/pyramid

Your welcome
[HTC Sensation] dc13:
Thanks I think
[HTC Sensation] dc13:
Looked in android system

Then opened system did control/H nada

Looked in home root out/target/product/pyramid/ nada odd

All packages in place but no build strange I've done it before but no go try again tomorrow I suppose!
[HTC Sensation] blahbl4hblah:
Did you even finish compiling?

If you had an error then the zip won't finish

Home directory

example! if you named your cm9 source android/system

then from the system folder look in out then target then product then look into pyramid
[HTC Sensation] dc13:
Nothing in android system after 30 some min of compiling some kinda integers error
[HTC Sensation] dc13:
L post last couple lines of code tonight maybe you can help identify my error
[HTC Sensation] dc13:
Here is where compiling error ends have a looksy please thanks!

http://dl.dropbox.com/u/25447627/cm%20error
[HTC Sensation] blahbl4hblah:
Did you even make the local_manifest.xml file?
[HTC Sensation] dc13:
yep added yurs into .repo
[HTC Sensation] blahbl4hblah:
Go back into the guide and make sure you didn't miss anything

Some people actually got errors and all they needed to do is go back into the guide
[HTC Sensation] dc13:
kk

always goes thru complete compile then same error at end lol thanks
[HTC Sensation] blahbl4hblah:
Do 'make clobber' in terminal first

Make sure you have EVERYTHING needed installed from the guide
[HTC Sensation] dc13:
k bro when you first put guide together a month ago or when ever it was everything worked great! now im having issues on my end!!! frustrating

no rom zip processed imtrying my best ive done it before lol
[HTC Sensation] dc13:
make clobber!

run repo

build android correct?
[HTC Sensation] dc13:
same error no freakin rom zip bein processed maybe cause im on 32 bit who knows
[HTC Sensation] geoffcorey:
2.3+ requires 64 bit Linux.

Also, when you change over to a 64but install, assuming Ubuntu, make sure you install ia32-libs.
[HTC Sensation] dc13:
Hmm ok then thanks
[HTC Sensation] dc13:
is 32 libs hmm where do I aquire them bro:eek:
[HTC Sensation] blahbl4hblah:
The guide itself is made for 64-bit, just look in the required things to install
[HTC Sensation] dc13:
K cool gotcha thanks bro
[HTC Sensation] dc13:
64 bit runnin way better so far
[HTC Sensation] geoffcorey:
apt-get install ia32-libs
[HTC Sensation] dc13:
K gettin same error after 30 min of compiling at a loss android/system/out/target/product/

Folders. Device ,obj,root,system, clean_steps.mk,previous_build_config.mk. only thing in folder no Rom zip :(:(:(
[HTC Sensation] blahbl4hblah:
No rom zip because it's NOT DONE COMPILING!

I compiled a build earlier today and I never have any issues

AND LOOK AT THESE, IF ONE OF THEM SHOWS UP,

Then you need to install it

Required Software to Install:

For 32-bit and 64-bit System

sudo apt-get install git-core gnupg flex bison python rar original-awk gawk p7zip-full gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool

For 64-bit System

sudo apt-get install g++-multilib lib32z1-dev ia32-libs lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib g++-multilib

Other Required Software:

sudo apt-get install libc6-dev x11proto-core-dev libx11-dev libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils

Link libx11

sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so

You must have a 1.6.x to compile on the ics branch of cyanogenmod.

1a. MUST Install Java 1.6:

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin

1b.

To Check for Correct Java Version

java -version

MUST BE THIS:

java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
[HTC Sensation] dc13:
Did everything as guide is written

Updated to ubuntu

11.10 64 bit

Updated is-32 lib

Built cm

Compiles all the way to over signed unsigned integers error no Rom zip processed oh well ill try a few more times then ill have to put it on back burner for awhile sorry to blow up thread didn't mean to bro:(
[HTC Sensation] blahbl4hblah:
I'm using 11.10 64-bit ubuntu and I'm not getting issues

It means your missing something

I'm just saying try to follow those steps for installing the necessary things again.

You may be missing something
[HTC Sensation] Vorbeth:
The error is not in that log.

You will need to scroll higher up.

Look for the first occurrence of error:
[HTC Sensation] dc13:
Kk
[HTC Sensation] dc13:
Quess ill run logcat try to find my error
[HTC Sensation] Vorbeth:
Logcat wont show the error for compiling.
[HTC Sensation] dc13:
Hmm

Installed 64 needed sudo

Extra needed files

Bash code is right

Manifest is right

Java version right

Repo right

Build android repi all needed jit

Compiles for 45 min

All packages in my system

No zip when done very confused at this point

I aslo see vorbeth/repo sync error of some kind goin on
[HTC Sensation] dc13:
This is asking a lot I'm sure do you have team viewer?
[HTC Sensation] dc13:
All this installed as well
[HTC Sensation] Vorbeth:
I suggest you download the local_manifest again then do a "repo sync"

You may have been syncing as some repo's were updated or moved
[HTC Sensation] dc13:
Clobber,add new manifest,repo ???
[HTC Sensation] dc13:
Yea vorbeth packages not being synced
[HTC Sensation] dc13:
And I've been using manifest posted in op
[HTC Sensation] dc13:
It's kinda crazy that all packages files and what have you are in my home/folder

Yet not complete will get it some how

Is there a current repo fix?
[HTC Sensation] Vorbeth:
Everything is working fine. I compiled a build 4 hours ago.
[HTC Sensation] dc13:
Sucks for me

At the top of guide?

Do I install fo 64 bit only

Or 64. And 64/32 also plus needed extras?
[HTC Sensation] dc13:
Also does guide install is-32 libs for me or do I manually install?
[HTC Sensation] DeezNotes:
A few n00b things...

1. Was having trouble with 4e, but noticed it's obsolete per this post: http://xdaforums.com/showpost.php?p=24168314&postcount=623

2. Was having trouble with 5a, but found the envsetup.sh file and realized I had to be in ~/ to run that command as it is displayed.

Running the compile command a 2nd time as the first try stalled pretty quick.

Thanks for the guide. I'm running this in a VM, so I'll try to get you stats on how long it takes along with the details of my machine(s) if you're interested.
[HTC Sensation] dc13:
Cool great I'm running ubuntu 11.10 64 bit standalone:D
[HTC Sensation] blahbl4hblah:
Just install all of it, I do t think it's even that hard to follow a guide is it?

Sent from my HTC Sensation
[HTC Sensation] blahbl4hblah:
I'm glad have figured it out on your own

Sent from my HTC Sensation
[HTC Sensation] dc13:
did everything in quide from top to bottom no worky for me i give up sucks!

worked fine when thread was first posted now im at a complete loss whatever!!!
[HTC Sensation] blahbl4hblah:
It's not even that hard gonestly

But if you want to give up then I guess that's it

Sent from my HTC Sensation
[HTC Sensation] geoffcorey:
Hm... I keep getting an error about RomManager.apk

make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/pyramid/system/app/RomManager.apk'. Stop.

How do I go about getting rommanager into the nonexistent directory, and also how do I go about editing out tye requirement for rommanager?
[HTC Sensation] blahbl4hblah:
Vendor/cm/get-prebuilts

I'm pretty sure it's in the guide

Sent from my HTC Sensation
[HTC Sensation] dc13:
i just want it to compile correctly bro!

i followed the guide as a monkey could do!

it either craps out on repo or errors out saying cant access vorbeth packages

or it compiles then integer error

either way im not the only one with issues im in the US and i have people in norway with identical issues so........ not giving up it gives up on me!!!!
[HTC Sensation] gbzbar:
You forgot to do step 4e in the OP. Type this:

~/android/system/vendor/cm/get-prebuilts

and then try again.
[HTC Sensation] geoffcorey:
oh wow, lol. I didn't even see that step. thanks!
[HTC Sensation] blahbl4hblah:
There's always google if you find the solution in the guide

I used Google to find some errors so you should too

Sent from my HTC Sensation
[HTC Sensation] dc13:
K cool cannot fetch vorbeth packages_apps_contacts/s not found!

Any ideas?
[HTC Sensation] blahbl4hblah:
You seem like a smart guy you really do

But why not look at vorbeths github and look at his local_manifest

Compare the two

Sent from my HTC Sensation
[HTC Sensation] dc13:
k thanks blah
[HTC Sensation] blahbl4hblah:
I'm putting a new requirement that will be mandatory from now on

You must be willing to use Google to find errors unless it's already reported

Sent from my HTC Sensation
[HTC Sensation] dc13:
lol k
[HTC Sensation] dc13:
Not sure how to access golit hubs from terminal really want to compile cm9 or aokp to many errors here in there that I cannot understand to fix maybe a willing teacher will come along even added vorbeths manifest anyways try again at a later time tgmhanks for biting your tongue blah mad respect bro!!!!
[HTC Sensation] danielmid84:
If you're having that many errors, I would start with removing the whole build directory and starting from scratch. Also if you're running 64 bit you need to do both install lines for 32 and 64.

Beyond that, I second what blah said, Google is your best friend, it helped me go from no knowledge of repo building to running a daily build completely from one script.

And don't forget, you can copy from the guide and paste into the terminal window to ensure you don't miss anything.

Sent from my HTC Sensation
[HTC Sensation] danielmid84:
Also, I think I'm going to add to my script to pull Vorbeth's latest local_manifest every build too, he's changed it the last few builds on me and it always gets me.

Sent from my HTC Sensation
[HTC Sensation] blahbl4hblah:
Added to OP just because of the countless times other people getting issues when they don't :p
[HTC Sensation] danielmid84:
Hmm I was looking into using curl, but wget works also I guess haha
[HTC Sensation] blahbl4hblah:
Either work :p

I was wondering how much of a power supply would I need for 16gb of ram

I only got 300psu right now
[HTC Sensation] danielmid84:
RAM doesn't use that much power, it's the rest of the system that does. I'm using a 800w with a quad core, 8gb RAM, dual video card, 5 hard drive beast.
[HTC Sensation] blahbl4hblah:
Alright, better for me :p

RAM is cheap af
[HTC Sensation] danielmid84:
Here's what I came up with, seems to work great.

curl https://raw.github.com/vorbeth/local_manifest/ics/local_manifest.xml > ~/opencm9/system/.repo/local_manifest.xml
[HTC Sensation] blahbl4hblah:
Almost the same with the other one, I'll add this one as well
[HTC Sensation] danielmid84:
Yay! I contributed something!
[HTC Sensation] dc13:
BEFORE REBOOT! http://dl.dropbox.com/u/25447627/compile%20vids/before%20reboot.mpg

AFTER REBOOT! http://dl.dropbox.com/u/25447627/compile vids/after reboot.mpg

.repo folder not being made as well even after Ctrl-H

Thanks using Ubuntu 11.10 as well!
[HTC Sensation] blahbl4hblah:
YOU DIDN'T DO REPO INIT, that's the only reason

All that you HAVE TO DO is follow the guide step by step, I've been very very patient with you and answering all of your questions. But maybe compiling isn't for you if your having this much of a hard time.
[HTC Sensation] dc13:
Sounds good thanks!
[HTC Sensation] blahbl4hblah:
I think your missing some of the major requirements for this guide:
[HTC Sensation] paulove:
I am trying to compile, repo is Complete but build command will not execute.

"build/envsetup.sh; bash: build/envsetup.sh: No such file or directory"

paulove
[HTC Sensation] blahbl4hblah:
You forgot the period in front with a space

Just do source build/envsetup.sh

Sent from my HTC Sensation
[HTC Sensation] paulove:
bash: source: .: is a directory

Is the only respons from.

source . build/envsetup.sh

paulove
[HTC Sensation] blahbl4hblah:
I don't think you cd to CM9 source folder in terminal

Sent from my HTC Sensation
[HTC Sensation] geoffcorey:
cd ~/android/system; . build/envsetup.sh; lunch pyramid-userdebug; mka bacon -j2

Copy and paste this into your terminal and press enter.

Also, change 2 to whatever you want (one of the common rules is 2 * # of cores you have + 1
[HTC Sensation] paulove:
cd ~/android/system; . build/envsetup.sh; lunch pyramid-userdebug; mka bacon

bash: build/envsetup.sh: No such file or directory

No such file: pyramid-userdebug

No command 'mka' found, did you mean:

Command 'mkfa' from package 'julius' (multiverse)

Command 'm-a' from package 'module-assistant' (universe)

mka: command not found

paulove
[HTC Sensation] blahbl4hblah:
Looks like you didn't even download source then

You need to download source

If the folder you made for cm9 source isn't android/system then change it to what it is called
[HTC Sensation] paulove:
I have downloaded source, and the folder is android/system
[HTC Sensation] geoffcorey:
Sorry, I typed the pyramid part wrong

cd ~/android/system; . build/envsetup.sh; lunch cm_pyramid-userdebug; mka bacon -j2

Copy and paste this into your terminal and press enter.

Also, change 2 to whatever you want (one of the common rules is 2 * # of cores you have + 1)
[HTC Sensation] bruce2728:
Hi

I'm getting a Java OutOfMemory error when signing the zip after optimizing the apk's.

It doesn't put the zip in the out folder but the ota-eng zip is there.

Do you know what I'm doing wrong?

I'll post the exact error later when I'm at my PC.

I'm using Ubuntu 11.10 x64 on an i5 2500k with 8gb ram. I've had no errors in the past whilst compiling.
[HTC Sensation] bruce2728:
I googled changing the heap size but could not make it work

I tried

Java -Xms256m -Xmx1024m

But I get a syntax error
[HTC Sensation] seadersn:
run a

sudo apt-get update

sudo apt-get upgrade

maybe java ver or sth else is outdated. i think this special error (with solution...? don't know atm) was posted here some pages back.

pls post the full error, and check your java version: x64? x86? 1.6.xx?
[HTC Sensation] paulove:
I think I am missing some files that don't sync from repo.

build/envsetup.sh

paulove
[HTC Sensation] dc13:
Repo packages in place no build commands are executing! is there a bin file or sh. File I need to look for in place vorbeth manifest is in place as well Google the crap out of everything as suggested:D
[HTC Sensation] bruce2728:
thanks for your help, it updated some stuff but didnt fix my error

Optimizing GoogleServicesFramework.apk...
Optimizing VisualizationWallpapers.apk...
Optimizing Calculator.apk...
MODVERSION: 9.0.0-RC0-pyramid-UNOFFICIAL
Zipping package...
Signing package...Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161)
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118)
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:272)
at com.android.signapk.SignApk.copyFiles(SignApk.java:422)
at com.android.signapk.SignApk.main(SignApk.java:490)

Cleaning up...
md5sum: update-cm-9.0.0-RC0-pyramid-UNOFFICIAL-signed.zip: No such file or directory

Package complete: /home/rob/android/system/out/target/product/pyramid/update-cm-9.0.0-RC0-pyramid-UNOFFICIAL-signed.zip

ive tried increasing the heap size to 4096m nut still get the above error
[HTC Sensation] blahbl4hblah:
For everyone who keeps getting the out of memory error just copy and paste this command into terminal before starting to compile

sed -i 's/Xmx512m/Xmx1024m/g' vendor/cm/tools/squisher

Sent from my HTC Sensation
[HTC Sensation] bruce2728:
Thanks, that worked for me.
[HTC Sensation] dc13:
Thanks for tolorating me blah compiled finally thank you sorry for my hassles!
[HTC Sensation] _emanuel_:
can not sign the build

Optimizing Gallery2.apk...
MODVERSION: 9.0.0-RC0-pyramid-UNOFFICIAL
Zipping package...
Signing package...Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161)
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118)
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:272)
at com.android.signapk.SignApk.copyFiles(SignApk.java:422)
at com.android.signapk.SignApk.main(SignApk.java:490)

Cleaning up...
md5sum: update-cm-9.0.0-RC0-pyramid-UNOFFICIAL-signed.zip: Datei oder Verzeichnis nicht gefunden

Package complete: /home/emanuel/android/system/out/target/product/pyramid/update-cm-9.0.0-RC0-pyramid-UNOFFICIAL-signed.zip

emanuel@xanadu:~/android/system$

not there :D

Package complete: /home/emanuel/android/system/out/target/product/pyramid/update-cm-9.0.0-RC0-pyramid-UNOFFICIAL-signed.zip (is missing)
[HTC Sensation] blahbl4hblah:
Why don't you read above this post?

I already answered this.

Sent from my HTC Sensation
[HTC Sensation] hawkeyexp:
works fine for me :-) thx !
[HTC Sensation] _emanuel_:
Thank's worked well for me on debian amd-64 :)

other question:

I need a special kernel for my chroot on sdcard (include NFS,SHM,SWAP) where can I find the kernel src used in this build to config?
[HTC Sensation] bruce2728:
Kernel source is right at the bottom of the first post in the OpenSensation thread
[HTC Sensation] come at me bro:
any tips for radio and ril

We are having problems on the HTC vivid :(
[HTC Sensation] blahbl4hblah:
Nope, not really sorry

I don't have a Vivid, you may want to ask someone over there
[HTC Sensation] _emanuel_:
Hm, I couldn't install my build of this night from src and the TamCore Nightly Builds also not.

Only the OpenSensation Build was install ok.

my kernel build was ok.
[HTC Sensation] bruce2728:
My build from last night works fine.

Did you use a superwipe script? Its best to just wipe the partitions in 4EXT recovery
[HTC Sensation] dc13:
Thanks blah running lika charm!!!!
[HTC Sensation] blahbl4hblah:
I'm going to bump this so everyone can compile their own build
[HTC Sensation] matt95:
i've changed my desktop so i have to do this again :)
[HTC Sensation] blahbl4hblah:
I love hearing people who learn how to compile from this guide it makes me happy
[HTC Sensation] blahbl4hblah:
Btw for other people who use different versions of uvubtu like fedora mint and etc then you may have to change some part of the guide but the compiling portion should be the same. I tried compiling on mint and it worked and probably works on all the other versions

Let me know so I can add that part to the guide
[HTC Sensation] matt95:
well this is the best guide i've found on the internet ;) so keep up and maybe make another guide on how to build sense roms :D that would be great!
[HTC Sensation] blahbl4hblah:
Lmao don't push it xD

I wouldn't mind making one just find me the complete source for it xD
[HTC Sensation] matt95:
oh taht's right :D howerver for now this one is very good for a beginner as me ;)
[HTC Sensation] blahbl4hblah:
Honestly I was thinking of making a video on how to compile but I'm one lazy to do one and if people didn't read the guide then mostly the video will be ignored as well
[HTC Sensation] sparksco:
Lmao
[HTC Sensation] dc13:
Lol I got video if you need:D:D:D:D
[HTC Sensation] matt95:
me too :) imo it will be useful to have a good video :D
[HTC Sensation] dc13:
Kk:D:D:D:D:D:D
[HTC Sensation] dakdroid:
Just a little addon to the tutorial:

Never ever sudo a gui program like "sudo nautilus"

I used it once when i started with linux and had to reinstall, cause i couldnt find out what things were changed.

This part should be replaced...

by something like this.

sudo su

cd /usr/lib/jvm

ls (shows directory content)

rm -R ./open-jdk

(rm = remove, -R=includes subfloders, ./ = means ur current position where you cd'ed into)

(hit "TAB" for autocompletion of the folder)

An even better solution would be to remove the open-jdk by either ubuntu software center thingy or synaptic.
[HTC Sensation] blahbl4hblah:
True that works too but sudo nautilus works too and it's easier. There are different ways to do it and vorbeth suggested synaptic before as well. I think there's a right command to install the only things required but I can't remember it at the moment
[HTC Sensation] geoffcorey:
The proper way to get root privileges in a GUI program is gksu or gksudo, run using alt+f2, as running normal sudo and the a GUI app can change permissions on important user config files for it. (Not trying to destroy your guide, just making a helpful statement)
[HTC Sensation] sparksco:
gksudo is just the graphic version of sudo.
[HTC Sensation] blahbl4hblah:
It's perfectly fine actually, adding things to the guide helps others and gives different options. I just prefer sudo since it's automatically root access. But like the previous person suggested synaptic helps too. I'm trying to remember the sudo apt-get install programs that would just install the correct java right away.

I think it might be

sudo apt-get install sun-java6-bin sun-java6-plugin

I'm not on my linux pc right now so I can't really test this, but I think that's all that's needed

For suggestions, I'll add it to the 2nd or 3rd post