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