Using OpenNI 2.2 Beta on OS X

Here’s how I go the samples working. First install OpenNI itself:

Run sudo ./install.sh. You will not see any output. This is normal.

Next you’ll need a driver for the Kinect:

Run ./waf configure build. You should now have a build directory withlibFreenectDriver.dylib in it.

Copy that file into Redist/OpenNI2/Drivers/. If you want to try the samples then also copy the file into Samples/Bin/OpenNI2/Drivers.

To run an example:

cd Samples/Bin

./ClosestPointViewer

To use the OpenNI in an XCode project, for example in combination with openFrameworks:

Create a new project. (Use the project generator if you are working with oF.)

Click the name of the project in the left sidebar and make sure ‘Project’ is selected in the main panel.

Look for the setting ‘Header Search Paths’ and click to edit. Click the plus sign and add the path to ‘Include’ directory from OpenNI. For example, I installed OpenNI in/Applications/OpenNI-MacOSX-x64-2.2, so my path is /Applications/OpenNI-MacOSX-x64-2.2/Include.

Next, copy libOpenNI2.dylib from the OpenNI Redist folder to the folder that will contain your binary (the compiled version of your project). If you are working with oF then this is the bin folder inside your project.

Finally, add #include "OpenNI.h" add the start of your code. (In oF: this would be in testApp.h.

openni+linux+arm,openni2+mac相关推荐

  1. openni linux arm,OpenNI2 Arm-Linux下的安装配置

    操作系统:Ubuntu14.04 开发板:Tegra K1(arm cortex A8) 如果已经有安装包文件OpenNI-Linux-Arm-2.2.tar.bz2的,请直接跳到解包安装步骤. 安装 ...

  2. openni+linux+arm,Jetson tk1 安装OpenNI 1 +Xtion Pro +NiTE

    参考: http://blog.csdn.net/xiabodan/article/details/44496871 序: 由于第三方库 NiTE2.0 不支持 arm 架构的处理器,因此需要安装Op ...

  3. openni+linux+arm,基于xtion树莓派B+和树莓派2的OpenNI移植

    树莓派默认是采用英文字库的,而且系统里没有预装中文字库,所以即使你在locale中改成中文,也不会显示中文,只会显示一堆方块.因此需要我们手动来安装中文字体 准备工作 更新和安装支持库 sudo ap ...

  4. openni linux arm,Ubuntu下安装配置OpenNI实战笔记

    1. 库OpenNI SensorKinect NITE的安装 (1)OpenNI step1 :下载 OpenNI库文件 选择"OpenNI Binaries"->&quo ...

  5. cgo linux arm,Golang交叉编译各个平台的二进制文件

    熟悉golang的人都知道,golang交叉编译很简单的,只要设置几个环境变量就可以了 # mac上编译linux和windows二进制 CGO_ENABLED=0 GOOS=linux GOARCH ...

  6. Linux下修改MAC地址总结

    偶尔会用到这个知识点,久了不用又会记不住,所以记之,方便以后查询. Linux下修改MAC地址 方法一: 1.关闭网卡设备 ifconfig eth0 down 2.修改MAC地址 ifconfig ...

  7. microsoft excel 正在等待其他某个应用程序_浅谈应该购买英特尔Mac还是等待购买基于Arm的Mac...

    苹果在今年的全球开发者大会上宣布,打算从2020年末开始从英特尔处理器过渡到由自己的苹果硅芯片提供支持的Mac.苹果表示,通过使用自己的基于Arm的处理器,它将能够制造出更好的Mac.这将带来更好的性 ...

  8. arch linux 安装 arm,给树莓派安装 Arch Linux ARM

    一时兴起入手了一个树莓派,购买的套餐中附带的 SD 卡里已经安装了 Raspberry Pi OS with desktop,但是玩了一小会儿后,觉得树莓派配不上身价比它更高的键盘和显示器(误),所以 ...

  9. Linux_arm_启动_c语言部分详解,[原创]Linux arm 启动 c语言部分详解第四讲

    Linux arm启动c语言部分详解第四讲(from setup_per_cpu_areas();) Written by leeming 上面的setup_arch花了我们大量的篇幅,现在我们要继续 ...

最新文章

  1. 【python】一个目录里面多个python程序文件,统计一下里面有多少行代码。即分别列出:代码、空行、注释的行数。
  2. JavaScript获取当前根目录
  3. 在windows中对torch1.7.1版本环境配置
  4. Linux下修改命令提示符
  5. Java爬虫之利用Jsoup自制简单的搜索引擎
  6. create-react-app的template和assembed resource
  7. LuoguP1268树的重量【构造/思维】By cellur925
  8. 743. 网络延迟时间
  9. 教你用Python 编写 Hadoop MapReduce 程序
  10. Curvilinear structure detections
  11. oracle主键id自动自增_Oracle主键ID设置自动增长(序列+触发器)
  12. 根据select的选项不同跳转到不同的页面
  13. Intellij IDEA创建maven项目无java文件问题
  14. 2022届计算机毕业论文(设计)学生选题参考合集推荐收藏
  15. sql 根据省份证号码提取年龄
  16. python数据分析的例子_Python数据分析案例—商圈客流量特征分析
  17. DPDK Release 21.02
  18. 传统数据处理技术如何与大数据处理技术有机结合
  19. 三相桥式全控整流电路simulink仿真_变频器为什么必须整流?整流单元原理图解
  20. python切比雪夫滤波器_[Matlab]切比雪夫Ⅰ型滤波器设计:低通、高通、带通和带阻...

热门文章

  1. Idea中的Facets 与 Artifacts
  2. idea创建maven报错 Error adding module to project: null
  3. P4197 Peaks
  4. Dependency‘org.framework:spring-webmvc:’ not found
  5. Luogu p2181
  6. C语言计算水仙花数的两种方法
  7. csdn编程社区python例题_鼠年腊月二十八,我发现了 CSDN 一个惊人通道,如何免费日增 1000+ 粉丝...
  8. 精彩回顾 | 出海同学会 中文播客节目合辑
  9. 高速公路预制梁场建设案例(附方案文本)
  10. 香港科技大学(广州)系统枢纽手册