安卓6.0 lunch full_la68_A40-eng
make -j8 2>&1 | tee build.log
安卓5.1
cat board_android5_6735.tar.bz2.a* | tar xj
gedit /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
apt-get update
=== Install google recommended packages ===
$ apt-get install -y git gnupg flex bison gperf build-essential
apt-get install -y zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev
apt-get install -y g++-multilib mingw32 tofrodos libgl1-mesa-dev python-markdown libxml2-utils xsltproc zlib1g-dev:i386
apt-get install -y libx11-dev:i386 libreadline6-dev:i386 __libgl1-mesa-glx:i386__
改为
apt-get install -y libx11-dev:i386 libreadline6-dev:i386 __libgl1-mesa-dri:i386__
如果报错
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.
执行
apt-get autoremove libcheese-gtk23 libcheese7
再次
apt-get install -y libx11-dev:i386 libreadline6-dev:i386 __libgl1-mesa-dri:i386__
$ ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
=== Install open JDK 1.7 ===
1. Run below apt-get command to install the package
$ sudo apt-get -y install openjdk-7-jdk
Ubuntu16.04安装openjdk-7-jdk
的安装源已经默认没有openjdk7了,所以要自己手动添加仓库,如下:
sudo add-apt-repositoryppa:openjdk-r/ppa sudo apt-getupdate sudo apt-getinstall openjdk-7-jdk
Ubuntu16.04安装JDK1.7和OpenJDK1.7
当仅仅在Ubuntu上安装JDK1.7时,仅需要依照下述步骤进行:
1. 在 http://www.Oracle.com/technetwork/Java/javase/downloads/jdk7-downloads-1880260.html 中下载 “ jdk-7u79-Linux-x64.tar.gz ”
2. 解压“ jdk-7u79-linux-x64.tar.gz ”
3. 拷贝解压后的文件到“/usr/lib/jvm”中,如果没有jvm,可以自己新建
4.
sudo vi /etc/profile
输入如下内容,
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_79
设置好了,还要运行一条命令来生效,
source /etc/profile
6. java -version 查看版本,至此完成设置JDK1.7
2. Run below update-java-alternatives command to set open JDK 1.7 environment
$ update-java-alternatives -s java-1.7.0-openjdk-amd64
=== gcc 切换 ===
http://blog.csdn.net/chenlycly/article/details/40478727
apt-get remove gcc
apt-get remove g++
apt-get install gcc-4.6
apt-get install g++-4.6
ln -s /usr/bin/gcc-4.6 /usr/bin/gcc
ln -s /usr/bin/g++-4.6 /usr/bin/g++
ls /usr/bin/gcc* -l
ls /usr/bin/g++* -l
=== 创建swap分区 ===
dd if=/dev/zero of=/swapfile bs=1G count=8
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
gedit /etc/fstab
添加
/swapfile none swap sw 0 0
swapon -s