yashsingh1/xdaforums huggingface dataset:
[Nook Color Android Development] Tyfighter:
That recent apps button is enough of a carrot in front of my face to try building. I know that this isnt a learn-to-build thread, but i just have one question: I notice that all of you guys are using various flavors of linux. Currently i only have a mac in the house, am i SOL or can i google my way out of this? Short of fandangling linux onto my my mac though.
[Nook Color Android Development] cchant:
It's possible to build on a Mac terminal but I think some of the commands are different. Check out the Cyanogenmod wiki. It's linked in fatties how to doc
[Nook Color Android Development] johnny15:
You're not SOL. You can build on a Mac....I believe it's how fattire works (check out his post in this thread a while back).... post link

He may have some documentation out there...just not sure where it might be. Good luck.
[Nook Color Android Development] Nburnes:
Will have to change necessary ICS things obviously. http://wiki.cyanogenmod.com/wiki/Barnes_&_Noble_Nook_Color:_Compile_CyanogenMod_(OS_X)
[Nook Color Android Development] jschill31:
Hello,

Anyone out there run into this error before:

external/openvpn/lzo.h: At top level:

external/openvpn/lzo.h:97: error: expected specifier-qualifier-list before 'lzo_voidp'

external/openvpn/lzo.h: In function 'lzo_defined':

external/openvpn/lzo.h:131: error: 'const struct lzo_compress_workspace' has no member named 'defined'

external/openvpn/error.c: In function 'assert_failed':

external/openvpn/error.c:404: warning: comparison of unsigned expression >= 0 is always true

external/openvpn/error.c: In function 'redirect_stdout_stderr':

external/openvpn/error.c:543: warning: comparison of unsigned expression >= 0 is always true

external/openvpn/error.c:548: warning: comparison of unsigned expression >= 0 is always true

external/openvpn/error.c:550: warning: comparison of unsigned expression >= 0 is always true

external/openvpn/error.c: In function 'x_check_status':

external/openvpn/error.c:598: warning: unused parameter 'tt'

make: *** [out/target/product/encore/obj/EXECUTABLES/openvpn_intermediates/error.o] Error 1

jim@jim-desktop:~/android/system$

Any ideas would be greatly appreciated.

Cheers
[Nook Color Android Development] cchant:
rm -rf external/openvpn

then build again
[Nook Color Android Development] Nburnes:
This. Even says it in the build instructions mate.
[Nook Color Android Development] jschill31:
Thank you both, sorry I missed that.
[Nook Color Android Development] cchant:
what did you do to reset the permissions? I'm having the same problem. It connects to wifi but doesn't transmit data
[Nook Color Android Development] nukedukem:
If you are running snow leopard it should be easy to set up. Just follow the tutorial on the AOSP website on initializing a build environment. And then go to the cyanogenmod wikis to set up the repo.

However, if you are running lion, things are a little more complicated. I successfully set up my hackintosh to build on lion but I had to jump through several hoops to get things working. For one, XCode v3 is needed and lion only allows installation of v4+. You can still trick lion into installing Xcode v3 using the command line though. In the end, I couldn't get the u-boot tools to compile in lion and there are no binaries available for mac osx. I couldn't run mkimage to create a ramdisk image so I gave up and created a linux partition on my machine.

---------- Post added at 10:23 PM ---------- Previous post was at 10:17 PM ----------

I put the nook in recovery and then used the shell to add execute permissions to both /system/xbin and /system/bin.

Roughly something like this:

Reboot recovery

Mount /system in clockworkmod

adb shell

chmod -R a+x /system/xbin

chmod -R a+x /system/bin

I think there is a typo in fattire's tut where he has the command to change permissions in /system/xbin twice, so if you copy and paste the commands strait from the doc you will only change permissions of the xbin directory and not the bin directory.
[Nook Color Android Development] cchant:
Thanks.. I tried that but it didn't work..
[Nook Color Android Development] fattire:
Yes, that's a typo, and I just fixed it.

Also, mac users-- snow leopard users should be able to build by sort of following the mac instructions and then improvising based on my instructions (which are based on the linux instructions). Somewhere, somehow, the truth is out there. And by the way, if you document your path to success, let me know and I'll either link or include it...

