Note: macOS support for the full range of functionality offered by the SDK is not yet complete. If you need support for R200 or the ZR300, legacy librealsense offers a subset of SDK functionality.
Note: The T265 tracking module is not yet fully supported on macOS via librealsense. Support is planned to be added in a future release.
sudo xcode-select --install
or download XCode 6.0+ via the AppStorebrew install cmake libusb pkg-config
brew cask install apenngrace/vulkan/vulkan-sdk
Note librealsense requires CMake version 3.8+ that can also be obtained via the official CMake site.
mkdir build && cd build
sudo xcode-select --reset
cmake .. -DBUILD_EXAMPLES=true -DBUILD_WITH_OPENMP=false -DHWM_OVER_XU=false
make -j2
Note: On some Mac systems you might encounter
ld: library not found for -lusb-1.0
error (either in the terminal during make or in XCode) This can be worked-around by setting environment variable:/bin/launchctl setenv LIBRARY_PATH /usr/local/lib
Note: You can find more information about the available configuration options on this wiki page.
install_name_tool
install_name_tool -change /usr/local/opt/libusb/lib/libusb-1.0.0.dylib @rpath/libusb-1.0.0.dylib librealsense2.dylib
libusb-1.0.0.dylib
and librealsense2.dylib
to your application's Frameworks
folder此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。