Ubuntu Build - lingeringsocket/goseumdochi GitHub Wiki

To build goseumdochi on Ubuntu GNU/Linux, you need these prerequisites:

Get source code and dependencies:

sudo apt-get install libopencv-dev libstdc++6
cd $HOME
export ANDROID_HOME=$HOME/.android/sbt/sdk
git clone https://github.com/lingeringsocket/goseumdochi.git
cd goseumdochi
# fetch the latest Sphero Android SDK since it's not available via Maven
wget -O android/libs/RobotLibrary.jar https://github.com/orbotix/Sphero-Android-SDK/raw/master/library/RobotLibrary.jar
sbt clean

(Note that if you already have the Android SDK installed, make sure ANDROID_HOME is set accordingly. If you don't, then the steps above will install it automatically to the location specified. Add the ANDROID_HOME setting to your .bashrc so that the build will continue to work in future shell sessions.)

Build and test platform-independent base:

sbt test

(All unit tests should pass.)

Build Android common library:

sbt android/clean
sbt android/compile

Build Android app Watchdog for Sphero:

sbt watchdog/clean
sbt watchdog/android:package-debug

This should produce $HOME/goseumdochi/watchdog/target/android/output/goseumdochi-watchdog-debug.apk.

Build Android app RollWithMe for Sphero:

sbt leash/clean
sbt leash/android:package-debug

To install your build on your phone, connect your phone via USB cable and

sbt watchdog/android:install

Or to install and run in one step:

sbt watchdog/run