1、首先从下载librealsense-master,
2、按照说明安装,/blob/master/doc/installation.md
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get install --install-recommends linux-generic-lts-xenial xserver-xorg-core-lts-xenial xserver-xorg-lts-xenial xserver-xorg-video-all-lts-xenial xserver-xorg-input-all-lts-xenial libwayland-egl1-mesa-lts-xenial
sudo update-grub && sudo reboot
依次按3次esc进入grup引导启动项,Grub2 Boot Menu -> "Advanced Options for Ubuntu" -> Select the kernel version,确保uname -r >= 4.4.0-50,,选择4.4.0版唯一支持SR300,4.4.0和4.8.0都可以支持R200
sudo apt-get install libusb-1.0-0-dev pkg-config
sudo apt-get install libglfw3-dev
3、进入到librealsense-master目录,运行
mkdir build && cd build
cmake ../ -DBUILD_EXAMPLES=true
make && sudo make install
安装好的目录有The library will be installed in /usr/local/lib, header files in /usr/local/include
The demos, tutorials and tests will located in /usr/local/bin.
4、Video4Linux backend preparation,进入到安装源文件目录(build的上层目录)
sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && udevadm trigger
sudo apt-get install libssl-dev
5、./scripts/patch-realsense-ubuntu-xenial.sh
6、检查安装sudo dmesg | tail -n 50
阅读(790) | 评论(0) | 转发(0) |