Page 4 of 12 FirstFirst 1234567 ... LastLast
Results 76 to 100 of 298
Like Tree92Likes
  1. #76  
    ewinkley's Avatar

    Posts
    10 Posts
    Global Posts
    11 Global Posts

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by dmmarck View Post
    Check this link if you're having java issues. Have you tried installing it again?

    For whatever reason getting the JDK is the hardest part of this procedure. The open one should work, but right now the AOSP supplied method is...wonky.



    I'd suggest reinstalling it and seeing if that helps. You synced with source right, that went by smoothly?

    I'll look up your specific issue a bit later, but unfortunately I don't have personal experience with that problem .

    EDIT: check this link as well for troubleshooting/getting around Java 6/JDK issues!



    Sent from my Galaxy Nexus using Xparent Cyan Tapatalk 2
    This, from the second link you listed, resolved my make problems:
    To work around it, you can just comment out the following lines in build/core/main.mk:

    # ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
    # java_version :=
    # endif


    Thank you!
    dmmarck likes this.
  2. #77  
    bjrosen's Avatar

    Posts
    148 Posts
    Global Posts
    155 Global Posts

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Thanks for the clearly written guide. I was able to do the build on Scientific Linux 6.2. I removed Icetea and installed the Java RPM from Oracle and I was good to go.

    I have a question, how do I configure the Android kernel?. For standard Linux kernels you use make gconfig or make xconfig which bring up configuration GUIs for the kernel, that doesn't seem to work with the Android kernel, I also couldn't find the .config file that's used by a standard Linux kernel build. What's the Android equivalent?
  3. Thread Author  Thread Author    #78  
    dmmarck's Avatar
    Retired Moderator

    Posts
    10,930 Posts
    ROM
    What do you think?

    Default

    Quote Originally Posted by bjrosen View Post
    Thanks for the clearly written guide. I was able to do the build on Scientific Linux 6.2. I removed Icetea and installed the Java RPM from Oracle and I was good to go.

    I have a question, how do I configure the Android kernel?. For standard Linux kernels you use make gconfig or make xconfig which bring up configuration GUIs for the kernel, that doesn't seem to work with the Android kernel, I also couldn't find the .config file that's used by a standard Linux kernel build. What's the Android equivalent?
    Configure how? On the device or building it? On the device you use an app like SetCPU or an equivalent.

    If you mean building, that's my next big task. Check out the AOSP link in the credits, I believe there is some good info there to get you started.

    Sent from my Galaxy Nexus using Android Central Forums
  4. #79  
    ewinkley's Avatar

    Posts
    10 Posts
    Global Posts
    11 Global Posts

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by ewinkley View Post
    This, from the second link you listed, resolved my make problems:
    To work around it, you can just comment out the following lines in build/core/main.mk:

    # ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
    # java_version :=
    # endif


    Thank you!
    Well now I am getting errors trying to build. I have selected toro, and I type "make -j2 otapackage", and I see the platform_version, etc., but under "checking build tools versions..." I get this error:

    find: 'src': no such file or directory

    I thought I had followed the directions and was successful at each one - anyone know what I'm doing wrong?
  5. Thread Author  Thread Author    #80  
    dmmarck's Avatar
    Retired Moderator

    Posts
    10,930 Posts
    ROM
    What do you think?

    Default

    Quote Originally Posted by ewinkley View Post
    Well now I am getting errors trying to build. I have selected toro, and I type "make -j2 otapackage", and I see the platform_version, etc., but under "checking build tools versions..." I get this error:

    find: 'src': no such file or directory

    I thought I had followed the directions and was successful at each one - anyone know what I'm doing wrong?
    Try looking at this:



    I would also check the stuff you downloaded for the build environment; I bet one of them had an error or was missing.

    Sent from my Galaxy Nexus using Android Central Forums
    Thanked by:
    dually 
  6. #81  

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    So I've got a rom booted and running. I changed the permissions for the sdk directory and the working directory so that I could build as a non-privileged user, and then I made recovery and su modifications without unzipping my ota, and I've got a working rom.

    Now, my problem seems to be finding a Gapps package that will let me sign into the play store without server error.
  7. #82  
    rufflez's Avatar
    Banned

    Posts
    122 Posts

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by dually View Post
    So I've got a rom booted and running. I changed the permissions for the sdk directory and the working directory so that I could build as a non-privileged user, and then I made recovery and su modifications without unzipping my ota, and I've got a working rom.

    Now, my problem seems to be finding a Gapps package that will let me sign into the play store without server error.
    nevermind, my previous link doesn't have JB gapps with google now.

    How about these?
  8. #83  

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    You think I should try an ICS Gapps package?
  9. Thread Author  Thread Author    #84  
    dmmarck's Avatar
    Retired Moderator

    Posts
    10,930 Posts
    ROM
    What do you think?

    Default

    Quote Originally Posted by dually View Post
    You think I should try an ICS Gapps package?
    No. I'd recommend Jelly Belly and its 7/14 package. Or Kejars 7/13 package. Both claim to work.

    Sent from my Galaxy Nexus using Android Central Forums
  10. #85  

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Ok, Nexus Bean Gapps, and Jelly Belly Gapps, didn't work. Downloading Kejars now.

    Should I be able to just flash over the rom, or do I need to manually mod the rom before flashing?
  11. Thread Author  Thread Author    #86  
    dmmarck's Avatar
    Retired Moderator

    Posts
    10,930 Posts
    ROM
    What do you think?

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by dually View Post
    Ok, Nexus Bean Gapps, and Jelly Belly Gapps, didn't work. Downloading Kejars now.

    Should I be able to just flash over the rom, or do I need to manually mod the rom before flashing?
    Keep in mind that auto restore is probably the last big "bug" remaining for JB roms. It has worked intermittently at best, so I wouldn't be too dissuaded if it never works. Just go to "My Apps" and start going down the line .

    What do you mean manually mod the rom? Just flash them like you would normally.

    I'd wipe data/cache/dalvik/system, then flash your rom then the GAPPs package.
  12. #87  

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Can't get any of the Gapps packages to work. Home button just flat out does nothing, doesn't even return home, stock browser won't open, and when I launch play store it won't connect. The only thing that works is gmail.

    Everything works fine if I install without Gapps.
  13. Thread Author  Thread Author    #88  
    dmmarck's Avatar
    Retired Moderator

    Posts
    10,930 Posts
    ROM
    What do you think?

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by dually View Post
    Can't get any of the Gapps packages to work. Home button just flat out does nothing, doesn't even return home, stock browser won't open, and when I launch play store it won't connect. The only thing that works is gmail.

    Everything works fine if I install without Gapps.
    Are those results the same across GAPPs packages? If so, you could have a faulty build, unfortunately . It happens.
  14. #89  
    ancorare's Avatar

    Posts
    7 Posts
    ROM
    BuglessBeast/Franco

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by ewinkley View Post
    Well now I am getting errors trying to build. I have selected toro, and I type "make -j2 otapackage", and I see the platform_version, etc., but under "checking build tools versions..." I get this error:

    find: 'src': no such file or directory

    I thought I had followed the directions and was successful at each one - anyone know what I'm doing wrong?
    I'm having the same issue. After the error message, it continues like it's building, but only runs for a couple minutes and doesn't seem to actually produce anything. (i.e. no .zip or .img files using variations of "make -j#" and "make -j# otapackage")

    Everything else seems to have run smoothly, and I can't find any issues with anything I downloaded for the build environment. Anyone have any ideas?

    PS: This guide is phenomenal, I don't post much on here but I've been around for a little while and this is by far the most comprehensive tutorial I've ever seen. Kudos, D!
    Thanked by:
  15. Thread Author  Thread Author    #90  
    dmmarck's Avatar
    Retired Moderator

    Posts
    10,930 Posts
    ROM
    What do you think?

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by ancorare View Post
    I'm having the same issue. After the error message, it continues like it's building, but only runs for a couple minutes and doesn't seem to actually produce anything. (i.e. no .zip or .img files using variations of "make -j#" and "make -j# otapackage")

    Everything else seems to have run smoothly, and I can't find any issues with anything I downloaded for the build environment. Anyone have any ideas?

    PS: This guide is phenomenal, I don't post much on here but I've been around for a little while and this is by far the most comprehensive tutorial I've ever seen. Kudos, D!
    Does it look something like this?



    And thank you! It appears this error is common and I'm trying to figure out what in the heck is going on with y'alls builds.

    EDIT:

    Some more links for you folks to see:




    I'll keep no searching. I suggest whenever you run into anything to copy and paste it, wrap it in quotes, and hit Google hard.

    You could also try changing stuff...like make -j1 otapackage instead of make -j4 otapackage, etc. See if any of that helps. Or run through the build environment stuff/double check you're in the source folder.
    Last edited by dmmarck; 07-16-2012 at 01:04 AM.
  16. #91  
    ancorare's Avatar

    Posts
    7 Posts
    ROM
    BuglessBeast/Franco

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by dmmarck View Post
    Does it look something like this?



    And thank you! It appears this error is common and I'm trying to figure out what in the heck is going on with y'alls builds.
    Just ran it again with "make -j2 otapackage" to see exactly what it's producing and got way more output than I expected... This latest attempt starts with the same "find: `src': No such file or directory" error, but then launches into a bunch of system files being ignored, and then a ton of lines starting variously with "target Generated: *filename*", "Import includes file: *filename*", "Export includes file: *filename*", and "Notice file: *path*/NOTICE -- *filename*.txt". It finished with:

    Code:
    make: *** [out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.jar] Error 41
    make: *** Waiting for unfinished jobs....
    ... and that brought me back to a blank $ prompt.
  17. #92  
    Andrew Ruffolo's Avatar

    Posts
    3,809 Posts
    Global Posts
    3,815 Global Posts
    ROM
    Stock

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by ancorare View Post

    ... and that brought me back to a blank $ prompt.
    Did you try
    Code:
    make clobber
    in-between builds?
    Thanked by 2:
  18. Thread Author  Thread Author    #93  
    dmmarck's Avatar
    Retired Moderator

    Posts
    10,930 Posts
    ROM
    What do you think?

    Default

    Quote Originally Posted by Andrew Ruffolo View Post
    Did you try
    Code:
    make clobber
    in-between builds?
    Do this, it'll clear out previous output and make things cleaner.

    Sent from my Galaxy Nexus using Android Central Forums
  19. #94  
    ancorare's Avatar

    Posts
    7 Posts
    ROM
    BuglessBeast/Franco

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by Andrew Ruffolo View Post
    Did you try
    Code:
    make clobber
    in-between builds?
    Negative. Just tried it and then ran "make -j2 otapackage" again and I'm still getting the same results, first the `src' error and then loads of "target Generated" and whatnot.
  20. #95  
    bjrosen's Avatar

    Posts
    148 Posts
    Global Posts
    155 Global Posts

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    I was asking about configuring the kernel build. When you build a regular kernel you can choose to build it for a specific target CPU rather than a generic x86, pick different speed governors, things like that. I've noticed that different kernels that I've loaded have different speed governors available so clearly people have been doing that also the OTA build is aimed at ARMv7, the GN has a Cortex A9, is v7 the ARM equivalent of i386 or does the A9 have v7 cores in it?. I also notice that some kernels are advertised as performance and some as lean kernels but they never have any release notes saying what they actually did to differentiate their kernels. I doubt that they've patched the kernels, I would assume that they just selected different options.
    Last edited by bjrosen; 07-16-2012 at 06:12 AM.
  21. #96  
    lordbah's Avatar

    Posts
    81 Posts
    Global Posts
    424 Global Posts

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    I sync'd the 4.1.1_r1 branch, entered "full_toro-userdebug" at the lunch menu since it wasn't listed, ran make otapackage, and the result is named full_toro-ota-eng.lordbah.zip. I wasn't expecting to see "eng" there but "userdebug".
  22. #97  
    ancorare's Avatar

    Posts
    7 Posts
    ROM
    BuglessBeast/Franco

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by ancorare View Post
    Negative. Just tried it and then ran "make -j2 otapackage" again and I'm still getting the same results, first the `src' error and then loads of "target Generated" and whatnot.
    Stumbled across this after a Google search of the make error:

    Applied this patch:

    And it compiled perfectly! Just downloaded Jelly Belly's 7-14 GApps, gonna get to flashing and see if it worked.

    Again, huge thanks to dmmarck for this killer writeup, and Andrew Ruffolo for the make clobber pointer, lol.
    Thanked by:
    dmmarck likes this.
  23. #98  
    KWKSLVR's Avatar

    Posts
    424 Posts
    Global Posts
    425 Global Posts

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Disclaimer, this is my first build and this guide gives me warm fuzzies inside. I had to do some different things to get Java installed, but that was solved with 5 minutes of googling around for a solution. Anyway, I compiled my build last night on Ubuntu 10.04 running in VirtualBox. I've got my zip, but some of the last lines of are:

    No bootloader.img in target_files; skipping install
    No radio.img in target_files; skipping install
    No radio.img in target_files; skipping install


    Any idea what I did wrong? Thanks for the help (and the guide)!
  24. #99  
    b33n's Avatar

    Posts
    2 Posts

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Quote Originally Posted by ancorare View Post
    Stumbled across this after a Google search of the make error:

    Applied this patch:

    And it compiled perfectly! Just downloaded Jelly Belly's 7-14 GApps, gonna get to flashing and see if it worked.

    Again, huge thanks to dmmarck for this killer writeup, and Andrew Ruffolo for the make clobber pointer, lol.
    How did you apply the patch? I opened the file, made a backup, and just copy and pasted the contents then saved it. Same thing, no src and etc... Any thoughts?

    D, hell of a write up man, I've been trying to understand googles environment setup for months now, & gave up. When I saw your writeup on android central, I promptly quit whatever it was I was doing and fired my machine up and went to work. I just wish I had the drive and know how to do this on my own, but maybe your push in the right direction is what I needed?

    Thanks again, I love this community.
    Thanked by:
  25. #100  
    KWKSLVR's Avatar

    Posts
    424 Posts
    Global Posts
    425 Global Posts

    Default Re: [GUIDE][Ubuntu] Compiling Android from Source

    Wait, I'm stupid aren't I? That stuff isn't included in a ROM. DOH!!!

    Disregard my thread clutter!
    dmmarck likes this.
Page 4 of 12 FirstFirst 1234567 ... LastLast

Posting Permissions

B