Guest nio25 Posted June 14, 2012 Report Posted June 14, 2012 (edited) Hi, I tried to compile my ICS, and I followed the first post's instructions. Everything went fine, but in the 5.point, when I paste make bacon -j8 I get an error: https://www.dropbox....7b9l1/error.png What did I wrong? Possibly low memory...use (more) swap and/or less threads (-j4 for example) Edited June 14, 2012 by nio25
Guest t181 Posted June 14, 2012 Report Posted June 14, 2012 Possibly low memory...use (more) swap and/or less threads (-j4 for example) This error is shorter, but still doesn't work... https://www.dropbox.com/s/4pvydig81s1kki1/error2.png
Guest nio25 Posted June 14, 2012 Report Posted June 14, 2012 (edited) Hmm im not sure...can you give us the sepcs of your vm? (cpu/cores-ram-swap) I was building in a vm with 4 cores and 2gb ram (and no swap) and i was getting the same error. Edited June 14, 2012 by nio25
Guest t181 Posted June 14, 2012 Report Posted June 14, 2012 (edited) Hmm im not sur...can you give us the sepcs of your vm? (cpu/cores-ram-swap) I am using VMware Player, installed ubuntu 12.04 I have got a A6-3400m CPU, I gave 3cores for the virtual machine. I have 4GB DDR3 RAM, and I gave 1GB.(usage is about 4-50%) I do not have swap, because when I expanded the ext4 partition, my swap dissapeared. Edit: And how did you solve it? Edited June 14, 2012 by t181
Guest targetbsp Posted June 14, 2012 Report Posted June 14, 2012 The VM needs more ram than 1gb to compile ICS. Even GB needs about 1.7 with a single thread or it aborts. I'm not actually sure how much ICS needs. It seems to need about 4 with the -j8 switch in post 1 which i have given it (2gb ram and 2gb of swap) but it needs less without the switch.
Guest nio25 Posted June 14, 2012 Report Posted June 14, 2012 Edit: And how did you solve it? I added 2gb swap.
Guest t181 Posted June 14, 2012 Report Posted June 14, 2012 The VM needs more ram than 1gb to compile ICS. Even GB needs about 1.7 with a single thread or it aborts. I'm not actually sure how much ICS needs. It seems to need about 4 with the -j8 switch in post 1 which i have given it (2gb ram and 2gb of swap) but it needs less without the switch. But...I tried to give for Ubuntu swap, after i installed it, but the system couldn't see it.
Guest nio25 Posted June 14, 2012 Report Posted June 14, 2012 (edited) But...I tried to give for Ubuntu swap, after i installed it, but the system couldn't see it. I followed this guide: https://help.ubuntu....mmunity/SwapFaq Look at "Four-step Process to Add Swap File" (It takes ~2hours to build in my vm!) Edited June 14, 2012 by nio25
Guest targetbsp Posted June 14, 2012 Report Posted June 14, 2012 But...I tried to give for Ubuntu swap, after i installed it, but the system couldn't see it. During Ubuntus install, it appears to give it the same amount of swap as you gave the VM ram during the install. Bit late now but that's the easiest way to handle it if you ever have to set it up again the future.
Guest t181 Posted June 14, 2012 Report Posted June 14, 2012 (edited) During Ubuntus install, it appears to give it the same amount of swap as you gave the VM ram during the install. Bit late now but that's the easiest way to handle it if you ever have to set it up again the future. Yes, I know, but I thought I wont need it... I gave 2.3GB RAM, and I think it works. There are lot of lines which starts with: target thumb c++, target thumb c, host c++, etc... ohhh, my cpu... :D But, Thanks guys for help! ;) EDIT: ohhh, no...I think my RAM will give out... Windows says, I have 53MB left... If compiling stops, what should I delete, to restart compiling? Edited June 14, 2012 by t181
Guest sej7278 Posted June 14, 2012 Report Posted June 14, 2012 If compiling stops, what should I delete, to restart compiling? windows :) seriously a vm sucks for this kind of thing, i tried compiling xbmc in a vm on a 3ghz quad core (4gb/2 cores allocated) and it was actually slower than doing it on a 1.6ghz 2gb atom! laptops suck too, slow drives and slow ram i guess.
Guest asm19 Posted June 14, 2012 Report Posted June 14, 2012 windows seriously a vm sucks for this kind of thing, i tried compiling xbmc in a vm on a 3ghz quad core (4gb/2 cores allocated) and it was actually slower than doing it on a 1.6ghz 2gb atom! laptops suck too, slow drives and slow ram i guess. True, nothing better than a clean install on a desktop.
Guest targetbsp Posted June 14, 2012 Report Posted June 14, 2012 (edited) EDIT: ohhh, no...I think my RAM will give out... Windows says, I have 53MB left... If compiling stops, what should I delete, to restart compiling? You can just give it more memory and just start compiling again and it will be fine. :) I ended up increasing my ram to 6gb for compiling roms. Mostly cause I have DDR2 and ram is really expensive. DDR3 is dirt cheap so you probably may as well go to 8 if you get into doing this regularly. :) Edited June 14, 2012 by targetbsp
Guest targetbsp Posted June 14, 2012 Report Posted June 14, 2012 windows seriously a vm sucks for this kind of thing, i tried compiling xbmc in a vm on a 3ghz quad core (4gb/2 cores allocated) and it was actually slower than doing it on a 1.6ghz 2gb atom! laptops suck too, slow drives and slow ram i guess. Whilst it may take longer, I can play Tropico 4 whilst it's doing it. :D
Guest nio25 Posted June 14, 2012 Report Posted June 14, 2012 im using vm on the cloud and i have my pc free :D (still better than vm on my pc - core2duo 2.6ghz/6gb ram)
Guest jventura Posted June 15, 2012 Report Posted June 15, 2012 By the way, for those using VM's to compile ICS, I recommend Xubuntu instead of Ubuntu, mainly because the memory footprint is lower (at least it was in previous versions of Ubuntu, now with Unity desktop I think they've lowered it). I've got Xubuntu as my OS and it is the same as Ubuntu with a saner graphical layout, for those who were used to "old" gnome 2..
Guest Penmax Posted June 15, 2012 Report Posted June 15, 2012 (edited) Guys, I don't know if it is a recurrent bug, or if it has appeared lately, but I think there is something with the Mms.apk app which prevent the phone from deep sleeping. I'll explain.. Here in Portugal, there is this mobile operator called Optimus (Orange brand) which sends everyday a message, which I think is an mms, publicizing some Apps from its website (93AppsClix). I use to receive that mms everyday without problems (sometimes I still use Android 2.3), but lately, with CM9 (build 09/Jun), I don't receive that mms instantly. What happens is that in the middle of the afternoon, if I press a key from the keypad, my phone wakes, so it is not sleeping. Then, I do a restart, and immediately after the reboot, even before I enter my PIN, I receive the "93AppsClix" mms, usually 1,5h/2h later than the original sent date/time. So, to me, there is something happening with the Mms app which, instead of presenting the mms to the user instantly, kinda of blocks the phone, thus preventing it from deep sleeping.. Has anyone noticed something like this? I can't test sending mms to myself because the Mms app isn't sending mms, and I rarely (never) send mms to anyone, so don't know the default behavior.. I would like to track this bug down, since it causes massive battery drain, and I have my girlfriend and my sister already using CM9. They don't understand nothing of this "technicities", lol.. Thanks Edit: Oh, I use "Use Only 2G", but don't know if it has something to do with it.. If i remember correctly on early ICS builds there were som errors with internet connection if you switched to 2g from 3g you had to restart the phone. Had some calls break also when it sitched from 3g to 2g with earlier versions. Edited June 15, 2012 by Penmax
Guest t181 Posted June 15, 2012 Report Posted June 15, 2012 Ok, I install Ubuntu next to my Win7-64bit, to a 100GB partition. I have got a little problem... I don't know how I installed jdk,jre,etc, because for me, it was complicated,... :S
Guest targetbsp Posted June 15, 2012 Report Posted June 15, 2012 Installing the JDK is slightly more challenging than the rest. it's not so much hard to do as it is to actually find! This guide has it covered under 'installing the jdk': http://source.android.com/source/initializing.html
Guest t181 Posted June 15, 2012 Report Posted June 15, 2012 Installing the JDK is slightly more challenging than the rest. it's not so much hard to do as it is to actually find! This guide has it covered under 'installing the jdk': http://source.androi...itializing.html I found a page, and it says it will install jdk and jre too.. http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
Guest targetbsp Posted June 15, 2012 Report Posted June 15, 2012 (edited) I found a page, and it says it will install jdk and jre too.. http://www.webupd8.o...ubuntu-via.html Last I heard you couldn't use java 7 but it was long ago so things may have changed. Edited June 15, 2012 by targetbsp
Guest t181 Posted June 15, 2012 Report Posted June 15, 2012 Last I heard you couldn't use java 7 but it was long ago so things may have changed. I think its working, because i used it last time too on vm, and worked.. Stupid question: How can I use patches like this http://review.cyanogenmod.com/#/c/16984/ or this https://github.com/KonstaT/android_device_zte_blade/tree/KonstaKANG/patches/packages_apps_Settings ?
Guest t181 Posted June 15, 2012 Report Posted June 15, 2012 Ok, finally, I gave up. I cannot install that f*****g jdk-6... When I type "repo init -u git://github.com/CyanogenMod/android.git -b ics" it says "repo: command not found". I read it is because I have to install jdk-6. I tried it, but always give this...
Guest targetbsp Posted June 15, 2012 Report Posted June 15, 2012 (edited) That's nothing to do with jdk. :) It'll be because repo isn't in your path. This is one of the bits where the guides let Windows users down as it appears to be assumed knowledge amongst Linux users. Follow the last post in this thread: http://www.linuxforu...-not-there.html Edited June 15, 2012 by targetbsp
Guest t181 Posted June 15, 2012 Report Posted June 15, 2012 (edited) That's nothing to do with jdk. It'll be because repo isn't in your path. This is one of the bits where the guides let Windows users down as it appears to be assumed knowledge amongst Linux users. Follow the last post in this thread: http://www.linuxforu...-not-there.html Thanks I tried it... No succes ftibi93@ftibi93-HP-Pavilion-g6-Notebook-PC:~$ cd ~/cm9 ftibi93@ftibi93-HP-Pavilion-g6-Notebook-PC:~/cm9$ repo init -u git://github.com/CyanogenMod/android.git -b ics /home/ftibi93/bin/repo: sor: 1: html: Nincs ilyen fájl vagy könyvtár <-- line 1: no such file or directory, or something similar /home/ftibi93/bin/repo: sor: 2: szintaktikai hiba „<” váratlan token közelében <-- syntactics error /home/ftibi93/bin/repo: sor: 2: `<head><title>301 Moved Permanently</title></hea'> After "<--" sign is my translate. :) Edited June 15, 2012 by t181
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now