Setting Up A Compile Environment

From Omni
Revision as of 16:11, 3 September 2013 by Dave Drager (Talk | contribs) (Created page with "From the stock Ubuntu 13.04 Install (64-bit): (both 32-bit and 64-bit) sudo apt-get git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools b...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the stock Ubuntu 13.04 Install (64-bit):

(both 32-bit and 64-bit) sudo apt-get git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool libxml2 libxml2-utils xsltproc

for 64-bit: sudo apt-get install g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib

[Download the Android SDK|http://developer.android.com/sdk/index.html#download]

Extract to ~/android so that you have ~/android/sdk and ~/android/eclipse.

~/android will be our general build directory.

$ mkdir -p ~/bin $ mkdir -p ~/android/omni

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

Set up your path to include bin and platform-tools for easy access later.

echo "export PATH=${PATH}:~/android/sdk/platform-tools/:~bin" >> ~/.bashrc; export PATH=${PATH}:~/android/sdk/platform-tools/:~bin

Configure git:

 git config --global user.email "your@email.address"
 git config --global user.name "Your Name"


Create a build directory and sync the source code:

$ cd ~/android/omni $ repo init -u ssh://git@git.omnirom.org/android.git -b android-4.3 $ repo sync -j4