Development Environment - GatorQue/cr-manifests GitHub Wiki

Host Development Environment Setup

Host Software Versions

  • Kubuntu 14.04
  • Android Studio IDE v1.5.1 Build 141.2456560
  • Oracle Java JDK v8

Host Software Installation Instructions

Follow the normal procedure for install Kubuntu 14.04 on your development PC and then do the following to install Oracle Java JDK version 8.x.

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo cd /usr/lib/jvm
sudo ln -s java-8-oracle default-java

If CPU support for VM hardware acceleration is available, then follow the steps outlined here [https://help.ubuntu.com/community/KVM/Installation] to install KVM support.

Download the Android Studio IDE installer and extract it to your home directory (e.g. ~/android-studio) and then do the following to install the Android SDK.

  1. Add the following lines to your ~/.profile file to add the Android studio.sh script file to your path
    1. # set PATH so it includes android-studio bin directory
    2. if [ -d "$HOME/android-studio/bin" ] ; then
    3. PATH="$HOME/android-studio/bin:$PATH"
    4. fi
    5. Log out and log back in (or add above path manually to PATH)
  2. Install some additional 32 bit libraries needed for downloading Android SDK
    1. sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
  3. Launch Android studio.sh file to complete Android SDK setup into ~/Android/SDK folder
    1. studio.sh
      1. Answer all questions (accept defaults) and wait for Android SDK download to complete
      2. Exit Android Studio after download compeletes

Download Git, Git flow, and Google Repo tools by doing the following:

  1. Download Git, Git-flow, and curl tools
    1. sudo apt-get install git git-flow curl
  2. Download Google Repo tool
    1. mkdir -p ~/bin
    2. curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    3. chmod a+x ~/bin/repo

Now you should be ready to follow the Development User Manual steps to setup CosmicRover development environment.

Target Development Environment Setup