yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] njb42:
Following the guide today and I get a series of errors building Trebuchet:

packages/apps/Phone/src/com/android/phone/PhoneInterfaceManager.java:293: cannot find symbol
symbol : variable NT_MODE_LTE_GSM_WCDMA
location: interface com.android.internal.telephony.Phone
network = Phone.NT_MODE_LTE_GSM_WCDMA;
^
packages/apps/Phone/src/com/android/phone/PhoneInterfaceManager.java:821: cannot find symbol
symbol : method getLteOnGsmMode()
location: interface com.android.internal.telephony.Phone
return mPhone.getLteOnGsmMode();
^
packages/apps/Phone/src/com/android/phone/Settings.java:235: cannot find symbol
symbol : method getLteOnGsmMode()
location: interface com.android.internal.telephony.Phone
boolean isLteOnGsm = mPhone.getLteOnGsmMode() != 0;
^
packages/apps/Phone/src/com/android/phone/Settings.java:386: cannot find symbol
symbol : variable NT_MODE_LTE_GSM_WCDMA
location: interface com.android.internal.telephony.Phone
case Phone.NT_MODE_LTE_GSM_WCDMA:
^
packages/apps/Phone/src/com/android/phone/Settings.java:387: cannot find symbol
symbol : variable NT_MODE_LTE_GSM_WCDMA
location: interface com.android.internal.telephony.Phone
modemNetworkMode = Phone.NT_MODE_LTE_GSM_WCDMA;
^
packages/apps/Phone/src/com/android/phone/Settings.java:568: cannot find symbol
symbol : variable NT_MODE_LTE_GSM_WCDMA
location: interface com.android.internal.telephony.Phone
case Phone.NT_MODE_LTE_GSM_WCDMA:
^

Anyone have any suggestions?
[HTC Sensation] sparksco:
Why are you building for a CDMA device?
[HTC Sensation] TamCore:
Had the same problem while building todays nightly.

cd ~/android/system/packages/apps/Phone
git revert --no-edit d95f07c83fb9522e94ef13b010f97eb625401835

Fixed it for me.
[HTC Sensation] njb42:
I don't think I am. That's what makes the error so weird.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_pyramid
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76D
============================================
[HTC Sensation] sparksco:
Try the git revert as suggested above it must be some commit change from cm that borked it
[HTC Sensation] njb42:
[detached HEAD b87c918] Revert "Phone: Enable LTE options for GSM LTE phones"
3 files changed, 5 insertions(+), 53 deletions(-)

Aha! Thanks.

EDIT: I actually assumed a recent commit had borked the build somehow, but as I'm unfamiliar with git (and cyanogenmod) I was having trouble locating the culprit. I've been using subversion for too long, I guess.

EDIT 2: Yay!

-rw-rw-r-- 1 user group 165490321 2012-04-18 16:24 update-cm-9.0.0-RC0-pyramid-UNOFFICIAL-signed.zip
[HTC Sensation] blahbl4hblah:
It's a common error as there are change Phone but the change have to be merged by vorbeth to get it to work in settings and frameworks.

I'll give the instructions later how to update unless someone wants to give them that'd be good too
[HTC Sensation] poorhatsoap:
My nightly builds: http://wp.me/pwaAb-x

I've forked Vorbeth's repositories and merged the upstream CM changes. I also build my kernel inline. Other than that, this is unchanged from Vorbeth's builds.
[HTC Sensation] blahbl4hblah:
That's good for you. I sadly will not put that in the OP as I've put one up already and one is good enough
[HTC Sensation] poorhatsoap:
Pretty sure I wasn't asking you to change the OP. This is purely for anyone who wants a build now while we're waiting on Vorbeth to merge upstream changes.
[HTC Sensation] blahbl4hblah:
Fair enough then
[HTC Sensation] supermario3:
What are the bugs of the rom obtained with this process?
[HTC Sensation] dc13:
This maybe a common sense question it may not be.....

