Ubuntu 16.04 compile the source code Chi 6.0Android

First, the working environment structures
    1. Install Ubuntu16.04 system
    2. Configure the environment
       a. Install OpenJDK1.7
           source Ubuntu16.04 provided by default is openjdk1.8, so we need to replace the software source source Ali cloud
           1) open sources .list file
            the sudo the gedit /etc/apt/sources.list
          2) add the following code to
        
the deb http://mirrors.aliyun.com/ubuntu/ quantal main Restricted Universe Multiverse
the deb http://mirrors.aliyun.com/ubuntu/ quantal main Tel Restricted Universe Multiverse the -security
deb http://mirrors.aliyun.com/ubuntu/ quantal-the Updates main Tel Restricted Universe Multiverse
deb http://mirrors.aliyun.com/ubuntu/ quantal-Proposed main Tel Restricted Universe Multiverse
deb HTTP: / /mirrors.aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse

If the above method still does not work, it is recommended
sudo ppa the Add-APT-Repository: openjdk-r / ppa  
sudo APT-GET Update   
sudo APT-GET-7-openjdk install the JDK

      b.安装依赖(注意此为 ubuntu16 .04 使用的依赖,切勿使用 ubuntu14.04 所需的依赖)
        
sudo apt-get install -y git bison gperf build-essential libncurses5-dev
sudo apt-get install libx11-dev libreadline6-dev libgl1-mesa-dev g++-multilib libgl1-mesa-glx
sudo apt-get install tofrodos python-markdown xsltproc zip curl zlib1g-dev
sudo apt-get install dpkg-dev libsdl1.2-dev libesd0-dev mingw32
sudo apt-get install git-core gnupg flex bison gperf build-essential
sudo apt-get install gcc-multilib g++-multilib gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib
sudo apt-get install libc6-dev lib32readline6-dev
sudo apt-get install lib32ncurses5-dev x11proto-core-dev libx11-dev
sudo apt-get install lib32z-dev ccache
sudo apt-get install libgl1-mesa-dev libxml2-utils unzip m4

      . c mounted directly ADB
         sudo ppa the Add-APT-Repository: nilarimogard / webupd8
         sudo APT-GET Update
         sudo APT-GET-install Android Tools Android adb-fastboot-Tools-
two, compile Chi 6.0Android source
    1, the compiler lichee
      first extract lichee.tar.gz file (note that the file must be the same folder and android hereinafter)
      into the directory lichee
      performed ./build.sh config
      selection sun50iw1p1
      selection android
      selected linux-3.10
      select P1
      execution ./build.sh
      ERROR
      awk: Line 2: Never strtonum defined function
      SOLUTION:
      the sudo the install the gawk APT-GET
    2. compiler Android (reference http://blog.csdn.net/fuchaosz/article/details/51487585)
      Modify mydroid / art / build / Android.common_build.mk files, navigate to the line 75, the following code:
      ifneq ($ (WITHOUT_HOST_CLANG), to true)
      to:
      ifeq absolute expression ($ (WITHOUT_HOST_CLANG), to false)
      if there is not modified, will encounter a more difficult compile error, modify aim is to compile CLANG this option turned off, this error only encountered on Ubuntu16.04, this problem Ubuntu14.04 not exist
      to extract the files android.tar.gz
      enter android directory
      Source ./build/envsetup.sh
      Lunch

      Uboot compiled under extract-bsp --- copy lichee directory with kernel

      make -j32 2>&1 | tee make.log

      pack
 

Guess you like

Origin blog.csdn.net/yuhaibao324/article/details/93165372