commit | 808ce31d54429adb616b7da7e9014766e7df7914 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sat Jan 23 18:11:59 2016 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sat Jan 23 18:11:59 2016 -0800 |
tree | 73c719016169c6fd09b7f81e24b315497a98fc7b | |
parent | 77a300968c751d7ca6da1cfec7b7c49a168591c7 [diff] |
doc: Fix travis-ci build status image/link in README Change-Id: Id7881a945ff1cf9d42cc56383240295f0193e6b9
To compile code, the following is necessary
Example script for Ubuntu 14.04 to get all dependencies, download SDK and NDK:
CRYSTAX_NDK_VERSION=10.3.1 GRADLE_VERSION=2.10 SDK_VERSION=24.4.1 BUILD_TOOLS_VERSION=21.1.2 COMPILE_SDK_VERSION=21 sudo apt-get install -y build-essential git openjdk-7-jdk unzip # SDK binaries need i386 libraries sudo dpkg --add-architecture i386; sudo apt-get update -qq; sudo apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386 wget https://www.crystax.net/download/crystax-ndk-$CRYSTAX_NDK_VERSION-linux-x86_64.tar.xz tar xf crystax-ndk-$CRYSTAX_NDK_VERSION-linux-x86_64.tar.xz rm crystax-ndk-$CRYSTAX_NDK_VERSION-linux-x86_64.tar.xz wget http://dl.google.com/android/android-sdk_r$SDK_VERSION-linux.tgz tar zxf android-sdk_r$SDK_VERSION-linux.tgz rm android-sdk_r$SDK_VERSION-linux.tgz export ANDROID_HOME=`pwd`/android-sdk-linux export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools echo "y" | android update sdk --filter platform-tools,build-tools-$BUILD_TOOLS_VERSION,android-$COMPILE_SDK_VERSION,extra-android-support,extra-android-m2repository,extra-google-m2repository --no-ui --all --force echo "y" | android update sdk --filter "android-19" --no-ui --all --force wget https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip unzip gradle-$GRADLE_VERSION-bin.zip rm gradle-$GRADLE_VERSION-bin.zip export PATH=$PATH:`pwd`/gradle-$GRADLE_VERSION/bin
git clone --recursive http://gerrit.named-data.net/NFD-android echo sdk.dir=`pwd`/android-sdk-linux > NFD-android/local.properties echo ndk.dir=`pwd`/crystax-ndk-10.3.1 >> NFD-android/local.properties cd NFD-android ../gradle/gradle-2.10/bin/gradle assembleRelease
The development setup can be set up with Vagrant and scripts provided in .vagrant/
folder. After vagrant command-line is installed, the following will create VM environment and fetch all necessary dependencies:
cd .vagrant vagrant up vagrant ssh
Refer to vagrant documentation for more information.