When I run a repo whether it be cm or aokp or whatever how do I know exactly when repo is done and complete?

I've used this guide and after a bunch of code edits I ran repo!

Not knowing for sure I ran build code bam success!

What I'm asking is there a way to know for sure that it is completed? Thanks
[HTC Sensation] blahbl4hblah:
Anything that is listed in the opensensation thread you will have the similar bugs as they use the same source
[HTC Sensation] danielmid84:
Would you be interested in me posting the build script I use? Specifically asking blahbl4hblah, but if anyone else wants it, let me know too.
[HTC Sensation] blahbl4hblah:
Just copy it to pastebin and I'll put it in the OP.

Personally I'm still doing it the old fashion way and I'm not complaining :p

New methods do help
[HTC Sensation] danielmid84:
Here are the steps to setting up a build script to automate the build. You will still have to trigger the build, but it will compile it for you.

I'm assuming your file structure is the same as the guide's.

cd ~/android/system

gedit build.sh

Then copy and paste from this Pastebin link into the build.sh file.

Save that file, then

chmod a+x build.sh

Should be good to go now.

Everytime you want to run the script do this,

cd ~/android/system

./build.sh clean
[HTC Sensation] blahbl4hblah:
Added a section on how to compile aokp for sensation as well.

Will add the build script as well. It'll be in the attachments
[HTC Sensation] Tha Maxx:
Nice!:D
[HTC Sensation] hawkeyexp:
CM9 AOSP build from source seems to be broken again :-(
[HTC Sensation] blahbl4hblah:
No its not as I just compiled one last night and its flawlessly

Sent from my HTC Sensation
[HTC Sensation] sparksco:
It's a development tree, and a beta one at that... You can expect things to break or be broken from time to time. I've been told this from a CM member so I take his word on it.
[HTC Sensation] hawkeyexp:
last night it worked for me, too. But a few minutes ago after new sync it doesn't.
[HTC Sensation] blahbl4hblah:
Is it showing you an error about libv8.so?

Sent from my HTC Sensation
[HTC Sensation] blahbl4hblah:
Just dual boot lol saves you time xD and lag. You can't compiled through windows sorry
[HTC Sensation] xXkingsromXx:
is it asking to much for someone to please upload or paste the proper local manifest for a brother its all im missin show some love plese

thanks!

still has "CyanogenMod/android_device_lge_p990" path="device/lge/p990 in it need proper edits thats all so i can read proper device tree
[HTC Sensation] selectodude:
Why do you keep saying that? A VM is literally no slower than running on native hardware by design. As long as your processor has VT-x (or whatever AMD's VM extensions are) the VM is, for all intents and purposes, running on the bare metal.

For ICS though, be ready to dedicate at least 6GB of RAM. You're going to need 8GB or more to run a VM on Windows.
[HTC Sensation] blahbl4hblah:
Dude why don't you check the OP. I already posted that i changed it to the correct format
[HTC Sensation] sparksco:
Yeah I think the source is around 10GB (maybe a little on the high side) just to download. Then to compile and build a full rom it takes up even more HDD space. So to be safe make sure you have at least 20GB free on your hard drive. I don't think you can do this with a live CD :p
[HTC Sensation] blahbl4hblah:
Why do I? To save you the heartbreak of when the compiling process decides to crash
[HTC Sensation] selectodude:
Does that happen to you often? Virtualbox has never crashed on me ever not even once even during the roughest compiles. Maybe my box is abnormally stable.

BTW the guide is excellent. Thank you.
[HTC Sensation] blahbl4hblah:
Almost did once but who knows maybe CyanogenMod fixed everything so it's less stressful on the computer. If you guys want to use vm by all means go ahead. As for me I prefer dual booting so that's why I offer it more xD
[HTC Sensation] xXkingsromXx:
this is what you have posted in update!

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

<manifest>

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

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

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

</manifest>

this is what my local manifest ends up like!!!

why???

<manifest><remote fetch="https://github.com/" name="gh"/><project name="OpenSensation/android_device_htc_pyramid.git" path="device/htc/pyramid/" remote="gh" revision="master"/><project name="elelinux/vendor_htc_pyramid.git" path="vendor/htc/pyramid/" remote="gh" revision="master"/><project name="CyanogenMod/android_device_lge_p990" path="device/lge/p990" remote="github"/></manifest>

---------- Post added at 04:40 AM ---------- Previous post was at 04:38 AM ----------

maybe i need a more patient to dev to guide me thru! Thanks!
[HTC Sensation] blahbl4hblah:
Looks like you don't save the file
[HTC Sensation] xXkingsromXx:
hmm i run bash text pops i paste yur stuuf click save

go to files then move to repo by ctrl h bam

run the build click 20ened up with same issue
[HTC Sensation] sparksco:
Just make sure you have at least 20GB+ free on your hard drive after you install in VM and all the required packages as well to compile. Most people that run VM use VM because or restrictions of hard disk space. If this is not a issue for you then go for it. But then again if you have enough space and you can stand to re-install both windows and linux then that would be best. That way all your RAM is being used to compile and not wasted on running both windows and VM at the same time. It will just run a lot smoother and compile faster if you dual boot.
[HTC Sensation] xXkingsromXx:
maybe issue is im on 32 bit instead of 64????
[HTC Sensation] blahbl4hblah:
Well you save, do you repo sync again?
[HTC Sensation] xXkingsromXx:
save then repo sync directly after save?
[HTC Sensation] selectodude:
I agree entirely. Maybe I'm in the minority running VMs on a quad core with 12GB RAM. I devote 10.5GB to the VM and all four cores and Windows is basically unusable. But it's significantly quicker and easier than screwing around with a dual-boot.
[HTC Sensation] blahbl4hblah:
Well there's a reason for why VM can be used :P

That fast, go VM as you wish
[HTC Sensation] blahbl4hblah:
Repo sync saves your compiling
[HTC Sensation] xXkingsromXx:
stil end up with this after save then repo syn

CyanogenMod/android_device_lge_p990" path="device/lge/p990" remote="github"/>
[HTC Sensation] sparksco:
I think we've been very patient with you and answered all your questions. Here ya go, one command to do everything...once the file pops up make the edits, save the file and close it and the rest of it (repo sync) "should" continue automaticly. After repo sync the lunch menu will pop up, select the device, then sit back and wait (hopefully lol).

$ gedit ~/android/system/.repo/local_manifest.xml; cd ~/android/system; repo sync; . build/envsetup.sh; lunch; rm -rf out; make CC=gcc-4.4 CXX=g++-4.4 -j# otapackage;
[HTC Sensation] hawkeyexp:
yes - that seems to be the problem
[HTC Sensation] TamCore:
cd ~/android/system/device/htc/pyramid
git fetch http://review.cyanogenmod.com/CyanogenMod/android_device_htc_pyramid refs/changes/19/15219/1 && git cherry-pick FETCH_HEAD

That's it.

commit ef62d77bc3071e604d1d09c41904a6be29e8df74
Author: poorhatsoap <poorhatsoap@gmail.com>
Date: Thu Apr 26 20:38:45 2012 +1000

Set DYNAMIC_SHARED_LIBV8SO to 'false'

diff --git a/BoardConfig.mk b/BoardConfig.mk
index e0c865f..cd680db 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -80,3 +80,6 @@ BOARD_SDCARD_DEVICE_SECONDARY := /dev/block/mmcblk1
BOARD_SDEXT_DEVICE := /dev/block/mmcblk1p2
BOARD_USES_MMCUTILS := true
BOARD_HAS_NO_SELECT_BUTTON := true
+
+# Dynamic shared V8 library
+DYNAMIC_SHARED_LIBV8SO := false
[HTC Sensation] hawkeyexp:
seems to work ! thx
[HTC Sensation] Alouch47:
Thanks for the tuto.

I've successfully compiled my first AOKP build with a few changes in sources

Will test it now. Hope it'll boot :)

(Debian 6.0.4 64bit).

[Edit] Rom booted sucessfully and everything seems to work fine.

But my patch is not fully working, must have missed something (FYI i'm trying to make EAP-SIM/AKA work).

Anyway, it's a good start :)
[HTC Sensation] blahbl4hblah:
Glad it worked for you as for aokp I never really focused on it since I'd rather just use cm9 stock.

Can you upload the patch onto pastebin so I can see it. Unless its from gerrit

Sent from my HTC Sensation
[HTC Sensation] dislplin01:
I installed Ubuntu 12.04 i take it this will not work on it sorry I am really new to this I am a computer tech but know not much about development but am trying to learn
[HTC Sensation] blahbl4hblah:
I honestly don't know as I haven't tried 12.04

You can try it though just let me know if it works
[HTC Sensation] bruce2728:
I'm using 12.04 x64 and it works just as well as 11.10. Ive been using it for 2 weeks, done about 4 builds on it with no problems at all.
[HTC Sensation] yozpalang:
Same here, It works :D

Sent from Sensation powered by ICS
[HTC Sensation] atltrickster:
Thank you very much for this tutorial blahbl4hblah! I'm still pretty new to Linux but was able to get a build environment up and running with the instructions you provided :)

While attempting to learn more, I stumbled across this thread containing an ICS port of PDroid for AOSP 4.0.4 and CM9. [CM9][PDroid][Apr08] ICS port of PDroid framework, CM9, P990

I really want to try and build it into the rom using the guide that was provided but am afraid of messing things up pretty badly (repos, etc) if the end result doesn't boot on the phone.

Does anyone have experience with PDroid and would be willing to give it a shot? This would be a GREAT addition to the Sensation :) :) :)

