google给出的依赖安装如下:
$sudo apt-get install libglapi-mesa:i386 libgl1-mesa-glx:i386 git gnupg mesa-utils flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$sudo apt-get install openjdk-8-jdk
$sudo apt-get install libgl1-mesa-swx11
$sudo apt-get install libncurses5 libncurses5-dev m4 libxpm4* realpath
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
$sudo apt-get install ninja gawk
在安装的过程中会发现,如果之前在AndroidM版本安装了编译环境,在安装libglapi-mesa:i386 libgl1-mesa-glx:i386这两个依赖包的时候会提示:
zhaojr@zhaojingrong-S2600CP:~$ sudo apt-get install libglapi-mesa:i386 libgl1-mesa-glx:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using theunstable
distribution that some required packages have not yetbeen created
or been moved out of Incoming.
The following information may help to resolve thesituation:
The following packages have unmet dependencies:
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks,this may be caused by held packages.
解决办法:出现这个问题是,你之前已经安装了libcheese-gtk23和libcheese7所使用的源可能不一样导致现在更新源会报错,
把之前的卸载了
sudo apt-get autoremove libcheese-gtk23 libcheese7
最后在:sudo apt-get install libglapi-mesa:i386 libgl1-mesa-glx:i386 即可。