7
[CM14] My complete guide on building CyanogenMod14

  1. cohaolain
    Honeycomb Oct 9, 2016

    cohaolain , Oct 9, 2016 :
    Have looked through many of these in my time, but never came across one that works perfectly from start to finish without problems or errors. So I decided to make my own guide :) Hope it will help somebody out!

    Will be making a Youtube tutorial on this soon as well that runs through the whole guide, and I'll post the video here when it's done.

    Here's the guide: goo.gl/uU0fCy

    Edit: All issues now seem to be fixed. Please refer to the updated guide if you're having problems. But all is well now, and I have several confirmed successful builds from this guide ;)
    Formatting and design has now been updated to make it easier to read and a little less sore on the eyes :p

    Edit 2: link updated with new LineageOS 14.1 guide

    Enjoy :D
     
    Last edited: Jan 16, 2017

    #1
  2. gaster
    Moderator Moderator Oct 9, 2016

    gaster , Oct 9, 2016 :
    Good to know. Thanks for sharing
     

    #2
    cohaolain likes this.
  3. deathstocker
    Gingerbread Oct 9, 2016

    deathstocker , Oct 9, 2016 :
    You can add the Virtual Machine steps as optional for those who already have a Linux distro installed. It will be shorter and more to the point then. Nice tutorial btw.
     

    #3
    obiwan+ likes this.
  4. cohaolain
    Honeycomb Oct 9, 2016

    cohaolain , Oct 9, 2016 :
    Will add in about skipping the VM steps if you have a linux distro already. Thanks! :)
     

    #4
    deathstocker and obiwan+ like this.
  5. Manav Bhagia
    Ice Cream Sandwich Oct 10, 2016


    #5
  6. deathstocker
    Gingerbread Oct 10, 2016


    #6
  7. Manav Bhagia
    Ice Cream Sandwich Oct 10, 2016


    #7
  8. Nitsjoo
    Gingerbread Oct 10, 2016


    #8
  9. cohaolain
    Honeycomb Oct 10, 2016

    cohaolain , Oct 10, 2016 :
    Only guessing here, but hopefully this'll help, because I haven't seen this happen before :p

    7th line down says out of memory.
    9th line down says GC overhead limit exceeded.

    Firstly, if you're in a VM, increase the amount of RAM it has.
    Otherwise, change the stack size to a much larger number. Refer to this guide:
    http://stackoverflow.com/questions/5839359/java-lang-outofmemoryerror-gc-overhead-limit-exceeded
    that discusses the specific error and the reasons it occurs, and also says how you can remove the warning entirely and see if bypassing it works. If none of these fixes work, your machine mightn't have enough RAM to build.
     

    #9
    Jamal751 and Manav Bhagia like this.
  10. mrbright25
    Honeycomb Oct 13, 2016

    mrbright25 , Oct 13, 2016 :
    [​IMG]
    I get this error after entering the croot, brunch oneplus3 commands, can somebody help me please?
     

    #10
  11. cohaolain
    Honeycomb Oct 13, 2016

    cohaolain , Oct 13, 2016 :
    Updating the guide now, but here's the step you need. Add the following after the last line in roomservice.xml using the nano command:
    "<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.0" />"
    Then please follow all the steps from that point in the guide on, as there's some new additions just added :)
     

    #11
  12. cohaolain
    Honeycomb Oct 13, 2016


    #12
    Manav Bhagia likes this.
  13. mrbright25
    Honeycomb Oct 13, 2016

    mrbright25 , Oct 13, 2016 :
    Thank you very much! I think that helped, thank you for the very detailed guide too!
     

    #13
  14. cohaolain
    Honeycomb Oct 13, 2016

    cohaolain , Oct 13, 2016 :
    No problem mate. glad I could help :)
     

    #14
  15. Manav Bhagia
    Ice Cream Sandwich Oct 16, 2016

    Manav Bhagia , Oct 16, 2016 :
    After syncing the repo yesterday , and resyncing today I get this error :
    Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    target R.java/Manifest.java: SettingsProvider (/home/manavbhagia/CM14/out/target/common/obj/APPS/SettingsProvider_intermediates/src/R.stamp)
    nothing matches overlay file suw_navbar_ic_back.xml, for flavor anydpi-v21
    nothing matches overlay file suw_navbar_ic_more.xml, for flavor anydpi-v21
    nothing matches overlay file suw_navbar_ic_next.xml, for flavor anydpi-v21
    nothing matches overlay file suw_progress_bar.xml, for flavor v21
    nothing matches overlay file preference_category_material.xml, for flavor v17
    nothing matches overlay file preference_category_material.xml, for flavor v21
    target R.java/Manifest.java: Shell (/home/manavbhagia/CM14/out/target/common/obj/APPS/Shell_intermediates/src/R.stamp)
    warning: string 'always_enabled_summary' has no default translation.
    warning: string 'always_enabled_title' has no default translation.
    Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    target R.java/Manifest.java: StatementService (/home/manavbhagia/CM14/out/target/common/obj/APPS/StatementService_intermediates/src/R.stamp)
    Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    target R.java/Manifest.java: SystemUI (/home/manavbhagia/CM14/out/target/common/obj/APPS/SystemUI_intermediates/src/R.stamp)
    target R.java/Manifest.java: Tag (/home/manavbhagia/CM14/out/target/common/obj/APPS/Tag_intermediates/src/R.stamp)
    Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    target R.java/Manifest.java: TeleService (/home/manavbhagia/CM14/out/target/common/obj/APPS/TeleService_intermediates/src/R.stamp)
    target R.java/Manifest.java: Telecom (/home/manavbhagia/CM14/out/target/common/obj/APPS/Telecom_intermediates/src/R.stamp)
    target R.java/Manifest.java: TelephonyProvider (/home/manavbhagia/CM14/out/target/common/obj/APPS/TelephonyProvider_intermediates/src/R.stamp)
    target R.java/Manifest.java: Trebuchet (/home/manavbhagia/CM14/out/target/common/obj/APPS/Trebuchet_intermediates/src/R.stamp)
    packages/apps/Settings/res/xml/security_settings_password_sub.xml:56: error: Error: No resource found that matches the given name (at 'requiresConfig' with value '@*android:bool/config_ui_blur_enabled').

    packages/apps/Settings/res/xml/security_settings_pattern_sub.xml:60: error: Error: No resource found that matches the given name (at 'requiresConfig' with value '@*android:bool/config_ui_blur_enabled').

    packages/apps/Settings/res/xml/security_settings_pin_sub.xml:61: error: Error: No resource found that matches the given name (at 'requiresConfig' with value '@*android:bool/config_ui_blur_enabled').

    packages/apps/Settings/res/xml/security_settings_slide_sub.xml:45: error: Error: No resource found that matches the given name (at 'requiresConfig' with value '@*android:bool/config_ui_blur_enabled').

    build/core/package_internal.mk:369: recipe for target '/home/manavbhagia/CM14/out/target/common/obj/APPS/Settings_intermediates/src/R.stamp' failed
    make: *** [/home/manavbhagia/CM14/out/target/common/obj/APPS/Settings_intermediates/src/R.stamp] Error 1
    make: *** Waiting for unfinished jobs....
    warning: string 'cf_setting_mobile_data_alert_roaming' has no default translation.
    warning: string 'label_ndp' has no default translation.
    warning: string 'requesting_unlock' has no default translation.
    warning: string 'unlock_failed' has no default translation.
    warning: string 'unlock_success' has no default translation.
    Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    warning: string 'application_name' has no default translation.
    Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    warning: string 'notifications_off_text' has no default translation.
    warning: string 'notifications_off_title' has no default translation.
    make: Leaving directory '/home/manavbhagia/CM14'

    #### make failed to build some targets (02:53:47 (hh:mm:ss)) ####

    [email protected]:~/CM14$
     

    #15
  16. cohaolain
    Honeycomb Oct 16, 2016

    cohaolain , Oct 16, 2016 :
    Have you been able to build successfully before now?
     

    #16
  17. Manav Bhagia
    Ice Cream Sandwich Oct 16, 2016

    Manav Bhagia , Oct 16, 2016 :
    Yeah , I had to disable USE_NINJA for that . The build compiled but didn't boot . That is the reason I synced the repo . I think the build didn't boot cause I was missing binary blobs , but idk how it compiled successfully before
    IMG_20161016_222104.jpg
     

    #17
  18. kronflux
    Cupcake Oct 16, 2016

    kronflux , Oct 16, 2016 :
    I too get this issue, when building for another device(Nexus 6P) so I assume it's a general CM issue, but if anyone has insight into fixing this, it would be appreciated.
     

    #18
  19. cohaolain
    Honeycomb Oct 16, 2016

    cohaolain , Oct 16, 2016 :
    Odd.... Not sure...
    Ah, interesting
     

    #19
  20. kronflux
    Cupcake Oct 16, 2016


    #20