root

Building on Debian:
apt-get install freenect freeglut3-dev libxmu-dev libusb-1.0-0-dev libopencv-dev libopencv-ocl-dev
cd src
make

Running under fakenect:
fakenect $DATA_PATH $PROG_PATH

where:
$DATA_PATH is the path to the recorded data
$PROG_PATH is the path to the program (e.g. ./cppexample)