yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Android Development] pconwell:
I'm not trying to criticize your work. If it came across that way, I'm sorry. Also, I want to clarify - I thought people were asking about build the CM ROM, not the kernel. I don't know anything about the kernel directions on the wiki. My intentions were to link information on building a ROM, and I know those directions are up-to-date (for froyo - gingerbread is in the works).

EDIT: Also, i want to clarify one other thing. You DO NOT need java 5 or a 64 bit build environment for CyanogenMod. You can use Java6 and a 32 bit machine with CM - even with gingerbread.
[myTouch 4G Android Development] sykopompos:
You are Semi-correct, it isn't java 5 or 6, it is 1.5 and 1.6, cm source has been modified in build/core to allow for it but the guide was written for more than cm source and pre-gingerbread builds needs java 1.5 and gingerbread aosp needs java 1.6 needs 64 bit. I only covered the cm source cause people were requesting it. As for up to date then why would an unneeded command like copying a buildspec.mk still be in there when running the lunch command does the same thing, that was in the instructions for cupcake. Instructions for building a Rom is also incorrect, you linked to a wiki on just how to compile cm source and instructions that are already well covered and explained here. The guide is meant to take someone who never used a version of Linux to setting ul a COMPLETE build environment to compiling the source and a kernel.

I not trying to seem like a $$$ bit when you don't resd the guide and just jump in like a troll spreading misinformation then I get annoyed. If you read the guide I say why the instructions where outdated and what was unneeded. Please take the time to actual read something because you might learn something.

Btw I can tell that you did not read it by your response
[myTouch 4G Android Development] pconwell:
And you haven't actually checked the wiki lately, like you claimed. The instructions you suggested are out of date were removed a while ago. Additionally, linking to more information is hardly trolling. Trolling would be something more like:

And I would like to reiterate that the wiki is up-to-date as of froyo (and has been for a while).

Again, I am not trying to say you don't have valuable information to share, but you don't have to be a **** just because you don't like the wiki.
[myTouch 4G Android Development] sykopompos:
How in the world is what I said is trolling, it is my thread. Yes I did check the wiki and if the pics were up then you would see that. I checked it as of Saturday when the guide was written and the they were still there. I check so I could explain the grep line with make on the wiki. So if you are the maintainer of the wiki which it sounds like then good job changing it I wrote this guide. I appreciate you input to this thread but I disagree with you, polity.
[myTouch 4G Android Development] pconwell:
Just because it's "your thread" doesn't mean you can't troll.
[myTouch 4G Android Development] sykopompos:
It is called responding, now quit spamming the thread
[myTouch 4G Android Development] robkoehler:
the nexus one cm wiki isn't bad. i was able to build from it before you posted yours. in fact, when i recently started from scratch, i used both. you just have to know some basics when following the cm wiki. you start from square one to help people that probably shouldn't be building from source lol. i do appreciate insight into your process though :-)
[myTouch 4G Android Development] bubonik:
You guys need to ease up. Both guides are what they are. This was targeted to a specific group of peoplr and it did that well.

I personally have tried compiling donut for dream a while ago via the wiki and it never worked.

This guide helped me compile gingerbread the first try. So props to (constant name changer) for making this.
[myTouch 4G Android Development] sykopompos:
This will be the last name change, lol.

Yeah the instructions back on donut is why I wrote the guide in the first place. I spent many many hours/days ripping my hair out
[myTouch 4G Android Development] Craigerade:
error when compiling

I am trying to build for the hero. I switched the part for extracting files to device/htc/hero and for lunch to lunch cyanogen_hero-eng. When I make bacon I get this error,

make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes-with-local.dex] Killed

I repo synced again and went through the process again and got the same error.

Do you know what is causing this error?
[myTouch 4G Android Development] Ducter:
I am in no way a Linux pro, but in the same hand also not a Linux n00b. More of a semi-moderate user if that makes sense. Now with that said I wasnt able in the past to build properly from the wiki, but this guide has allowed me to see what was missing, nothing major but was the difference of another attempt to success.