Lion-- I don't know exactly as I haven't installed it. But again, this is your chance to be a hero. Figure it out, write up a tutorial, and share!

I bet you can get an OS X version of mkimage to compile-- I'm sure even in Lion. You may need to make a patch or two to the code...
[Nook Color Android Development] fattire:
Also for those having wifi issues, I'm curious-- does setting a static IP work?

Bluetooth not working?

$ cd device/bn/encore/uim-sysfs
$ mm -B

then copy the resulting $OUT/system/bin/uim-sysfs file to your /system/bin either with

adb sync system

or

adb push $OUT/system/bin/uim-sysfs /system/bin/

If adb push isn't working for some reason, you can also boot into cwm and move the file from there.

make sure the file is set to have execute permissions if it doesn't already:

adb shell chmod a+x /system/bin/uim-sysfs
[Nook Color Android Development] Nburnes:
Setting a static IP......"works"......as in says it is connected, but then Google login never happens and nothing appears in the browser.
[Nook Color Android Development] Tyfighter:
Just another reason to regret updating to lion... I guess i'll try burning an ubuntu thumbdrive then.

Thanks for the help everyone.
[Nook Color Android Development] axi0m:
Is anyone willing to post builds?

I've been on XDA for many years. I don't comment much, but I felt I had to break my usual silence to say this:

First off, much respect and many thanks to dalingrin, fattire, and the whole CM team for everything you guys do. This is your code and your thread, and you are free to run it as you please.

That said, people are going to ask stupid RTFM questions no matter what. They are either going to be about building, or they are going to be about an alpha ROM they never should have flashed. And they can already do that with the update-cm-9.0-0-encore-emmc-sneakpeek1-fullofbugs.zip.

Requiring people to try using the command line is *not* a high enough barrier to entry for n00bs. This thread is going to be littered with answered questions no matter what. The signal to noise ratio of XDA has been going down for years, and requiring people to build their own ROM is not helping.

So I'm asking this: Could we set up a tip jar for nightly builds?
[Nook Color Android Development] Jasper_Ward:
+1 I'd be happy with a weekly myself... I don't own a PC and couldn't afford one if I tried, currently have a nook that I bought bricked and fixed, a google tv that serves as a replacement to the 3 computers that got fried last year in a power surge and 2 $.01 xperia plays for me and the ol lady... can't seem to get any of these to do builds and would love to try out some of the new updates people are waving around
[Nook Color Android Development] newellj79:
hmmm, this is a development thread. I think building falls under that. I don't have the xda rules memorized, but the knowledge I've gained in this thread alone is amazing. I'm very grateful for those who are willing to help someone who wants to learn, like myself.
[Nook Color Android Development] inportb:
Hm, works for me. I'm browsing the interwebs on the static IP (which is set to the value that the router usually assigns to the thing). However, the signal meter is gray instead of blue.
[Nook Color Android Development] cchant:
When I follow your directions, after I enter mm -B I get the following

