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








评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值