I am waiting for a guide on pure AOSP builds as thats what I prefer. Cant find that in the wiki :-) (wouldnt expect to either lol)

I just chimed in here in support of sykopompos, as with his guide everything worked for me.
[myTouch 4G Android Development] sykopompos:
I myself haven't tried building for the hero yet but I will try later and see if I get the same error and get back to you
[myTouch 4G Android Development] everest.deth:
Syko...if i want to get more into the kernel modding things, i had read that i would have to sync from: "~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git", and add it to a different folder named "myandroid" (just as a default name), is this source any different than syncing from: "repo init -u git://github.com/CyanogenMod/android.git -b gingerbread". I am assuming it is as the source you posted is for Cyanogen only right? whereas the other one makes refence to kernels? :confused:

I say so because along the second guide im following we will eventually pull out "make menuconfig", which i think its older and suckier than make xconfig...so, i wanted to know if there was any point behind redownloading source, if i can already do enough changes with xconfig...

BTW, are you going to post anything regarding kernel moddin, the other guide im reading is quite outdated? :S :S :S

THanks in advance. Your guide was pretty f*ckin awesome :D
[myTouch 4G Android Development] sykopompos:
You can download from any source, you do not need to name it anything other than what you would like to name it. Repo is just a tool that does git clone and git pull for larger projects. If you wanna pull something from github or a kernel you would use git clone.

As for make menuconfig or make xconfig, they are the same thing but xconfig brings in a nicer gui which makes it a bit easier to work with
[myTouch 4G Android Development] stefan.buddle:
heres what i got when trying to build on a 32-bit system

guess 32-bit is for pre-gingerbread builds and 64-bit for anything beyond that?
[myTouch 4G Android Development] VolcanicSkunk:
I'm having trouble when it comes to the repo sync. Here is the command I enter and the response I get.

iriscience@Adamon:~/cm7$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Traceback (most recent call last):
File "/home/iriscience/bin/repo", line 91, in <module>
import readline
ImportError: No module named readline

I went to the package manager and downloaded every package that had the name readline in it. I just can't seem to get it to sync! Any help at all is greatly appreciated!
[myTouch 4G Android Development] everest.deth:
Is this the first time you are syncing from the source?

Edit: just in case... is lib32readline5-dev installed? **i know you went to package manager...but try from terminal to see if its installed or nor xS

If its not you should just do:

cd cm7/

Repo sync

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] VolcanicSkunk:
Yes, this is my first time syncing from source. I have lib32readline6-dev installed. I had 5 installed, but upgraded to 6 because I thought that might be the issue. When I have my computer home for the evening I'll give that a shot. Thanks!
[myTouch 4G Android Development] adianlorenzana:
When that blue java screen comes up when you do:

sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk gitg qt3-dev-tools libqt3-mt-dev eclipse valgrind

...How do I say yes... lmao

seriously though
[myTouch 4G Android Development] everest.deth:
Hit the arrow key to go down and then enter

Its that one or the side side arriw key...xD most likely the down arrow key

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] adianlorenzana:
Thanks!

But now how do I do this... It doesnt seem to be commands

Sorry my linux is really rusty rofl
[myTouch 4G Android Development] everest.deth:
How far did u get too?

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] adianlorenzana:
To where it says REPO :(
[myTouch 4G Android Development] sykopompos:
Those big gaps are a spacing telling you to put it into terminal. Cd means change dir, mkdir means make dir, curl pulls from a url
[myTouch 4G Android Development] everest.deth:
Ok first thing you have to:

cd~ (this means change directory, and ~ is a shortway to get to ur home directory)

mkdir bin (mkdir= make directory, bin is the name of the new foldet ur creating)

We'll start with that :) reply when done,

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] VolcanicSkunk:
I'm not sure what I could be doing wrong. I have tried downgrading from lib32readline6-dev to lib32readline5-dev. I have also tried getting it from the package manager and installing it through the terminal. I don't know what else to do. Every time I try to repo sync I get the same error about not having a module named readline. I would really appreciate any help with this!
[myTouch 4G Android Development] everest.deth:
Ok so, i read a bit and apparently it has to do with python

