Hello
You need packages for compiling cyanogenmod
Several "build packages" are needed to build CyanogenMod. You can install these using the package manager of your choice.
  
  
    In addition to the above, for 64-bit systems, get these:
  
  
    For Ubuntu 15.10 (wily) and newer, substitute:
lib32readline-gplv2-dev → lib32readline6-dev
For Ubuntu 16.04 (xenial) and newer, substitute (additionally see java notes below):
libwxgtk2.8-dev → libwxgtk3.0-dev
openjdk-7-jdk → openjdk-8-jdk
Ubuntu 16.04 (Xenial Xerus) or newer and OpenJDK: Since OpenJDK 1.7 was removed from the official Ubuntu repositories, you have a couple options:
Obtain OpenJDK 1.7 from the openjdk-r PPA
Enable experimental OpenJDK 1.8 support in CyanogenMod 13.0 (not available in earlier version). To enable OpenJDK 1.8 support, add this line to your $HOME/.bashrc file: export EXPERIMENTAL_USE_JAVA8=true.
  
  
      
  
    Initialize the CyanogenMod source repository
Enter the following to initialize the repository:
Note: Make sure the cm branch entered here is the one you wish to build and is supported on your device.
  
  
    Download Device And Vendor Tree
  
  
    Rename folders and replace your romservice.xml looks like http://ift.tt/2bqc0VP
Now Start Compiling
  
  
    if you get
/obj permisson error wait stop error log and down ctrl+c keys stopp compling and restrat command
if you get error on framework assemblies you need linux system language change to english
if you get error install-recovery.sh you need copy stock rom system/bin/install-recovery.sh to android/system/out/ota_temp/system/bin folder
Builded cm http://ift.tt/2bqcqv2
  You need packages for compiling cyanogenmod
Several "build packages" are needed to build CyanogenMod. You can install these using the package manager of your choice.
Code:
  sudo apt install bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop maven openjdk-7-jdk pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev android-tools-adb android-tools-fsutils android-tools-fastboot android-tools-adbd  Code:
  sudo apt install  g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev  lib32readline-gplv2-dev → lib32readline6-dev
For Ubuntu 16.04 (xenial) and newer, substitute (additionally see java notes below):
libwxgtk2.8-dev → libwxgtk3.0-dev
openjdk-7-jdk → openjdk-8-jdk
Ubuntu 16.04 (Xenial Xerus) or newer and OpenJDK: Since OpenJDK 1.7 was removed from the official Ubuntu repositories, you have a couple options:
Obtain OpenJDK 1.7 from the openjdk-r PPA
Enable experimental OpenJDK 1.8 support in CyanogenMod 13.0 (not available in earlier version). To enable OpenJDK 1.8 support, add this line to your $HOME/.bashrc file: export EXPERIMENTAL_USE_JAVA8=true.
Code:
  
  $ mkdir -p ~/bin
  $ mkdir -p ~/android/system  Code:
  $ curl http://ift.tt/1mQuHPR > ~/bin/repo
  $ chmod a+x ~/bin/repo  Enter the following to initialize the repository:
Note: Make sure the cm branch entered here is the one you wish to build and is supported on your device.
Code:
  $ cd ~/android/system/
  $ repo init -u http://ift.tt/1nR8keD -b cm-13.0
  $ repo sync  Code:
  $ cd android/system/device/
  $ git clone http://ift.tt/2bqd6Up -b cm-13.0
  $ cd android/system/device/google
  $ git clone http://ift.tt/2bqcyej -b master
  $ cd android/vendor/google
  $ git clone http://ift.tt/2bqdjXs -b master
  $ mkdir kernel/google/
  $ cd kernel/google
  $ git clone http://ift.tt/2bqcaMW -b cm13.0  Now Start Compiling
Code:
  $ cd android/system
  $ source build/envsetup.sh
  $ export USE_CCACHE=1
  $ prebuilts/misc/linux-x86/ccache/ccache -M 50G
  $ export ANDROID_CCACHE_DIR="$HOME/android/.ccache"
  $ export ANDROID_CCACHE_SIZE="50G"
  $ lunch cm_shamrock-userdebug
  $ croot
  $ brunch shamrock  /obj permisson error wait stop error log and down ctrl+c keys stopp compling and restrat command
if you get error on framework assemblies you need linux system language change to english
if you get error install-recovery.sh you need copy stock rom system/bin/install-recovery.sh to android/system/out/ota_temp/system/bin folder
Builded cm http://ift.tt/2bqcqv2
from xda-developers http://ift.tt/2bqdsu2
via IFTTT
Aucun commentaire:
Enregistrer un commentaire