Developers Guide

This documents provides information how to develope the ARModule.

Clone repository:

sudo apt-get install git
git clone https://github.com/nubomedia-vtt/armodule.git

Setup the developing environment

cd armodule/misc
chmod u+x setup.sh
./setup.sh
cd ../ar-markerdetector

Create a folder to build the ARModule

mkdir build
cd build

Now you have an option to generate either Java or JavaScript interface for the Kurento Client (or naturally both if you need)

Java version

cmake .. -DGENERATE_JAVA_CLIENT_PROJECT=TRUE

JavaScript version

cmake .. -DGENERATE_JS_CLIENT_PROJECT=TRUE

To use the compiled results in Kurento just set into:

/etc/default/kurento-media-server-6.0

path to the armodule/build and ALVAR libarary, for example:

export DISPLAY=:0
NAME=$(logname)
export KURENTO_MODULES_PATH=$KURENTO_MODULES_PATH:/home/$NAME/nubomedia/armodule/build
export GST_PLUGIN_PATH=$GST_PLUGIN_PATH:/home/$NAME/nubomedia/armodule/build
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/$NAME/nubomedia/alvar-2.0.0-sdk-linux-gcc44/bin/

Please for details see also ARModule Demo for details and as an example how the ARModule can be utilized.