一.介绍
最近在拿PCL库写代码,不太想开虚拟机,所以就研究下怎么在macOS下安装,发现缺了OpenNI以及OpenNI2的依赖库,所以研究下怎么安装。
二.安装
编译的话实在是下下之选,因为实在麻烦,最方便的还是homebrew,不过openni原来在homebrew的science的tap里,这个tap现在已经被废弃了,这就很气,研究了下发现官方还推荐了一个替代的。
These formulae provided software tailored to scientific endeavours.
This tap was deprecated because it had different goals from the wider Homebrew organisation (e.g. Linuxbrew CI/support). All widely used, buildable formulae were migrated to homebrew/core.
If you wish to migrate other widely used formulae to Homebrew/homebrew-core please submit a pull request there.
You may be interested in the brewsci/bio and brewsci/science taps.
所以就去 brewsci/science —> https://github.com/brewsci/homebrew-science 看看发现还在维护,也有OpenNI,这就很棒棒
brew tap brewsci/science brew install openni brew install openni2
然后根据提示添加下环境变量,一切OK
文章评论
如果不麻烦的话,能否留下篇关于Mac创建OpenNi工程的文章,如果使用Cmake完成的就再好不过了。