博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
install openni2 on ubuntu
阅读量:4041 次
发布时间:2019-05-24

本文共 1580 字,大约阅读时间需要 5 分钟。

1. 

git clone https://github.com/occipital/OpenNI2.git

2. 

make -j${nproc}

注意这步可以省掉

3.

go to ./Packaging

ReleaseVersion.py x64

4. go to ./Final

extract OpenNI-Linux-x64-2.2.tar.bz2 then go into it

 

or go to /home/seamanj/Software/OpenNI2/Packaging/OpenNI-Linux-x64-2.2 directly.

 

sudo ./install.sh

5.

cat OpenNIDevEnvironment >> ~/.bashrcsource ~/.bashrc

cmake是从~/.bashrc读取环境, 而cmake-gui是从~/.profile里面读取()

所以同样也写到~/.profile里面去

cat OpenNIDevEnvironment >> ~/.profile

source命令对.profile文件不起作用, 得log out才行.

 

(

After changing the .profile file, you have to logout from your account and login, then it will be sourced once automatically.

Also make sure these file does not exist in your home directory:

~/.bash_profile~/.bash_login

If you've got these files, the .profile will be ignored.

)

 

 

updated on 22/Oct/2017

 

If you want to run /home/seamanj/OpenNI2/Bin/x64-Release/NiViewer, you need build freelibnect2 first, and then copy all the generated libs into /home/seamanj/OpenNI2/Bin/x64-Release/OpenNI2/Drivers

 

As to how to build libfreenect2 on ubuntu, please see :http://blog.csdn.net/seamanj/article/details/78314798

 

updated on 1.11.2018

 

don't forget to copy libfreenect2's drivers to

/home/seamanj/Software/OpenNI2/Packaging/Final/OpenNI-Linux-x64-2.2/Redist/OpenNI2/Drivers

 

Updated on 2.5.2019

 

s_XN_OK_result’ defined but not used [-Werror=unused-variable]

/home/seamanj/Software/OpenNI2/ThirdParty/PSCommon/BuildSystem/CommonCppMakefile

第76行

CFLAGS += -Werror -Wno-unused-variable -Wno-error=unused-local-typedefs

 

undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'

 

你可能感兴趣的文章
9、VUE面经
查看>>
关于进制转换的具体实现代码
查看>>
Golang 数据可视化利器 go-echarts ,实际使用
查看>>
mysql 跨机器查询,使用dblink
查看>>
mysql5.6.34 升级到mysql5.7.32
查看>>
dba 常用查询
查看>>
Oracle 异机恢复
查看>>
Oracle 12C DG 搭建(RAC-RAC/RAC-单机)
查看>>
Truncate 表之恢复
查看>>
Oracle DG failover 后恢复
查看>>
mysql 主从同步配置
查看>>
Oracle Database 12c 新特性:RAC Cluster Hub Node 和 Leaf Node
查看>>
Understanding Oracle Flex Clusters
查看>>
Oracle 12.2.0.1 新增的与Oracle数据库性能相关的功能
查看>>
Oracle 12C R2-新特性-多租户:支持本地UNDO模式
查看>>
oracle hanganalyze和systemstate使用测试
查看>>
Oracle Database 12c第2版(12.2)中的自动列表分区
查看>>
Oracle Database 12c第2版(12.2)中的只读分区和子分区
查看>>
12.2: ORA-28040 Followed by ORA-1017 When Client is Under Version 12
查看>>
ORA-01031 TOAD 连接到12c数据库
查看>>