Visual Servoing Platform  version 3.2.0 under development (2018-09-25)
Tutorial: Building ViSP SDK for Android

Getting Started

This tutorial is designed to help you build ViSP Android SDK which can be used to create Android Apps supporting ViSP Java functionalities.

This tutorial assumes you have the following software installed and configured:

Optionally, you can install some software for a faster build or build with a GUI

Fetch the source code

All the material (source code and images) described in this tutorial is part of ViSP source code and could be downloaded here or from the github repository. Note that the scripts for building the SDK are included in the source code.

Build the Android SDK

Open the directory having ViSP source code. Head to visp/platforms/android directory in it. Open terminal or command line in that folder and enter

$ python build_sdk.py --config ndk.config.py --sdk_path <path-to-Android-Sdk> --ndk_path <path-to-Android-Sdk>/ndk-bundle <installation-directory> <visp-source-code-directory>

For example, on a system the command might look like

$ python build_sdk.py --config ndk.config.py --sdk_path /home/user/Android/Sdk --ndk_path /home/user/Android/Sdk/ndk-bundle /home/user/visp-sdk-build /home/user/Projects/visp

Above command will build SDK for multiple Android architectures. If you're aware on what Android architecture you'll be working on(refer here), say x86_64, you can do a minimal build by changing contents of ndk.config.py file

ABIs = [
ABI("5", "x86_64", "x86_64-4.9")
]

This will speed up the installation process.

If you're experiencing problems with ccache, you can try a build without it

$ python build_sdk.py --no-ccache --config ndk.config.py --sdk_path /home/user/Android/Sdk --ndk_path /home/user/Android/Sdk/ndk-bundle /home/user/visp-sdk-build /home/user/Projects/visp

Next tutorial

You are now ready to follow Tutorial: Creating a simple Android App with ViSP where you'll be creating a sample Android App using ViSP SDK.