Rabu, 2 Disember 2015

Pemasangan Kinect

su -c 'add-apt-repository "deb http://archive.canonical.com/ lucid partner"'

su -c 'aptitude update'

su -c 'apt-get install git cmake build-essential libusb-1.0-0-dev'

su -c 'apt-get install freeglut3-dev libxmu-dev libxi-dev'

su -c 'aptitude install cython cython-dbg cython-doc cython3 cython3-dbg libpython3-dev libpython3.4-dev python3-dev python3.4-dev'

su -c 'aptitude install freeglut3-dev pkg-config'

su -c 'aptitude install openjdk-7-jdk'

su -c 'aptitude install doxygen mono-complete graphviz'

cd <projek dir>

git clone https://github.com/OpenKinect/libfreenect.git

cd libfreenect

su -c 'cp -rfvu platform/linux/udev/51-kinect.rules /etc/udev/rules.d/'

mkdir build

cd build

cmake -L .. -DBUILD_REDIST_PACKAGE=OFF -DCMAKE_BUILD_TYPE=release -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CPACK_DEB=ON -DBUILD_PYTHON=ON -DBUILD_CV=ON -DCYTHON_EXECUTABLE=/usr/bin/cython

make

su -c 'make install'

su -c 'ldconfig /usr/local/lib64/'

cd <projek dir>

git clone https://github.com/OpenNI/OpenNI

cd OpenNI/Platform/Linux/CreateRedist

su -c 'chmod +x ./RedistMaker'

./RedistMaker

cd ../Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.7.10/

su -c './install.sh'

cd <projek dir>

git clone https://github.com/avin2/SensorKinect