We need to make sure that the dependencies for libreadline are installed

Read this guide: (dude had the same issue)

http://xdaforums.com/showthread.php?t=715118

And/or this one: (this dude had same issue but on a mac)

http://code.google.com/p/android/issues/detail?id=1032

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] everest.deth:
I honestly think the steps on the second guide would work better, they make more sense lol

I would try but i seem unable to recreate the error u have :s

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] adianlorenzana:
Done :O

/tenchar
[myTouch 4G Android Development] everest.deth:
Good, now we need to add that folder u just created to our $PATH

export PATH=${PATH}:~/bin

Then we need to download repo to that folder by copyinh

curl https://android.git.kernel.org/repo >~/bin/repo

That will copy the info from that url and will add it to ~/bin/repo (~ making reference to the home folder, then bin which is the folder we created and repo which will contain the files we are going to download.

Then you have to make sure that the repo scripts u copied from the url are made executable :)

chmod a+x ~/bin/repo

(chmod means "change mode" giving it administrative [a] + executable [x] permissions)

This will not do anything drastic on terminal as soon as u hit enter it will move to the next command line.

Let me know how it goes

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] adianlorenzana:
Alright yeah I got through all of that after the first bit of advice you gave me :)

Now I'm syncing the cm7 repo...thing

Only thing is that I was looking ahead while it is doing this and I noticed the kernel instructions and such are for glacier/vision o.O what would I have to do to get the cm7/kernel source for the incredible?
[myTouch 4G Android Development] VolcanicSkunk:
THANKS!!!! That first link worked! Apparently you need to have python 2.4.6 installed for it to work. I installed it and it worked right away! Syncing now!
[myTouch 4G Android Development] everest.deth:
Just swap "vision" for the word incredible or its codename xD dont know which one it is :) (btw if i helped please press the thanks button :D)

EDIT: instead of vision use "inc" :)

I.e:

cd cm7/device/htc/inc

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] everest.deth:
Glad i could help :) im having a hard time myself right now :( i made some changes to the preloaded kernel and now when i repo sync it wont update the kernel as doing so would overwrite my changes...and i guess i do want it to override as my changes did no good lol

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] dumfuq:
You probably just need to add and commit your changes to your local repository.

git add .
git commit -m "this is my change"

kinda generic, but the basic idea
[myTouch 4G Android Development] everest.deth:
I knew that, the problem is that my change was no good, therefore no need to send out the commit :P

I did

cd cm7/device/htc/glacier/

git reset --hard

And that erased my changes :)

git reset --hard

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] dumfuq:
ahhh.

didn't catch the original "as my changes did no good lol".
[myTouch 4G Android Development] everest.deth:
Yeah we dont wanna spread my bootloops worlwide xD

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] adianlorenzana:
Don't worry I did ;)

Thanks for all your help man!
[myTouch 4G Android Development] everest.deth:
Were u able to get the kernel on your phone? Or u just compiled it and let it sit? :cool: lol

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] StDevious:
awesome guide
[myTouch 4G Android Development] cazper210:
damn

i was getting to work in 10.10 but i miss the pictures something told me to save it when i had the chance sometimes some visuals go along way i am still learning linux
[myTouch 4G Android Development] everest.deth:
You can still go along by reading :) let us know of you get stuck along the road and we'll help you out

Sent from my rooted glacier running CM7
[myTouch 4G Android Development] StDevious:
Thank you for this guide, I compiled my first ROM.

Now how do I decide which apps I want to put in there from default and which to remove ?