More information on PDroid can be found here: [APP] PDroid - The Better Privacy Protection
[HTC Sensation] blahbl4hblah:
Thanks both of you maybe ill give it a try very soon. How is the new ubuntu faster?

Sent from my HTC Sensation
[HTC Sensation] bruce2728:
For me it is faster but mainly because 11.10 kept installing the wrong drivers for my motherboard and the UI is slightly different, like white context menus.
[HTC Sensation] Vorbeth:
You might get some people complaining about java not installing on a fresh 12.04 build.
[HTC Sensation] Vorbeth:
Damn tapatalk
[HTC Sensation] blahbl4hblah:
Thanks for the heads up.

I'll keep it the guide for 11.10 for the time being
[HTC Sensation] dislplin01:
Yea I had trouble with java but I did eventually get it to work
[HTC Sensation] sparksco:
Just make sure you have 11.10 installed first, install java6, and gcc-4.4 (just in case new gcc sucks) then upgrade to 12.04 LTS. Working great for me :)
[HTC Sensation] dislplin01:
Edit : an trying again will post if I get another error
[HTC Sensation] kmmxracer:
I installed 12.04 LTS on my new laptop. Is there a way to get java6 and downgrade gcc?
[HTC Sensation] blahbl4hblah:
I installed a fresh build last night and I had java working flawlessly. I'll edit the guide on how to do this later. I have class right now

