First I want to thank DirtyDroidX for helping me out with all of this! It's greatly appreciated bro, you have no idea how much!
Thanks to Tucstwo for giving me the build commands and environment setup commands a while ago! This helped so much!
This is going to take a while to write up but wanted to let everyone that I'm going to post a how-to, that way maybe we can get more people into development. Thanks to Mattlgroff for the commands to purge OpenJava!
LET'S GET STARTED!!
This guide will assume that you are already running Ubuntu, or already have a Virtual Machine setup. This is NOT a guide for how to do that.
First thing we want to do is to get you a build environment going. For that, you're going to open a terminal in Ubuntu and enter the following lines, pressing "Enter" after each command:
First, you're going to get rid of OpenJava, it will not build Android.
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\* sudo aptitude remove '~Pjava-runtime' '~Pjava-compiler'
Now you're going to install SunJava6
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse" sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy-updates main multiverse" sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" sudo apt-get update sudo apt-get install sun-java6-jdk
That will get you Java6 installed, Java6 is needed to build for Gingerbread and higher. Next we're going to install the required packages. In Terminal again, enter this line, then press the "Enter" key:
sudo apt-get install git gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Now this line:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
If you run into issues with Java just let me know. There is a trick to getting it installed but that should work.
Now that this section is all done, jump down to the next one as we start:
DOWNLOADING SOURCE
Edited by BigDaddyHicks, 30 May 2013 - 01:38 AM.
edited thread title