Mac OS X 上的 lib-usb 和 libfreenect2

lib-usb and libfreenect2 on Mac OS X

我在 MacOS X Yosemite (10.10.5) 上工作。我正在尝试在 Mac OS X

上安装 libfreenect2

当我从安装页面中给出的 libfreenect2. I followed all the instructions 的构建目录执行 "cmake .." 时。当我从构建目录执行命令 "cmake .." 时,我收到此错误消息:

-- Checking for module 'libusb-1.0'
--   No package 'libusb-1.0' found
CMake Error at /Users/Yvanou/anaconda/share/cmake-3.8/Modules/FindPkgConfig.cmake:416 (message):
  A required package was not found

然而,我使用 Homebrew 正确安装了 libusb 1.6.4。

这是完整的日志:

Yvanou-MacBookPro2015:build Yvanou$ cmake ..
-- using tinythread as threading library
-- Checking for module 'libusb-1.0'
--   No package 'libusb-1.0' found
CMake Error at /Users/Yvanou/anaconda/share/cmake-3.8/Modules/FindPkgConfig.cmake:416 (message):
  A required package was not found
Call Stack (most recent call first):
  /Users/Yvanou/anaconda/share/cmake-3.8/Modules/FindPkgConfig.cmake:589 (_pkg_check_modules_internal)
  cmake_modules/FindLibUSB.cmake:21 (PKG_CHECK_MODULES)
  CMakeLists.txt:93 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/Users/Yvanou/Documents/libfreenect2/build/CMakeFiles/CMakeOutput.log".

此外,我还使用 conda 作为包管理器

一些想法可以帮助我?

非常感谢您的宝贵时间和宝贵帮助!

好的,我终于找到我的错误所在了。我使用 Anaconda 环境,所以所有包都必须安装在 Anaconda 文件夹下。我在 Anaconda 的 /bin 文件夹中安装了 libusb 1.0.21 并且没有错误消息了!!