Sent from my HTC Sensation
[HTC Sensation] johnp888:
So thanks for creating this tutorial Blah. I followed the directions for compiling aokp and it seemed to work the first time. Then the numerous times I tried afterwards always failed. I followed the 'make clobber' directions and then do a 'report sync' but the compile keeps failing. Do you think it's a repo syncing problem? I was going to delete everything and try again but was curious if anyone has an idea why my compile keeps erroring out. Thanks.
[HTC Sensation] blahbl4hblah:
What error is showing up?

Sent from my HTC Sensation
[HTC Sensation] sparksco:
You shouldn't have to delete the entire source. The commands "make clean", "make cleaninstall" and "make clobber" don't always work properly to delete the entire target directories. Take a look at my build script it's slightly different since it's for speedy.

http://www.gitorious.org/teamandroi...ase/tools/build_scripts/Speedy/SpeedyClean.sh
[HTC Sensation] johnp888:
I seem to get different errors. I can't remember now that I'm not at my home Linux box. Will report back tonight. Thanks.

---------- Post added at 12:52 AM ---------- Previous post was at 12:51 AM ----------

Cool I will take a look tonight and give it a try.
[HTC Sensation] aaronpoweruser:
any idea as to what would cause a repo to initlize to the home folder, i ran repo init from with in android/system
[HTC Sensation] johnp888:
Hi just wanted to update you and blahbl4hblah that after removing the "out" directory from android/system i finally compiled a build successfully! now i'll probably try again this weekend to see whether it's repeatable. Thanks!
[HTC Sensation] sigmabeta:
Seconded; apt-get update after adding that PPA (according to instructions) returns 404 errors. must not have been updated for Precise yet.
[HTC Sensation] blahbl4hblah:
Yes that's true, but the title of this thread for the time being is 11.10
[HTC Sensation] sigmabeta:
Hah. I quoted the wrong post, meant to quote Vorbeth saying people were going to be unable to install java on 12.04 (no idea how I got the one I ended up quoting.)

