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里面读取(https://blog.csdn.net/seamanj/article/details/89765299)

所以同样也写到~/.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]

https://github.com/occipital/OpenNI2/commit/70ef9c80f2f3e5efa7bdf047bec1aae6a22b954d#diff-8ead67e73e63941a802991cf7b1ff2b0

/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'

https://github.com/OpenNI/OpenNI2/commit/5b4809dec3f8b8e02f0dbadd213b5fe160104530

install openni2 on ubuntu相关推荐

  1. Install OpenCV-Python in Ubuntu

    之前安装python版opencv,需要下载whl文件,进行安装,这是在window环境下的: 安装opencv_python,下载whl包 安装系统python下的opencv 今天发现一个简单的方 ...

  2. 安装MongoDB Install MongoDB on Ubuntu

    MongoDB是一个基于分布式文件存储的数据库.由C++语言编写.旨在为WEB应用提供可扩展的高性能数据存储解决方案. MongoDB是一个介于关系数据库和 非关系数据库之间的产品,是非关系数据库当中 ...

  3. Command ‘ifconfig‘ not found, but can be installed with: sudo apt install net-tools VM Ubuntu 解决方案

    Command 'ifconfig' not found, but can be installed with: sudo apt install net-tools VM Ubuntu 解决方案 参 ...

  4. 从零安装 Caffe (Ubuntu 14.04) Install Caffe in Ubuntu 14.04 from Scratch

    Coldmooon's Blog HOME ABOUT CONTACT 从零安装 Caffe (Ubuntu 14.04) Install Caffe in Ubuntu 14.04 from Scr ...

  5. linux 机器之间 zssh, rz, sz互相传输 ( How to install zssh in Ubuntu 13.10 (Saucy))

    zssh 用法是: 像用ssh命令一样用zssh登录主机: 在命令输入状态中按下ctrl+2(@键)进入zssh状态: $sz 本地文件名 [可选参数-be:二进制方式] 上传文件完成(我在用时输出了 ...

  6. Install Java on Ubuntu server

    准备工作 a) 获得超级用户权限 关于超级用户访问权限的说明: 要将 Java 安装在系统级位置(例如 /usr/java),则必须以超级用户身份登录,从而获得必要的权限.如果您不具有超级用户访问权限 ...

  7. install freemind on ubuntu

    Freemind 这个软件应该不少人知道吧. 但是从网上看,很多人好像都说这个软件安装很麻烦. 我昨天在我的ubuntu edgy上装了一把.感觉很顺利的. 说一下步骤: 从[url=http://s ...

  8. Install Notepad++ on Ubuntu

    1.去掉红色下划线:插件->Dspellcheck->Settings->Advanced->Underline Style:Hidden 2.更换背景和前景色:设置-> ...

  9. Install Java 8 Ubuntu

    sudo add-apt-repository ppa:webupd8team/java sudo apt-get -y update sudo apt-get -y install oracle-j ...

最新文章

  1. 使用Markdown写数学公式打出百分号%
  2. 【Python基础】Python3十大经典错误及解决办法
  3. matlab图片矢量化,matlab图形矢量化解决方案
  4. bzoj 3668 数位DP
  5. Linux内核分析 - 网络[四补]:路由表补充
  6. 【转】IPSec的原理
  7. 认真分析mmap:what? why? how?
  8. html5 手机上传视频,【报Bug】手机h5端收不到选择视频以及上传视频回调
  9. Unity3D中脚本的执行顺序和编译顺序
  10. pdf文档怎么转换成word格式,pdf转word的方法
  11. 软件工程毕业设计课题(37)基于JAVA毕业设计JAVA核酸预约系统统毕设作品项目
  12. ubuntu 20.04 安装安卓app 使用 anbox
  13. 关于微信小程序在部分PC设备无法打开的问题
  14. Java BMI计算程序
  15. 我的世界服务器php插件制作教程,我的世界服务器citizen公民插件使用教程
  16. Python机器学习及实践——基础篇9(SVM回归)
  17. mac 更换jupyter的默认启动浏览器
  18. [WinBinder]让PHP调用windows原生能力的扩展
  19. linux查pcsd服务端口,Pacemaker管理工具中 pcs/pcsd 的关系
  20. MYC编译器源码之词法分析

热门文章

  1. HALCON 20.11:深度学习笔记(4)--- 网络和训练过程
  2. Qt同时加载多个项目
  3. 蜡染印花的跟踪印花与二次整纬
  4. 使用Spyder控制台(console)执行带参数脚本和带参数的debug模式
  5. 中科曙光服务器配置与虚拟系统安装等优化
  6. c++ 静态类成员函数(static member function) vs 名字空间 (namespace)
  7. 新浪微博客户端(27)-格式化工具条显示数字
  8. How to shrink disk for KVM
  9. shell解决服务器高可用
  10. android 如何开发出一款知名应用:构思篇