Advertisement
Guest User

InstallKinect

a guest
Feb 21st, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.42 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. $dossier=$PWD
  4. echo "dossier : $dossier"
  5. mkdir kinect/
  6. cd kinect/
  7.  
  8. # Installation des librairies nécéssaires
  9. sudo apt-get install libusb-1.0-0-dev freeglut3-dev g++
  10.  
  11. # Récuperation de Openni
  12. wget http://www.openni.org/wp-content/uploads/2012/12/OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar.zip
  13. unzip OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar.zip
  14. tar xjvf OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar.bz2
  15. mv OpenNI-Bin-Dev-Linux-x64-v1.5.4.0/ openni/
  16. rm OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar.zip
  17. rm OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar.bz2
  18.  
  19. # Récupération de Avin2 SensorSkin
  20. wget https://nodeload.github.com/avin2/SensorKinect/legacy.zip/unstable
  21. unzip unstable
  22. mv avin2-SensorKinect-15f1975/ sensorkin/
  23. rm unstable
  24.  
  25. # Récupération de NITE
  26. wget http://www.openni.org/wp-content/uploads/2012/12/NITE-Bin-Linux-x64-v1.5.2.21.tar.zip
  27. unzip NITE-Bin-Linux-x64-v1.5.2.21.tar.zip
  28. tar xjvf NITE-Bin-Linux-x64-v1.5.2.21.tar.bz2
  29. mv NITE-Bin-Dev-Linux-x64-v1.5.2.21/ nite/
  30. rm NITE-Bin-Linux-x64-v1.5.2.21.tar.zip
  31. rm NITE-Bin-Linux-x64-v1.5.2.21.tar.bz2
  32.  
  33. # Install OpenNi
  34. cd openni/
  35. chmod a+x install.sh
  36. sudo ./install.sh
  37. cd ../
  38.  
  39. # Install SensorSkin
  40. cd sensorkin/Platform/Linux/CreateRedist/
  41. chmod a+x RedistMaker
  42. sudo ./RedistMaker
  43. cd ../Redist/Sensor-Bin-Linux-x64-v5.1.2.1
  44. sudo chmod a+x install.sh
  45. sudo ./install.sh
  46. cd ../../../../../
  47.  
  48. # Install Nite
  49. cd nite/
  50. chmod a+x install.sh
  51. sudo ./install.sh
  52. cd ../
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement