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

Root Build CyanogenMod7 from source | Development area

there is deff something going on with git. I gave up syncing cm7 I think it has something to do with isaacs repo. I just kept getting errors having to do with the "egl".
 
there is deff something going on with git. I gave up syncing cm7 I think it has something to do with isaacs repo. I just kept getting errors having to do with the "egl".

once I put the /bin folder in $PATH my repo ran without issue. mind you, that is after a fresh install on ubuntu 11.04 on my new harddrive. I haven't tried it on my desktop yet.
 
Tried another build and the same fail pops up....
Code:
target Java: Bluetooth (out/target/common/obj/APPS/Bluetooth_intermediates/classes)
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:174: warning: unmappable character for encoding ascii
         * /* Up and empty string �� cd .. Up and name - cd ../name Down and name
                                  ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:174: warning: unmappable character for encoding ascii
         * /* Up and empty string �� cd .. Up and name - cd ../name Down and name
                                   ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:175: warning: unmappable character for encoding ascii
         * - cd name Down and empty string �� cd to root
                                           ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasAppIf.java:175: warning: unmappable character for encoding ascii
         * - cd name Down and empty string �� cd to root
                                            ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasObexServer.java:1038: cannot find symbol
symbol  : method noEndofBody()
location: interface javax.obex.Operation
            op.noEndofBody();
              ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
4 warnings
make: *** [out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar] Error 41
mike@mike-Ghost:~/android/system$
Even if I remove the extra spaces, and try to fart around with the other code, it still hates that file for some reason. I am starting to want to give up on the whole thing... Really sucks.
 
Yeah getting that first build is hard. I just followed directions in this OP, did a fresh repo init of CM7 a few days ago, (changed up git to https for the prebuilt repo problem). Then did 'git pull' of Isaac's repos that haven't been updated directly from CM. & built CM7.
 
Yeah getting that first build is hard. I just followed directions in this OP, did a fresh repo init of CM7 a few days ago, (changed up git to https for the prebuilt repo problem). Then did 'git pull' of Isaac's repos that haven't been updated directly from CM. & built CM7.

It's actually my 4th or so, I didn't have any issues before, but since they have made changes to the git (why mess with what works) I haven't gotten one to fire out.
 
It's actually my 4th or so, I didn't have any issues before, but since they have made changes to the git (why mess with what works) I haven't gotten one to fire out.

The git change was to workaround a problem with github.com. It may be resolved by now so original git:// protocols should work (again in the near future). Maybe give it some time and try again in a few days.
 
The git change was to workaround a problem with github.com. It may be resolved by now so original git:// protocols should work (again in the near future). Maybe give it some time and try again in a few days.

I never changed the git files to https:// and it downloaded fine. I think the problem has something to do with the recent changes to the Bluetooth files. I did a search and found some information via google. Apparently I'm not the only one with this issue. Too, it may be something in 11.04 ubuntu missing what is needed to build properly. I will play with it on my desktop tonight. It worked 3 or 4 times in a row on my desktop until I got a crazy thought and wiped it all out to try ICS (duh, not a good idea).

I'd love to be able to build on my laptop, but I'm not totally sure it will work just yet. I will pull the same git (using this tutorial) files to my desktop and see what's what.

I saw you posted that the gps stuff from XDA isn't working in our current CM7. Is there some issue with the ROM, or is it the files themselves?

**edit** I can undoubtedly confirm that the code for the Bluetooth app is screwed. I built it on my desktop (several successful builds previously) and the same exact error pops up.
 
I've tried building off the repo in the OP, a few others, and just now mantera's github. Is there a complete CM7 source tree that is up to date (Whyzor's maybe?) that we can build from? I have built CM9 successfully twice now, so I know my build environment, methods, and hardware aren't at issue. Anyone have an address for an up-to-date CM7 git?
 
I've tried building off the repo in the OP, a few others, and just now mantera's github. Is there a complete CM7 source tree that is up to date (Whyzor's maybe?) that we can build from? I have built CM9 successfully twice now, so I know my build environment, methods, and hardware aren't at issue. Anyone have an address for an up-to-date CM7 git?

repo init -u https://github.com/mantera/android.git -b gingerbread

It builds fine for me...

What's the error that you're getting?
 
Code:
external/icu4c/common/Android.mk:142: external/icu4c/common/../stubdata/root.mk: No such file or directory
external/icu4c/stubdata/Android.mk:74: external/icu4c/stubdata/root.mk: No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/hciattach'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/hciattach'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/bluetoothd'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/bluetoothd'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/mm-vdec-omx-test'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/mm-vdec-omx-test'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/mm-venc-omx-test720p'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/mm-venc-omx-test720p'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/mm-video-driver-test'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/mm-video-driver-test'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/mm-video-encdrv-test'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/mm-video-encdrv-test'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/lib/liba2dp.so'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/lib/liba2dp.so'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/lib/libOmxCore.so'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/lib/libOmxCore.so'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/rild'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/rild'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/lib/libril.so'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/lib/libril.so'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/lib/libreference-ril.so'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/lib/libreference-ril.so'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/triumph/system/usr/keylayout/qwerty.kl'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/triumph/system/usr/keylayout/AVRCP.kl'
No private recovery resources for TARGET_DEVICE triumph
make: *** No rule to make target `external/icu4c/stubdata/root.mk'.  Stop.

That's running off your repo, just sync'd. No clue, but it looks like the things you are working on for ICS. But that should'nt affect the GB build side? No stress, just trying my hand at things.
 
When I pulled the repo, I pulled Issacs first, then manteras. Its always built for me just fine. I'm actually running a build right now, should take an hour or so.
 
Code:
external/icu4c/common/Android.mk:142: external/icu4c/common/../stubdata/root.mk: No such file or directory
external/icu4c/stubdata/Android.mk:74: external/icu4c/stubdata/root.mk: No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/hciattach'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/hciattach'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/bluetoothd'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/bluetoothd'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/mm-vdec-omx-test'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/mm-vdec-omx-test'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/mm-venc-omx-test720p'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/mm-venc-omx-test720p'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/mm-video-driver-test'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/mm-video-driver-test'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/mm-video-encdrv-test'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/mm-video-encdrv-test'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/lib/liba2dp.so'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/lib/liba2dp.so'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/lib/libOmxCore.so'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/lib/libOmxCore.so'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/bin/rild'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/bin/rild'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/lib/libril.so'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/lib/libril.so'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/lib/libreference-ril.so'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/lib/libreference-ril.so'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/triumph/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/triumph/system/usr/keylayout/qwerty.kl'
build/core/Makefile:32: warning: overriding commands for target `out/target/product/triumph/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/triumph/system/usr/keylayout/AVRCP.kl'
No private recovery resources for TARGET_DEVICE triumph
make: *** No rule to make target `external/icu4c/stubdata/root.mk'.  Stop.

That's running off your repo, just sync'd. No clue, but it looks like the things you are working on for ICS. But that should'nt affect the GB build side? No stress, just trying my hand at things.

Try doing a repo sync and then rebuild again. There was a bad file in my manifest area that may have been causing the issue.
 
If that still doesn't work, I think I might need to manually fix a bunch of stuff in the manifest so it pulls stuff from the gingerbread branch instead. Let me know how it goes. I hate having something that I put up sit out there that doesn't work.
 
If that still doesn't work, I think I might need to manually fix a bunch of stuff in the manifest so it pulls stuff from the gingerbread branch instead. Let me know how it goes. I hate having something that I put up sit out there that doesn't work.

It died during the build, but as luck would have it, the wife shutdown the notebook before I could get a copy and paste. I honestly can't even remember where it failed either. I know it was a ton further into the build than the last errors I posted. I'll start another run I suppose, and maybe I can keep her claws off it this time....:D
 
It died during the build, but as luck would have it, the wife shutdown the notebook before I could get a copy and paste. I honestly can't even remember where it failed either. I know it was a ton further into the build than the last errors I posted. I'll start another run I suppose, and maybe I can keep her claws off it this time....:D

That's why women need to stay in the kitchen...



...kidding!! O:-)

Edit: Relax, people, it's a joke. If I'm ever married, I'll fully expect my wife to be as geeky as I am :D
 
If that still doesn't work, I think I might need to manually fix a bunch of stuff in the manifest so it pulls stuff from the gingerbread branch instead. Let me know how it goes. I hate having something that I put up sit out there that doesn't work.

Deleted directory, re-synced, and am building now. So far so good, I'll post a yay or nay. I do like the slimmer repo, very nice!
 
Code:
target Java: Provision (out/target/common/obj/APPS/Provision_intermediates/classes)
packages/apps/Phone/src/com/android/phone/InCallTouchUi.java:796: unqualified enumeration constant name required
            case Blade:
                 ^
packages/apps/Phone/src/com/android/phone/InCallTouchUi.java:797: cannot find symbol
symbol  : variable jog_ring_blade_ring_green
location: class com.android.internal.R.drawable
                resRingGreen = com.android.internal.R.drawable.jog_ring_blade_ring_green;
                                                              ^
packages/apps/Phone/src/com/android/phone/InCallTouchUi.java:798: cannot find symbol
symbol  : variable jog_ring_blade_ring_red
location: class com.android.internal.R.drawable
                resRingRed = com.android.internal.R.drawable.jog_ring_blade_ring_red;
                                                            ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
make: *** [out/target/common/obj/APPS/Phone_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....

Upstream CM7 blade ring kicked it out. So the errors that occurred before are seemingly resolved. Just an update on the build here, as I am watching the progress currently underway with CM9, and would definitely agree with most as that being priority. Can't wait to sync and build that one, it always builds for me. Damn, probably jinxed myself...:eek:
 
h.haulman, try to get Issac's repo first, then reset to mantera's repo. That is what I did initially to get the build to work. I have zero issues now, and can run a build at will.
 
Upstream CM7 blade ring kicked it out. So the errors that occurred before are seemingly resolved. Just an update on the build here, as I am watching the progress currently underway with CM9, and would definitely agree with most as that being priority. Can't wait to sync and build that one, it always builds for me. Damn, probably jinxed myself...:eek:

I pushed up the latest frameworks/base for cm7 so you should be good to just do a repo sync and then build.

Deleted directory, re-synced, and am building now. So far so good, I'll post a yay or nay. I do like the slimmer repo, very nice!

Yeah, I got tired of waiting for the long syncing of device files for devices I didn't have. :)
 
h.haulman, try to get Issac's repo first, then reset to mantera's repo. That is what I did initially to get the build to work. I have zero issues now, and can run a build at will.

Never been able to complete a build of cm7, however cm9 is like butter. Tried Isaac's repo, that mixed with other git pulls, etc. Amazing where one is effortless and the other is not. I don't sweat it, its all a challenge to me. Very enjoyable, need to get signed up for some classes.
 
Never been able to complete a build of cm7, however cm9 is like butter. Tried Isaac's repo, that mixed with other git pulls, etc. Amazing where one is effortless and the other is not. I don't sweat it, its all a challenge to me. Very enjoyable, need to get signed up for some classes.

Mine is the exact opposite. The CM7 builds beautifully, CM9 keeps giving me errors, for various things, missing files, etc. I think its my computer. I really need to build another JUST FOR building/dev work.
 
Mine is the exact opposite. The CM7 builds beautifully, CM9 keeps giving me errors, for various things, missing files, etc. I think its my computer. I really need to build another JUST FOR building/dev work.

Could be. But just for kicks, let me tell you about MY build system. It's an Acer Aspire One netbook. Single core CPU, stock RAM, 64GB SSD upgrade, running Linux Mint 12. Now, as embarrassing as that is, I put it out there just to say it is possible to build ICS on a very small, very slow computer. The other system in the house is an even older, and slower, Compaq laptop, but the 4yo daughter likes to use that one a lot more. Now with tax season, I am toying with the idea of an 8 core AMD FX AM3+ based system. Haven't built a desktop in some time, and for the price, they look very promising. I'm not sure I would even know how to behave with something like that though, not after being notebook/netbook bound for so long now.
 
Back
Top Bottom