Compilation of RGBDemo on Ubuntu 14.04
Installation of OPENCV
It seems that the RGBDemo works well with OpenCV 2.3.1.
add shared opencv libraries:
sudo gedit /etc/ld.so.conf.d/opencv.conf
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
sudo ldconfig -v
Installation of PCL
Install PCL pre-built libraries from PPA repositories, so that there will be no issue or missing of libraries by the following commands:
$ sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl $ sudo apt-get update $ sudo apt-get install libpcl-all
This will install all the required libraries for PCL.
Installation of Open-NI, Nite, Sensor Driver and Avin2Sensor
Avin2 patch sensor is needed for the kinect. You can download it from https://github.com/avin2/SensorKinect/zipball/unstable
For installation detail, please refer to : https://sites.google.com/site/3dreconstructionusingkinect/project-updates/Installation-of-RGB-demo-07-on-Ubuntu-1204?pageUrlChanged=Installation-of-RGB-demo-07-on-Ubuntu-1204
$ sudo gedit /etc/udev/rules.d/51-kinect.rules
Rules for Kinect & Kinect for Windows’ Motor, Audio and Camera (the owner can be modified as current user)
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02b0", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02ad", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02ae", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02c2", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02be", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02bf", MODE:="0666", OWNER:="root", GROUP:="video"
$ sudo adduser <current user> video
Installation of RGBDemo
download from : https://github.com/rgbdemo/rgbdemo