If I figure a workaround out before anyone else I will post one.
[HTC Sensation] sparksco:
I already posted a workaround a page or two back.
[HTC Sensation] sigmabeta:
A workaround that doesn't involve installing two new operating systems, I mean.
[HTC Sensation] Alouch47:
The patch is from Google Code : http://code.google.com/p/seek-for-android/wiki/EapSimAka

I'm trying to implement this, but I can't get it to work for now.

Moreover, the patches didn't match the sources files perfectly, so I have to deal with that too.

I'm absolutely not a dev, but I know my way with compiling and patching linux sources, so i'm just trying to see how far I can get :)
[HTC Sensation] Vorbeth:
You can build it using OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu2)

There is an error only because the build system does not recognize the java version when it uses OpenJDK

To work around it, you can just comment out the following lines in build/core/main.mk:

ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
java_version :=
endif

I also did

sudo ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/libGL.so

Source for fixes: http://ronubo.blogspot.co.uk/2012/04/building-aosp-with-ubuntu-1204.html

It does work, latest OpenSensation is compiled using the above on Ubuntu 12.04
[HTC Sensation] riz1234:
Hey guys,

Why 64 bit only? Is it a performance thing or does Android SDK require 64 bit gcc?
[HTC Sensation] blahbl4hblah:
Because a lot of people that I could remember had issues with 32-bit ubuntu so I can't really say. I've always used 64-bit and never had issues.
[HTC Sensation] riz1234:
Cool. I've got 32 bit so will give it a go there first. Thanks anyway.
[HTC Sensation] sparksco:
Google

http://source.android.com/source/initializing.html

"You will need a 64-bit version of Ubuntu. Ubuntu 10.04 is recommended. Building using a newer version of Ubuntu is currently only experimentally supported and is not guaranteed to work on branches other than master."
[HTC Sensation] dislplin01:
I am going to try tonight cause I get Java error too on 12.04 but in not exactly sure how to do what your saying
[HTC Sensation] riz1234:
That's right. But wondering, why?
[HTC Sensation] geoffcorey:
Because some of the compile process requires it.
[HTC Sensation] Alouch47:
Hi,

i've already compiled using the above method, but as I explained, I'm trying to patch sources files to add a function.

I haven't sync'ed for some days, and now I can't repo sync anymore.

~/android/system$ repo sync
Fetching projects: 100% (289/289), done.
Syncing work tree: 81% (235/289) error: You have local changes to 'res/values-zh-rTW/arrays.xml'; cannot switch branches.
Syncing work tree: 100% (289/289), done.

error: packages/apps/Settings/: AOKP/packages_apps_Settings checkout 54a45fb4af0e453808299a24b04aa5855feed1df

The afore-mentionned file I one I have modified among others. How can I do to repo sync now ?