Clean step: rm -rf out/target/product/generic/system/etc/updatecmds/migrate_nfc.txt
make: Entering directory `/home/cchant/android/system'
make: *** No rule to make target `out/target/product/generic/obj/lib/crtbegin_dynamic.o', needed by `out/target/product/generic/obj/EXECUTABLES/uim-sysfs_intermediates/LINKED/uim-sysfs'. Stop.
make: Leaving directory `/home/cchant/android/system'
[Nook Color Android Development] dillydawes:
my wireless is now working because i turned off security on my guest network and now the nook will connect
[Nook Color Android Development] cchant:
Didn't work for me
[Nook Color Android Development] fattire:
By the way, mm -B means to "make module" (ie, the module in the Android.mk of the directory that you're in) and the -B means to force it to re-build.

One thing you generally want to do before "mm" is to make sure that you've run the build/envsetup.sh script and that lunch is set up for the project you want to build (as per the build walkthrough).. just wantto make sure you did that first...?
[Nook Color Android Development] cchant:
Thanks for the information once again fattire... I did have build/envsetup.sh going but not lunch.. I'll try that in a minute and report back
[Nook Color Android Development] fattire:
quick heads-up for those who don't read other threads but like cutting edge neat stuff.

there's a cool recovery for nook now called "twrp 2" by teamwin that I think may be worth checking out.

You can set it up to replace clockworkmod (/boot/uRecRam) or as an alternative boot (/boot/uAltRam). Hold down up and down arrow keys together when booting for the "alternate boot".

thread here.
[Nook Color Android Development] Nburnes:
Woo compiled another build 20 min ago and wifi works just fine now strangely. GAPPS installed and are all working fine as well, able to log in and download apps. Also typed this whole post out on it ;D

These are the gapps I used as they are for 4.0.3 http://bit.ly/gapps403_v2
[Nook Color Android Development] jschill31:
Hello,

Just built and my tablet is flying... No wifi issues connecting for me. Just the DSP issue since I forgot to pull it but that will be a simple fix. Looking forward to many future syncs and future builds.

Cheers
[Nook Color Android Development] fattire:
Hey congratulations!

So here are some quick updates for tonight...

* I think trebuchet (the cm-modified launcher) is now safe to build. At least I did without any new errors. So go ahead and remove the stuff in the local_manifest.xml that removed it and replaced it with AOSP. I've got it fixed here.

* trebuchet defaults to NOT auto-rotating the screen. This is a silly default, IMO, but it's fixable in the preferences, which is found in the menu. What's that? No way to access the menu? Well, you can, thanks to adb. Try this:

$ adb shell input keyevent 82

That's the equivalent of hitting our non-existent "Menu" key. Now select Preferences and then General. Then you can set "Auto-Rotate Screen". Done and done.

This is supposed to be fixed in the future. But for now, it works.

* I've also pushed a small change that will hopefully now build "mkimage" for you automatically. So you won't need to grab it from ubuntu's repo or build it yourself. Similarly, uim-sysfs (the user-daemon for bluetooth) should now be built automatically- so you don't have to manually do it.
[Nook Color Android Development] Tyfighter:
Using a combination of

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

http://groups.google.com/group/android-building/browse_thread/thread/bd566c8b513a4946?pli=1

and the tutorial in the first post I was able to get everything working in Lion, more or less, I think. Stuck in a bootloop now though, so I think I'm just going to restore my CM7 (or CM9full-o-bugs) and wait this one out. I just don't have the time to troubleshoot so much and to be honest, most of this is still chinese to me, but I figured I'd post the info in case someone else was more intrepid than I.

Good luck to fattire, dalingrin et al, my respect for you guys just increased tenfold and it was already pretty high.
[Nook Color Android Development] jschill31:
I was just trying to figure that out now...thanks for cutting down my investigative work. Also, I seem to be having superuser issues? I am going to pull it and try replacing with a different one.

Cheers
[Nook Color Android Development] Nburnes:
Had that issue as well, simple fix for me was downloading "Superuser Updater" in the market then running it. It will force close then you will have old superuser back. Then update Superuser in the market and all will be good.
[Nook Color Android Development] eyeballer:
You can also fix su by getting the latest binary from http://androidsu.com/superuser/ and either replace it manually, or just flash it in recovery after you update /system.
[Nook Color Android Development] xdp:
I think what he's saying is that not wanting to hear silly questions about things that don't work or when will they work is not a good reason to withhold builds, as you will get silly questions about this or that no matter what. In addition, there are those of us who would love to see what's new but just can't build for one reason or another (time or resources), as I and Jasper_Ward stated earlier.
[Nook Color Android Development] Modded Darts:
Build

Can someone please post a zip of the new build I cant compile from source because I have no computer. And thanks dalgrin and fattire for all your getting this together for and any developer i am forgetting.
[Nook Color Android Development] AidenM:
I am compiling a 4.0.3 build right now, if I can get everything to work that the dalingrin + fattire did I will post the zip.

Edit: NOT
[Nook Color Android Development] xdp:
Very appreciated sir!
[Nook Color Android Development] cchant:
I'd get permission from them first. Last thing we need is to piss them off and close their repo's so no one can compile
[Nook Color Android Development] AidenM:
Sure.

Dont count on anything tho, this is my first ICS compile (but have done Froyo and GB in the past)

Also, to anyone who does dl this build i possibly will post, pm me if you have questions or anything, dont mess up this thread. This is for dalingrins + fattires stuff, not mine. And no "oh my gosh my ____ isnt working!" in the thread either.

I just PMed them, if they say no sorry guys I wont post it. Their hardwork is way better than a build.
[Nook Color Android Development] fattire:
I've been asking people during this rapid-development phase not to post zips in order to encourage others to learn to build themselves... so far it's been super successful with lots and lots of people who I think otherwise wouldn't have even tried have been able to do it.

There has been some good discussion about this request-- obviously some people who aren't able to build (even for time or technical reasons) don't like it, but it's not something that will be a long-term request or anything. Just a little extra-incentive to push a few people over the edge to learn. I really think it makes a difference when people discover for themselves that they CAN build an OS from scratch-- even if by following directions they familiarize themselves with the process.

Very soon I'll have a build with sound to show. But until then, I'd appreciate if you'd hold off.

Thanks!
[Nook Color Android Development] AidenM:
No problem fattire, guys im not posting this anymore. Fattire is a way better than dev then I am. Hopefully his next build will be out soon. Very soon.
[Nook Color Android Development] Stale_bread:
yay sound! i can't wait!

thank you for all your hard work.
[Nook Color Android Development] goz5000:
+1 for sound
[Nook Color Android Development] xdp:
Sounds great, thanks for sharing, fattire, and thanks for all your work. Looking forward to it!
[Nook Color Android Development] bled82:
Quick question I'm working remote from the pc I'm trying to setup to build on and well my nook is with my and I can't connect it to the build machine to complete the below portion of the setup instructions is there a work around ?

Next, install the proprietary files per the original instructions and run the ./setup-makefiles.sh script in android/system/device/bn/encore. (if that doesn’t work for some reason, try typing add_lunch_combo cm_encore-userdebug manually.)

Copy proprietary files

NOTE: This only needs done the first time you build. If you have already done these steps, you may skip to Download RomManager.

You will need to have a Encore with a working copy of CyanogenMod install and ADB working on the computer. This script will copy the proprietary files from the device.

Connect the device to the computer and ensure that ADB is working properly.

cd ~/android/system/device/bn/encore/

./extract-files.sh
[Nook Color Android Development] cchant:
Not unless you can find those proprietary files somewhere else. Not sure where though
[Nook Color Android Development] bled82:
I have the nook with me and i could manual transfer if i had the correct paths and info ?

Edit: I looked at the script the setup-makefiles.sh but could not find anything that I could decipher .
[Nook Color Android Development] EverythingNook:
Has anyone gotten Deep sleep to work?
[Nook Color Android Development] nukedukem:
If you enable airplane mode it will deep sleep. This might also work if you set "keep wifi on during sleep" to never under advanced settings (haven't tested it).
[Nook Color Android Development] inportb:
You could extract those files using the nearest computer, and send them over to your build server. I made myself a little archive of proprietary files so I could easily unpack them into my project when necessary, without hooking up the device.
[Nook Color Android Development] 911jason:
I haven't had a problem with Deep Sleep, and I don't think I had Airplane Mode on at the time, but not 100% sure of that.

Also was unable to connect to my router (D-Link DIR-655) but when I switched the wireless mode of my router to 802.11g only as suggested earlier in this thread, it connects just fine.
[Nook Color Android Development] J-ROCK:
im kinda of a noob when it comes to making my own build so im trying to learn like everyone else, I keep getting this error Get git://github.com/CyanogenMod/android.git

github.com[0: 207.97.227.239]: errno=Connection refused

fatal: unable to connect a socket (Connection refused)

github.com[0: 207.97.227.239]: errno=Connection refused

fatal: unable to connect a socket (Connection refused)

fatal: cannot obtain manifest git://github.com/CyanogenMod/android.git

make: *** [init] Error 1
[Nook Color Android Development] Taosaur:
Any ideas why I would get "signature verification failed" from the preview file linked in the the second post? The md5sum checked out.

Full disclosure, I was trying to install it to the primary partition of an eMMC dual boot, after moving stock 1.4.1 to the secondary. At least one other person has reported success doing so.

Also, I used a CWM 3.2.0.1 bootable SD.
[Nook Color Android Development] inportb:
The package is probably unsigned. You can disable signature verification in CWR, if you're sure you're installing the right stuff.

Similarly...

... unexpected load, or are they actively blocking us? :p
[Nook Color Android Development] cchant:
Maybe fattire is pushing the newest build?
[Nook Color Android Development] Taosaur:
I knew it was something I already knew :o

I actually got around it by installing CM7 and flashing CWM internally. I'm guessing the SD version defaults to require signatures, and the install from ROM Manager doesn't.
[Nook Color Android Development] fattire:
Actually, today's fix will hopefully correct the screwy animation when it's rotated. Please test and let me know.

Credit really goes to deeper-blue for figuring this out for honeycomb back in the day. I just applied his fix to the newer kernel. Thanks also to nemith for reminding me that he'd had this issue and pointing to his commit. And thanks to keyodi for looking it at with me yesterday.

Basically the issue was that ics doesn't seem to handle rotation animation when the 270 degree rotation setting is turned on in /system/build.prop. So the solution was to remove that requirement by rotating the image in the kernel, and then rotate the touchscreen driver as well so that it all is the way it "should be". And then it seems to work.

Note-- it also fixes the "mini-screenshots" when you press the "running apps" button. They look perfect!
[Nook Color Android Development] racks11479:
I've built from source before with no issues. But for some reason i'm getting the error below when I'm trying to run "repo sync"

Any ideas?

Thanks,

Racks

Edit: Nevamind, fixed! Thanks anywhos! :)
[Nook Color Android Development] Bentenrai:
How did I miss this? Last time I was in the nook dev section this wasn't happening!

I gotta get to work!!
[Nook Color Android Development] nukedukem:
Screen rotation and recent apps orientation are working great!
[Nook Color Android Development] fattire:
And try taking a screenshot :) That's volume-down + power simultaneously.
[Nook Color Android Development] cchant:
Outside of the launcher not rotating, it does look great. I can see recent apps in the correct orientation and inside apps it rotates just fine.
[Nook Color Android Development] ieAnd:
I love how much progress this is making. Thank you so much fattire/Dalingrin.

I've been away from the thread for a bit (playing with my new Galaxy Nexus, yay) and I'm away from my build compy right now so I can't test it myself, so I'll just ask: how's sound coming along?
[Nook Color Android Development] fattire:
See above about the launcher not rotating-- this is default behavior in trebuchet until you change the default in preferences... (above has instructions)
[Nook Color Android Development] EverythingNook:
Wait, did you upload a new build with the recent apps, screen rotate, and screenshot added or do we have to make our own build and add those ourselves?

Keep up the great work!
[Nook Color Android Development] nukedukem:
:cool: This is already 100x more functional than I ever imagined the nook to be capable of. I think the only things that I miss are sound and the occasional black screen in certain apps. That is an incredible achievement. Bravo Fattire, Keyodi, Dalingrin, cm team, et al. This is superb.
[Nook Color Android Development] Modded Darts:
Wow, I will take everyones word for what has been fixed, and thank you fat tire, dalgrin, and everyone else who developed on the nook color like deeper blue. Has anyone made a breakthough on sound though?

Update: Deeperblue got sound working on the honeycomb sdk port the return or what ever the threads name is i think that might help.
[Nook Color Android Development] newellj79:
I'm having reallly harsh sod. To the point where it's almost making it unusable. I love it, and am checking for repo updates now. Does anybody have a temp fix to the sod?
[Nook Color Android Development] speedfreak007:
I have a question: in the 7.2 kang rom, a modular kernel is used (lless used features are in a kernel module) to increase free ram. Will this be helpfull in this ics rom?
[Nook Color Android Development] rhester72:
Dumb question - is it possible to have both Trebuchet _and_ the default ICS launcher available and allow the user to switch between them - or perhaps "ship" with the ICS launcher and make Trebuchet available via Market or APK?

Rodney
[Nook Color Android Development] Nburnes:
Yup, got it with this.

find ./ -exec grep -l "LOCAL_MODULE_TAGS := user" {} \; -exec sed -i.bak s/"LOCAL_MODULE_TAGS := user"/"LOCAL_MODULE_TAGS := optional"/g {} \;

Building now as I post this.

P.S @fattire: Thank you for that git video with Linus, made it so much easier to understand o.O
[Nook Color Android Development] newellj79:
Could u please post a link for you for your build. I build cm7 all the time but piecing this together is over my head. Thanks!
[Nook Color Android Development] sednafx:
+1

Thanks Nburnes
[Nook Color Android Development] dreamhunterr:
Does this commit help in any way? Link.