Build Environment for Ubuntu 16.04

Table of Contents

Next: , Up: (dir)   [Contents]

Main index

This manual is for program, version version.


Previous: , Up: Top   [Contents]

1 Build environment for ubuntu 16.04

Get ISO:  ubuntu-16.04.1-desktop-amd64.iso from ubuntu website
    http://releases.ubuntu.com/16.04/

Make usb boot disk
sudo dd if=ubuntu-16.04.3-desktop-amd64.iso of=/dev/sdc bs=8M;sync

Press F12 when PC bootup, choose USB install
zzy@zzy:~$ cat config_cp.sh
scp -r $2@$1:~/.ssh .
scp -r $2@$1:~/.vim .
scp -r $2@$1:~/.vimrc .
scp -r $2@$1:~/.gitconfig .
scp -r $2@$1:~/.git-template .
sudo apt-get update
sudo apt-get install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386
sudo apt-get install g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev
sudo apt-get install squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng maven
sudo apt-get install libssl-dev ruby

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre
sudo apt-get install openjdk-7-jdk
sudo apt-get install  openjdk-8-jdk
sudo mv /usr/bin/make /usr/bin/make-4.1      # backup make 4.1
scp ...:/usr/bin/make /usr/bin               # cp make 3.81
sudo mv /usr/bin/make /usr/bin/make-3.81     # backup make 3.81
sudo ln -s /usr/bin/make-3.81 /usr/bin/make  # create soft link to make 3.81
// java version change
sudo update-alternatives --config java
sudo update-alternatives --config javac
zip a.zip android-info.txt android-info2boot.img system.img ...