33
©Vecow ESOM-MT-350 User Manual
ANDROID SOFTWARE SETUP
3.2
Build Environment Setup
This section describes the way to set up the build environment for
development. All instructions are based on Ubuntu 14.04 LTS 64bit.
To make sure the build process is completed successfully, we recommend
at least 500GB of disk space and 16GB of combined memory and 20GB
swap space on the host machine.
To check the Java version using the following command.
The following packages are required for the Android development
environment. The required packages can be installed using the
commands below.
$ sudo add-apt-repository ppa:openjdk-r/ppa
$ sudo apt-get update
$ sudo apt-get install openjdk-8-jdk
$ sudo apt-get install git repo gnupg flex bison gperf build-essential zip curl xsltproc \
unzip make python-networkx zlib1g-dev:i386 libswitch-perl libc6-dev-i386 \
zlib1g-dev libc6-dev lib32ncurses5-dev lib32z1 x11proto-core-dev libx11-dev \
lib32z1-dev libgl1-mesa-dev g++-multilib tofrodos python-markdown libxml2-utils \
software-properties-common xsltproc libx11-dev:i386 liblz4-tool android-tools-adb \
android-tools-fastboot google-android-build-tools-installer bzip2 libbz2-dev \
libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev make \
optipng maven python-mako python3-mako python python3 syslinux-utils
$ java –version
openjdk version “1.8.0_141”
OpenJDK Runtime Environment (build 1.8.0_141-8u141-b15-
3~14.04-b15)
OpenJDK 64-Bit Server VM (build 25.141-b15, mixed mode
3.2.1 Configuring Linux Host Machine
The first step is to install the OpenJDK 8 using the following commands.