Linux/Ubuntu16.04 安装RealSense SDK 2.0

RealSense实感-Intel

安装环境:Ubuntu 16.04, 需要有USB3.0

不是16.04的系统,安装过程不同。更多的安装细节,见参考资料。

1.更新Ubuntu以及BOOT

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo update-grub && sudo reboot

Interrupt the boot process at Grub2 Boot Menu -> "Advanced Options for Ubuntu" and select the kernel version installed in the previous step. Press and hold SHIFT if the Boot menu is not presented.

  • Complete the boot, login and verify that a supported kernel version (4.4.0-.., 4.8.0-.., 4.10.0-.. , 4.13.0-..or 4.15.0-.. as of May 2018) is in place with uname -r

2.在github上下载好librealsense ,并在终端进入librealsense 根目录。

3.安装相关库

sudo apt-get install git libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev

 

  • Ubuntu 14 or when running of Ubuntu 16.04 live-disk:
    sudo apt-get install
    ./scripts/install_glfw3.sh

  • Ubuntu 16:
    sudo apt-get install libglfw3-dev

  • Ubuntu 18:
    sudo apt-get install libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev

 4.去CMAKE官网下载3.8以上的版本。

5.安装位于librealsense根目录下的脚本。

sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/ 

sudo udevadm control --reload-rules && udevadm trigger

 6.运行librealsense中的脚本

./scripts/patch-realsense-ubuntu-lts.sh

 7.Build SDK(在librealsense根目录中运行下述指令)

mkdir build && cd build
cmake ../ -DBUILD_EXAMPLES=true
sudo make uninstall && make clean && make && sudo make install

 The shared object will be installed in /usr/local/lib, header files in /usr/local/include.

The binary demos, tutorials and test files will be copied into /usr/local/bin

8.连接RealSense设备,并运行示例程序。 

参考资料:

Linux/Ubuntu - RealSense SDK 2.0 Build Guide 

https://dev.intelrealsense.com/docs/compiling-librealsense-for-linux-ubuntu-guide?_ga=2.76896661.1254711068.1618654741-546236493.1617628196

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值