also how do I edit some other stuff like themes and all ?
[myTouch 4G Android Development] everest.deth:
I would like to know that aswell :rolleyes: :rolleyes: :rolleyes::D
[myTouch 4G Android Development] sykopompos:
That is a much harder thing to explain in a simple post. Would need to explain the source in full detail so others would understand it
[myTouch 4G Android Development] StDevious:
I see. So can you give general pointers of what I should search for, tools, methods and such.
[myTouch 4G Android Development] dangerismymiddlename.com:
Most of the images now say, "Bandwidth exceeded. Photobucket". If you send me the guide and images, then I can host them at dangerismymiddlename.com and you can link to that.
[myTouch 4G Android Development] B-dub25:
Does anyone now how to install curl ? I think its this code but I would like to make sure.

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
[myTouch 4G Android Development] VolcanicSkunk:
yes, that is how you get curl
[myTouch 4G Android Development] B-dub25:
Thanks I ran into a problem now when I get to code : ( source build/envsetup.sh )

I get no file or directories any idea why? I'm in cm7/vendor/htc/supersonic directory when I do the command. I'm pretty savy with Linux and I'm wondering if the repo or some other step I did didn't download all the files. any help would be great. Thank you
[myTouch 4G Android Development] sykopompos:
When you run envsetup yyou need to be in your source root dir so it would be cm7 by saying source (same as bash or ./) build/envsetup.sh (look in /build for envsetup.sh and run)
[myTouch 4G Android Development] B-dub25:
NM

I figured it out. ( long day in my computer science class C++ and JAVA can drain your brain)
[myTouch 4G Android Development] B-dub25:
A little help here please

Thanks for sharing this with us. I keep running into a problem when I run this code: make bacon -j`grep 'processor' /proc/cpuinfo | wc -l`

I get many errors

build/core/Makefile:19: warning: overriding commands for target `out/target/product/vision/system/media/audio/ui/Lock.ogg'

make: *** [out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 1

In file included from /usr/include/features.h:387,

from /usr/include/inttypes.h:26,

from system/core/include/mincrypt/sha.h:31,

from system/core/libmincrypt/sha.c:28:

/usr/include/gnu/stubs.h:7: fatal error: gnu/stubs-32.h: No such file or directorymake:

*** Waiting for unfinished jobs....

make: compilation terminated.

*** [out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/rsa.o] Error 1

In file included from /usr/include/features.h:387,

from /usr/include/stdlib.h:25,

from build/tools/acp/acp.c:11:

/usr/include/gnu/stubs.h:7: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/sha.o] Error 1

make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1

what going on do you think?

thank you.
[myTouch 4G Android Development] cazper210:
git problem

I get this everytime i try to get the repo git

jonathon@ubuntu:~$ mkdir cm7

mkdir: cannot create directory `cm7': File exists

jonathon@ubuntu:~$ cd cm7

jonathon@ubuntu:~/cm7$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread

Getting repo ...

from git://android.git.kernel.org/tools/repo.git

fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)
[myTouch 4G Android Development] sykopompos:
This I will think most likely an error with the source files, try a repo sync again and see if problems still persist
[myTouch 4G Android Development] sykopompos:
I got this recently when trying to build from Cm6, try a make clean, sync again and try to build again, if it persists then let me know it could be that something isn't set up properly or you don't have the correct version. What are you trying to build on ie 32bit or 64bit which version of linux, fresh install or pre-existing installion, what source are you trying to build from?
[myTouch 4G Android Development] cazper210:
thanks man i successfully compile everything nicely and flashed it cause i am brave nothing broken everything works perfect thanks again i actually had fun doing this the guide works if you follow everything step by step and stuff. just wanted to know if i wanted to build sense how would i go bout it i like to learn both worlds.
[myTouch 4G Android Development] sykopompos:
To compile sense is impossible cause there is no source code availible for it. With sense you are either porting or modifiying a stock build
[myTouch 4G Android Development] cazper210:
Ahh I figured that ok no problem but thanks again whenever the build bot fails I have my new found knowledge to make my own
[myTouch 4G Android Development] sykopompos:
The purpose of buildbot is not to provide nightly public releases but to make sure that the source code builds without errors so if buildbot fails then it is about 95% likely that yours will fail too
[myTouch 4G Android Development] Jaybap:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev sun-java6-jdk gitg qt3-dev-tools libqt3-mt-dev eclipse valgrind pngcrush wput

