This shows you the differences between two versions of the page.
tutorials:cb1:development:installing_the_build_environment_on_ubuntu_12.04 [2013/10/15 16:09] sinosmond Fixed lots of spelling & formating |
tutorials:cb1:development:installing_the_build_environment_on_ubuntu_12.04 [2014/06/12 11:17] (current) parker parker |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Start ====== | + | ====== Installing the Build Environment on Ubuntu 12.04 ====== |
<WRAP noprint><WRAP left box 60%> | <WRAP noprint><WRAP left box 60%> | ||
Line 12: | Line 12: | ||
<WRAP left round box 60%> | <WRAP left round box 60%> | ||
__** PC requirements **__ | __** PC requirements **__ | ||
- | ** Hardware ** | + | * ** Hardware ** |
- | * CPU: Intel 2.5G I5 x64 | + | * CPU: Intel 2.5G I5 x64 |
- | * Memory: 16G DDR3 | + | * Memory: 16G DDR3 |
- | * Disk: 30GB | + | * Disk: 30GB |
- | * Internet connected | + | * Internet connected |
- | ** Software ** | + | * ** Software ** |
- | * OS: Ubuntu 12.04(64 bit) | + | * OS: Ubuntu 12.04(64 bit) |
- | * Java JDK 6 | + | * Java JDK 6 |
- | * Eclipse | + | * Eclipse |
- | * ADT | + | * ADT |
- | * CDT | + | * CDT |
- | * Android SDK | + | * Android SDK |
- | * Android NDK | + | * Android NDK |
- | * Linux Source | + | * Linux Source |
- | * Android Source | + | * Android Source |
</WRAP> | </WRAP> | ||
- | |||
===== Initializing a Build Environment ===== | ===== Initializing a Build Environment ===== | ||
Line 34: | Line 33: | ||
**Attention**: Demon stration is in Ubuntu 12.04(32bit). | **Attention**: Demon stration is in Ubuntu 12.04(32bit). | ||
- | ==== Installingthe JDK ==== | + | ==== Installing the JDK ==== |
The Sun JDK is no longer in Ubuntu's mainpackage repository. | The Sun JDK is no longer in Ubuntu's mainpackage repository. | ||
In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used. | In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used. | ||
- | Input the following command in the Terminal: | + | Download the jdk1.6: |
- | $ sudo gedit /etc/apt/sources.list | + | $ dl.cubieboard.org/software/tools/android/jdk1.6.0_33.tar.gz |
- | Add: | + | Input in terminal: |
- | deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse | + | $ sudo vim etc/profile |
- | Input in terminal: | + | Add : |
- | $ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" | + | JAVA_HOME=/work/tools/jdk1.6.0_33 |
- | $ sudo apt-get update | + | export JRE_HOME=/work/tools/jdk1.6.0_33/jre |
- | $ sudo apt-get install sun-java6-jdk | + | export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH |
+ | export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH | ||
+ | |||
+ | Then save and input : | ||
+ | $souurce etc/profile | ||
==== Installing the Android SDK ==== | ==== Installing the Android SDK ==== | ||
Line 208: | Line 211: | ||
<WRAP noprint> | <WRAP noprint> | ||
- | {{tag>Cubieboard Cubietruck}} | + | {{tag>development environment ubuntu_12.04}} |
</WRAP> | </WRAP> |