• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Discussion - Developers _ONLY_] Building ICS from source (Isaac's github).

I think either you didn't do this:

-typed: cd ~/android/system
-typed: repo init -u git://github.com/ikarosdev/android.git -b ics

OR you did it in the wrong directory. Notice in your error log:

fatal: Not a git repository: '/home/sean/.repo/projects/bootable/bootloader/legacy.git'
fatal: Not a git repository: '/home/sean/.repo/projects/dalvik.git'

It is talking about /home/sean/.repo/...

That .repo directory should be /home/sean/android/system/.repo/...

Edit: OR, you have residual .repo directories laying around when you may have mistakenly done a "repo init" in the wrong directories.

If you look in the file manager and hit CTRL+H on your keyboard, you can see all of the hidden files/folders (basically any file/folder that begins with a dot such as .repo). Or, you can type ls -a in the terminal to show the hidden files also. I would get rid of any unneeded .repo directories, especially in your home folder /home/sean/.repo since I assume you won't really be doing any syncing or version control directly in the /home/sean/ folder.

I shall do that.

Linux or Mac (which, of course, is based on unix) only.
Seriously? I wasted all my time to not figure out I could just do it on my Mac?! Jeez. I need a brain. I guess I can use his tutorial but use the right directories for my Mac right?
 
I shall do that.


Seriously? I wasted all my time to not figure out I could just do it on my Mac?! Jeez. I need a brain. I guess I can use his tutorial but use the right directories for my Mac right?


Correct, for your Mac.

Look here on the AOSP site for more detailed instructions for your Mac and tailor it for Isaac's repo info.

Initializing a Build Environment | Android Open Source

From the instructions though:
"To build the Android files in a Mac OS environment, you need an Intel/x86 machine running MacOS 10.6 (Snow Leopard)."

Edit: Or read through the CyanogenMod wiki How-to's for some of the official ports on how to build in OSX and again, adapt the instructions to the Triumph.

http://wiki.cyanogenmod.com/wiki/Building_from_source
 
Well, I was able to get it to finally sync without errors. :D

I cleared it out, and found the hidden .repo files and deleted them. I'll have to cut the sync off once my car is fixed, but then I'll head home and let this baby run, hopefully, if all goes well, I'll attempt a build.
 
Well, I was able to get it to finally sync without errors. :D

I cleared it out, and found the hidden .repo files and deleted them. I'll have to cut the sync off once my car is fixed, but then I'll head home and let this baby run, hopefully, if all goes well, I'll attempt a build.

You'll probably have to get the proprietary blobs too from your phone or download the package from this post:

http://androidforums.com/triumph-al...7-source-development-area-11.html#post3634312
 
I'm sorry, but let me clarify:
-you got the error
-you went and deleted ~/bin and ~/android/system
-deleted ^ those files permanently from the trash (optional)
-went back into terminal
-typed: mkdir -p ~/android/system && mkdir -p ~/bin
-typed: curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
-typed: chmod a+x ~/bin/repo
-rebooted
-started terminal again
-typed: cd ~/android/system
-typed: repo init -u git://github.com/ikarosdev/android.git -b ics
-set up name and email
-typed: repo sync -j16
? If not, follow ALL above

Don't forget, if you want to move ICS to a different directory to keep gingerbread.... cd to the folder where you initialized repo. ls -a to make sure .repo is in there, then do a rm -r .repo Then cd to the new directory where you want ICS to be, and repo init -ics in that directory.
 
Its all there except he hasnt updated his cherry picks so you will be fighting alot of errors that he already solved.

ISAAC: if you are reading this please upload all of your changes to github. lol thanks :D

I have fully synced but upon building I get this error
Code:
build/core/base_rules.mk:166: *** hardware/qcom/media/audio/msm7x30: MODULE.TARGET.SHARED_LIBRARIES.audio.primary.triumph already defined by build/core.
When solved it throws another error. I can brute force solve most problems but thats not gonna work for ICS so im just gonna wait for isaac to finish updating his changes because he hasnt updated it since the 4th and Im sure thee has been aot of changes since then.

That's the error I was talking about in one of my previous posts.
 
You are correct sir. He has not put anything up for CM9.

Actually, my ICS changes on Github that I've made is pretty current. All the stuff that's specific for the Triumph ICS port is up. The things that I missing are the pieces need for the source to build.

The problem is the base code is changing everyday, but in order for CM9 to build (especially for the msm7x30 devices), certain commits need to be cherry-picked. However, this may cause conflicts when trying to merge from upstream.
 
Actually, my ICS changes on Github that I've made is pretty current. All the stuff that's specific for the Triumph ICS port is up. The things that I missing are the pieces need for the source to build.

Ah. Well, a few days ago when I went looking for it, I didn't see anything (nor did I know what I was doing.) Now that I have educated myself, I have indeed found your (Triumph specific) changes on Github.
 
Actually, my ICS changes on Github that I've made is pretty current. All the stuff that's specific for the Triumph ICS port is up. The things that I missing are the pieces need for the source to build.

The problem is the base code is changing everyday, but in order for CM9 to build (especially for the msm7x30 devices), certain commits need to be cherry-picked. However, this may cause conflicts when trying to merge from upstream.

Were can we find these cherry picks?
I tried to use you audio changes but it kept giving me errors. Will cyanogen mod make it easier to build for msm7x30 devices as time goes by?


How can I solve this error?

build/core/base_rules.mk:166: *** hardware/cm/audio: MODULE.TARGET.SHARED_LIBRARIES.audio.primary.triumph already defined by build/core. Stop.

Deleted the audio folder under cm and its building.
 
Were can we find these cherry picks?
I tried to use you audio changes but it kept giving me errors. Will cyanogen mod make it easier to build for msm7x30 devices as time goes by?


How can I solve this error?

build/core/base_rules.mk:166: *** hardware/cm/audio: MODULE.TARGET.SHARED_LIBRARIES.audio.primary.triumph already defined by build/core. Stop.

Deleted the audio folder under cm and its building.

It errors at the end. That's what i meant by "I changed the audio files" to get it to build.
 
IM so FREAKING STUPID
My a.d.d. kicked in and while i was reading all of a sudden I was like you dumb ass you forgot to pull the proprietary files to your ICS build directory.....


Im such an idiot
 
Do you guys use a dual booting windows and ubuntu (wubi) or use a vmware variant thing? Lol I hope I was clear saying this :)
 