after i run this command i get these errors. I am running a 64 bit version of ubuntu 10.10

E: Unable to locate package libc6-dev-i386

E: Unable to locate package lib32ncurses5-dev

E: Unable to locate package ia32-libs

E: Unable to locate package lib32readline5-dev

E: Unable to locate package lib32z-dev

any help would be great
[myTouch 4G Android Development] Zobat:
this guide worked for me.

thnx dude!

I ran into this problem http://groups.google.com/group/android-platform/browse_thread/thread/c288e9bf4ff21a90 cc1plus: error: unrecognized command line option "-m32"

The solution in there worked for me also.

I feel so proud running my own android :)

pushing gapps
[myTouch 4G Android Development] Zobat:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev sun-java6-jdk gitg qt3-dev-tools libqt3-mt-dev eclipse valgrind pngcrush wput

check the 1th post :D

---
[myTouch 4G Android Development] sykopompos:
Congrats, glad you got it working and yeah it is nice to run your built rom instead of just downloading someone else's
[myTouch 4G Android Development] MedleHed:
Nice guide! Thanks! I finally got Ubuntu installed so I could play with my own builds and your procedure looks to have worked perfectly.

I just compiled my first build and it booted fine and looks like it is working well.

My question is if I ran the repo sync this morning is the source I compiled newer than nightly 58? Does it contain the merges since 58 was released?

The file name is update-cm-7.0.2.1-Inc-KANG-signed.zip so I'm a little confused. I believe that is the name because 7.0.2.1 is the latest stable release. Can I just rename the zip to track when it was compiled?

Thanks again for the guide!
[myTouch 4G Android Development] faux123:
If you run repo sync, it will sync to the latest github version. So in your case should be nightly 58+ (from this morning).

Yeah, you can rename the zip to whatever name you want :D

BTW, congrats, you learned something :)
[myTouch 4G Android Development] MedleHed:
Awesome! Thanks.:cool:
[myTouch 4G Android Development] MedleHed:
I was actually hoping changing the file name would change the MOD Version in Settings>About Phone. Silly me! A quick search pointed me to the ro.modversion line in the build.prop file.

Hooray google and xda! :D
[myTouch 4G Android Development] yogi2010:
thank you sykopompos for this great guide! i made it all the way thru the first post with everything all set up, but one key problem: my G2 is not showing up when i type lsusb, and adb devices gives an empty list of devices. i have the HTC drivers on the Windows portion of my computer, and before wiping my computer, i did have adb recognizing the phone in Windows. but in my virtual Ubuntu box here, the G2 has yet to be recognized. any tricks for getting this to work? i wasn't able to install the drivers in Ubuntu....

i'm running the latest CyanogenMod nightly, which at the moment is build 86.
[myTouch 4G Android Development] Pirateghost:
are you sure you have your virtualbox set to pass through the USB device? there is no need for drivers in ubuntu. it just works
[myTouch 4G Android Development] yogi2010:
ok, I went up to Devices in the VirtualBox, then down to USB Devices, and my HTC device is there!(it says 'state: captured') so I click on it, and I get a notice in Windows saying the device driver software is installing, sometimes it is successful, sometimes not. when that finishes tho, I still get an empty list of adb devices in Terminal. is there something else I need to do? in my copy of the SDK in Windows, adb recognizes my device perfectly.

hey, thanks for the response by the way!
[myTouch 4G Android Development] altroy2:
Great guide faux! Wish I had it a few weeks ago lol. Either way, Im glad we have it here now, in case i forget something. I tried 6 different linux os's and came back to ubuntu. My personal preference. Thx!
[myTouch 4G Android Development] BlueHarford:
Why are you doing a lunch vision instead of lunch glacier for the mt4g?
[myTouch 4G Android Development] Pirateghost:
maybe because thats the device he was using to create this tut?