一.介绍

最近在拿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,这就很棒棒

然后根据提示添加下环境变量,一切OK