Skip to content

Initializing and Building

IngCr3at1on edited this page Feb 1, 2013 · 36 revisions

So I've recently reread Google's build instructions and it seems they are more lacking than I originally thought; to that end here are up to date instructions for Ubuntu 10.04 - 12.04 and Linux Mint Maya (13) (please note, I haven't tested the build on anything other than Ubuntu 12.04 and Linux Mint Maya).

Install java courtesy of an awesome script originally written by Mike Wimpress, currently maintained by Ryan Norris

cd ~/
wget https://raw.github.com/thenameisnigel/oab-java6/master/oab-java.sh -O oab-java.sh
chmod +x oab-java.sh
sudo ./oab-java.sh
sudo apt-get install sun-java6-jdk
  • Determine the exact version of java installed
ls /usr/lib/jvm

Note: the directory labeled java-6-sun-1.6.x.y

  • The above doesn't set your path to java so we're going to make use of the profile.d directory (thanks to dinob of the fedora forums (strangely enough) for documenting this).
su
  • Enter your password than run the following, replace * with the version numbers listed with the above command.
echo 'export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.*.*'>/etc/profile.d/jdk.sh
echo 'export PATH=$JAVA_HOME/bin:$PATH'>>/etc/profile.d/jdk.sh
exit
. /etc/profile.d/jdk.sh
  • Confirm your java version
java -version

Install the required (common) build dependencies.

sudo apt-get install git-core gnupg flex bison gperf \
zip curl pngcrush libc6-dev libxml2-utils zlib1g-dev \
g++-multilib tofrodos python-markdown mingw32 \
xsltproc x11proto-core-dev build-essential schedtool

In addition to the above you will also need to install the following dependent on your OS.

Ubuntu 12.04

sudo apt-get install libgl1-mesa-dev:i386 libncurses5-dev:i386 libreadline6-dev:i386 \
libx11-dev:i386 zlib1g-dev:i386

Linux Mint Maya (13) and Ubuntu 10.04 - 11.10

sudo apt-get install libgl1-mesa-dev libx11-dev zlib1g-dev

Linux Mint Maya (13)

sudo apt-get install libncurses5-dev libreadline6-dev

Ubuntu 10.04 - 11.10

sudo apt-get install ia32-libs lib32ncurses5-dev lib32readline5-dev lib32z-dev
  • Please note I have only tested this on a 64 bit machine (while none of the listed dependencies should require 64 bit), I cannot guarantee this will work on a 32 bit machine.
  • The above does not apply to Ubuntu 10.04 - 11.10 (64 bit machines are required for older build environments).

Download the repo binaries.

mkdir ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo

Set your path for repo to work (especially important for Ubuntu 12.04).

PATH=~/bin:$PATH

That's it for initializing a build environment head on over to the index to find the manifest that's right for you.

If you have any issues please see our FAQ