1 OpenNI2:
2
sudo apt-get install g++
sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev (安装 libusb 包)
sudo apt-get install libudev-dev(安装 udev 包)
sudo apt-get install vim(文本编辑器安装包)
sudo apt-get install freeglut3 freeglut3-dev (OpenGL 图形接口安装包)
3 Java SDK
sudo gedit /etc/profile
添加
export JAVA_HOME=/xxx/xxx/jdk-9.0.4
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
保存后source /etc/profile
java -version 验证
4 编译OpenNI2
cd xxx/OpenNI2/
make
也可进入xxx/OpenNI2/Samples/SimpleRead后make
5 识别设备
lsusb
如果有2bc5即可。
6 无法找到设备时
copy
下的liborbbec.so和orbbec.ini到OpenNI2/bin/xxx/OpenNI2/Drivers/
7 运行demo
进入xxx//OpenNI2-master/Bin/x64-Release,运行
sudo ./SimpleRead
sudo ./SimpleViewer
阅读(2678) | 评论(0) | 转发(0) |