This repository was archived by the owner on Nov 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetting Up Your Build Environment.txt
More file actions
54 lines (29 loc) · 2.32 KB
/
Setting Up Your Build Environment.txt
File metadata and controls
54 lines (29 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
~Every command will be initiated from the terminal.
Installing Sun Java on Newer versions of Ubuntu (10.04 an above), Linux Mint
Open the terminal and type the following:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install oracle-java7-installer
~That should install the Sun Java version on your system. To change to it simply do the following in case you have other java alternatives:
sudo update-java-alternatives -s java-7-oracle
~If you want the installation to be automatic type the following:
sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
~after that simply do the following to set the default environment variables:
sudo apt-get install oracle-java7-set-default
~Note that the PPA includes versions 6, 7 and 8. So you can install any of them by simply changing the number in the installation line, for example..
sudo apt-get install oracle-java8-installer
..Would install Java 8. After installing the Java version you wish to use and setting the version to the default with the update-java-alternatives command, you can check which version you are using by typing the following:
java -version
It will show you the default version you are using at that moment.
~Now to install the needed tools to compile. Run the following command:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build- essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils xsltproc g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib
~Now you need to set up your directories :
mkdir -p ~/bin
mkdir -p ~/android
~Install the repo command
~Enter the following to download the "repo" binary and make it executable (runnable):
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
~Put the ~/bin directory in your path of execution
Make sure that the ~/bin directory you just created is in your path of execution so that you can easily run the repo command even when you're not in ~/bin. Assuming you are using the BASH shell, the default in recent versions of Ubuntu, you can set it like this:
export PATH=${PATH}:~/bin