Thanks for your help.
[HTC Sensation] sparksco:
The changes your trying to add are not following the cm source tree. Did you commit your changes to github via cm gerrit? After you commit your changes you need to upload it to gerrit or aokp repos in order to have it merged into the source tree.
[HTC Sensation] Alouch47:
Thanks, but I don't wan't my changes to be comitted nor merged.

ATM it's only local tests i'm doing, and I'm not a contributor.

Can you please explain me how to discard all my local changes and update my working dir to the latest sources ?

I'm new to this system, and every help I search for on google is about GIT itself, but git commands aren't working in ~/android/system complaining that it's not a GIT repository.
[HTC Sensation] Vorbeth:
You can run git commit -a, your changes will only be kept locally.

Other steps are required to upload them to git etc.

If you want to undo all your changes then run git stash

You do this in the root dir of what repo your making changes too.

Ie Settings, you cd to packages/apps/Settings then git will work.
[HTC Sensation] Alouch47:
Thank you. Now I understand what's the .git dir is for :)
[HTC Sensation] Alouch47:
Me again :(

I know the purpose of this topic isn't to help resolve compilation problems, but if someone is willing to help, i'll gladly appreciate.

I'm facing the following build error:

build/core/main.mk:530: *** The following variables have been changed: PRODUCT_COPY_FILES. Stop.

As I understand, it's from my "external/pcsc/ifdhandler/smartcardapi/Android.mk" (http://pastebin.com/Rd0nzZb3)

It's not a standard file, I know.

I've change inside the 'PRODUCT_COPY_FILES' to 'BUILD_PREBUILT'

But it's even worse now.

build/core/tasks/kernel.mk:140: warning: overriding commands for target `out/target/product/pyramid/kernel'
build/core/Makefile:36: warning: ignoring old commands for target `out/target/product/pyramid/kernel'
make: *** No rule to make target `external/pcsc/ifdhandler/smartcardapi/reader.conf:system/etc/reader.conf'. Stop."

(Full pastebin : http://pastebin.com/kyiXrukX)

any advices ?
[HTC Sensation] Vorbeth:
Change it back to PRODUCT_COPY_FILES, that's the right call for copying files.
[HTC Sensation] Alouch47:
I agree to that, that's what I understand while googling. But then I'm facing the product_copy_files error, and

build/core/main.mk:530: *** The following variables have been changed: PRODUCT_COPY_FILES. Stop.

-----------------

[EDIT]

Goddammit. I can't believe that this can be so undocumented. After hours of googling and not a single answer, I just had a clue by myself, that if rename the 'Android.mk' file to 'whatever.mk', it would work... now it's building :-/

Thanks everyone for the time & help.
[HTC Sensation] danielmid84:
My guess would be that it redownloaded the Android.mk file from the repo after it couldn't find it. You could have done the same by deleting the file and repo syncing.
[HTC Sensation] sparksco:
I'm telling you it's a lot easier to commit and stash your changes. Cd to the git repo first e.g.

$ cd packages/apps/Settings
$ git checkout -b ics-patch1
$ git commit -a (ctrl + o then ctrl + x)

Now at this point write down the commit # it gives you in terminal

$ cd ~/android/system; repo sync;
$ cd packages/apps/Settings; git merge 14567fjhfhs66 ect ect

(type your commit number here)

Now every time you repo sync just cd to the repo your changing and merge the commit numbers, or you can write up a script to do it for you. You do not have to upload it to online this way.
[HTC Sensation] Alouch47:
Thanks very much for the explanation. It's now clear :-)

Envoyé depuis mon HTC Sensation XE with Beats Audio avec Tapatalk
[HTC Sensation] riz1234:
Hey guys,

Is there any way to repo sync to only pull tree for pyramid? Repo sync brings other device and manufacturer specific stuff that I don't need. I have over 17G data now locally. Quite a lot more than I expected.
[HTC Sensation] blahbl4hblah:
Fork cyanogenmod android repo and make changes to it and add the pyramid repo

Sent from my HTC Sensation