Do you guys use a dual booting windows and ubuntu (wubi) or use a vmware variant thing? Lol I hope I was clear saying this :)
I dual boot. I was trying on vmware and it wasn't working so well, so I just set my laptop up to dual boot. Hadn't done it for like 5-6 years or so, and now I basically don't use the windows partition on the laptop, lol.
 
I dual boot. I was trying on vmware and it wasn't working so well, so I just set my laptop up to dual boot. Hadn't done it for like 5-6 years or so, and now I basically don't use the windows partition on the laptop, lol.

I REALLY like ubuntu, I'm not going to lie, but I've gotten so familiar with windows that I just can't replace it with Ubuntu. And maybe if I could increase the partition instead of just having 30 gigs :(. That and the fact that I always have to google a software to see if it supports linux. Anybody know how to get Microsoft word and powerpoint 2010 on ubuntu? It would probably push me to stay on it.
 
I REALLY like ubuntu, I'm not going to lie, but I've gotten so familiar with windows that I just can't replace it with Ubuntu. And maybe if I could increase the partition instead of just having 30 gigs :(. That and the fact that I always have to google a software to see if it supports linux. Anybody know how to get Microsoft word and powerpoint 2010 on ubuntu? It would probably push me to stay on it.

You could use OpenOffice.org. It's ms office compatible.
 
I've tried it but I don't think it has nearly as many features as office, but then again i haven't really messed with it that much.
 
I've tried it but I don't think it has nearly as many features as office, but then again i haven't really messed with it that much.
Last I had used it, it doesn't have all the features. But it can save your documents in a compatible format and all the basic and most advanced features are there.
 
Its all there except he hasnt updated his cherry picks so you will be fighting alot of errors that he already solved.

ISAAC: if you are reading this please upload all of your changes to github. lol thanks :D

I have fully synced but upon building I get this error
Code:
build/core/base_rules.mk:166: *** hardware/qcom/media/audio/msm7x30: MODULE.TARGET.SHARED_LIBRARIES.audio.primary.triumph already defined by build/core.
When solved it throws another error. I can brute force solve most problems but thats not gonna work for ICS so im just gonna wait for isaac to finish updating his changes because he hasnt updated it since the 4th and Im sure thee has been aot of changes since then.
I keep running into the same error and can't seem to find my way around it. I was curious if you figured out how to correct/get past and finish the build?
 
I keep running into the same error and can't seem to find my way around it. I was curious if you figured out how to correct/get past and finish the build?

I deleted the android cm audio android.mk and im now dealing with a bunch of application provider errors alot of xml deleting.
to make it short and sweet its a cluster **** to deal with.
I dont know how Isaac ended with a full biuld but he is a beast.
 
If any other DEVS can help me out
i have run into this error?


Aidl: framework <= frameworks/base/core/java/android/content/ISyncAdapter.aidl
packages/providers/ApplicationsProvider/AndroidManifest.xml:1: error: No resource identifier found for attribute 'sharedUserId' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:1: error: No resource identifier found for attribute 'versionCode' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:1: error: No resource identifier found for attribute 'versionName' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:0: error: No resource identifier found for attribute 'minSdkVersion' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:0: error: No resource identifier found for attribute 'targetSdkVersion' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:5: error: No resource identifier found for attribute 'name' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:7: error: No resource identifier found for attribute 'process' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:7: error: No resource identifier found for attribute 'label' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:9: error: No resource identifier found for attribute 'name' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:9: error: No resource identifier found for attribute 'authorities' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:9: error: No resource identifier found for attribute 'syncable' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:9: error: No resource identifier found for attribute 'multiprocess' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:12: error: No resource identifier found for attribute 'name' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:12: error: No resource identifier found for attribute 'label' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:12: error: No resource identifier found for attribute 'stateNotNeeded' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:12: error: No resource identifier found for attribute 'excludeFromRecents' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:18: error: No resource identifier found for attribute 'name' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:19: error: No resource identifier found for attribute 'name' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:22: error: No resource identifier found for attribute 'name' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:22: error: No resource identifier found for attribute 'resource' in package 'android'
packages/providers/ApplicationsProvider/AndroidManifest.xml:22: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/searchable').
make: *** [out/target/common/obj/APPS/ApplicationsProvider_intermediates/src/R.stamp] Error 1
 
Do you guys use a dual booting windows and ubuntu (wubi) or use a vmware variant thing? Lol I hope I was clear saying this :)

I'm using VMPlayer in Win7 x64, and have heard from others who do the same it works. I don't like dual-booting either. So it's either this or no tinkering with the source code or building at all.
 
Back
Top Bottom