ubuntu 14.04 + openni + primesense + xtion pro live

  hello everyone! as i have mentioned, i am using ubuntu these days for the sake lf using gpu computation. this paper i will introduce the process of using openni and primesense and stion pro live. indeed this drives me mad and i almost give up. luckily i find the solution in the end. now i will tell you how to wet it up in ubuntu 14.04 .

 the result is as following:


you must remember that openni1 nad 2 is different . in my trail i used openni 1.5.4.2(link:   https://github.com/OpenNI/OpenNI, and openni2 won't work for me! )

for primesense i used 5.1.2.1(link : https://github.com/PrimeSense/Sensor ). ok,now we begin our installion( on i almost forget, if you have installed them , you have to uninstall them at first. and if you follow my instructions but installed wrongly, dont worry, it is very easy to uninstall and i will tell you later)

the detailed steps:

1  install prerequirements:


sudo apt-get install -y g++ git python libusb-1.0-0-dev libudev-dev freeglut3-dev doxygen graphviz openjdk-6-jdk


2  .install openni.

unzip your file and go to 


Platform/Linux/CreateRedist

and run

./RedistMaker

now Go into the directory: "Platform/Linux/Redist

in my case, how i am in  direcotyr called "OpenNI-Bin-Dev-Linux-x64-v1.5.7.10", this may be different for you .dont worry and that is not important. go deeper and run

sudo ./install.sh
The install script copies key files to the following location:
		       Libs into: /usr/lib
		       Bins into: /usr/bin
		       Includes into: /usr/include/ni
		       Config files into: /var/lib/ni

and if you want to uninstall it, just run
sudo ./install.sh -u

isnt this easy??

3 install openni


Go into the directory: "Platform/Linux/CreateRedist".
		   Run the script: "./RedistMaker"

Go into the directory: "Platform/Linux/Redist".
in my case, how i am in  direcotyr called "OpenNI-Bin-Dev-Linux-x64-v1.5.7.10", this may be different for you .dont worry and that is not important. go deeper and 
 Run the script:

"sudo ./install.sh"
The install script copies key files to the following location:
		       Libs into: /usr/lib
		       Bins into: /usr/bin
		       Config files into: /usr/etc/primesense
		       USB rules into: /etc/udev/rules.d 
		       Logs will be created in: /var/log/primesense

the uninstall step is the same as opennni

that's end. now just go into your openni samples directory and run any sample. for example, i  run ./NiViewer  and you will see picture in the beginning








發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章