Mac OS X上的lib-usb和libfreenect2

时间:2017-07-23 13:53:05

标签: macos homebrew packages libusb libfreenect2

我在MacOS X Yosemite(10.10.5)上工作。我试图在Mac OS X上安装libfreenect2

当我做" cmake .."来自libfreenect2的构建目录。我按照安装页面中给出的所有instructions进行了操作。当我执行命令" 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 作为包管理器

有些想法是为了帮助我?

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

1 个答案:

答案 0 :(得分:0)

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