ubuntu编译 7.0配置,包括12 14 16

Android7.7 build environment

Installingthe JDK

ForUbuntu >= 15.04

$ sudo apt-get update

$ sudo apt-get install openjdk-8-jdk

ForUbuntu LTS 14.04

Downloadthe.deb
packages for 64-bitarchitecture from smb://ia-sz/product2/build_environment:

openjdk-8-jre-headless_8u45-b14-1_amd64.deb

openjdk-8-jre_8u45-b14-1_amd64.deb

openjdk-8-jdk_8u45-b14-1_amd64.deb

Install the packages:

$ sudo apt-get update

Rundpkg
for each of the .deb files you downloaded. It may produce errors due to missing dependencies:

$ sudo dpkg -i openjdk-8-jre-headless_8u45-b14-1_amd64.deb openjdk-8-jre_8u45-b14-1_amd64.deb openjdk-8-jdk_8u45-b14-1_amd64.deb

To fix missing dependencies:

$ sudo apt-get -f install

Updatethe default Java version - optional

Optionally,for the Ubuntu versions above update the default Java version byrunning:

$ sudo update-alternatives --config java

$ sudo update-alternatives --config javac

Installingrequired packages

Ubuntu 14.04

$ sudo apt-get install git-core gnupg flex bison gperf build-essential \

zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \

lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \

libgl1-mesa-dev libxml2-utils xsltproc unzip

Ubuntu12.04

$ sudo apt-get install git gnupg flex bison gperf build-essential \

zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \

libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \

libgl1-mesa-dev g++-multilib mingw32 tofrodos \

python-markdown libxml2-utils xsltproc zlib1g-dev:i386

$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

还要安装gcc,不然会报错。
小编尝试了 12 和 16 build N,
可以通过。

你可能感兴趣的:(ubuntu编译 7.0配置,包括12 14 16)