Skip to content
Saumitro Dasgupta edited this page Apr 6, 2015 · 5 revisions

Dev Tools Setup Guide

This document will guide you through the process of setting up your environment for developing mobile computer vision apps on Android.

Overview

This guide describes three ways to get started. You should select one based on your preference and OS:

  1. TADP: The easiest way to get started is to install Nvidia's Tegra Android Development Pack (TADP). It's available for Linux, Mac OS X, and Windows.
  2. Mac OS X: If you're using Mac OS X (10.9+) (the latest version at the time of writing), you should follow this section as TADP doesn't fully support it yet.
  3. TADP VM: An Ubuntu 14.04 virtual machine with TADP pre-installed.

TADP

Note: The latest version of TADP does not work correctly on Mac OS X 10.10 (Yosemite). Please follow the alternate instructions provided for Yosemite in this guide.

Download and install TADP. You will have to sign up for an Nvidia developer account first. Currently, these are manually processed and approved, so you should start early.

The default TADP installation contains everything you'll need for this course (Eclipse, ADT, Android SDKs, NDK, OpenCV).

Mac OS X

Step 1: Java

First, make sure you have the latest Java runtime. To check your current runtime version, execute this command in Terminal:

/usr/libexec/java_home

You should expect to see an output similar to this:

/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home

If the version displayed isn't at least v1.7, or if you don't have a JVM installed, first download and install the latest JDK.

Step 2: Android Dev Tools

Download and extract the Android dev tools archive for Mac OS X.

Step 3: SDK Path

Launch Eclipse. It will ask you for the Android SDK path. If prompted, select "Existing SDK" (and not "Install new..."). Set the Android SDK path to the extracted folder android-sdk-macosx.

TADP Linux VM

If you don't particularly care about developing for Android locally, you can download a pre-configured Linux virtual machine image. It's an Ubuntu 14.04 virtual machine that contains all the tools that are needed for development for the Tegra Shield Tablet (includes the Tegra Android Development Pack 3.0r2 for Linux and the Tegra Android Native Tutorial).

An added advantage: this VM includes the mobile Cuda toolchain.