下载源码
git clone https://github.com/IntelRealSense/librealsense.git
进入源码目录
cd librealsense
安装依赖(移除任何相机)
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get install git libssl-dev libusb-1.0-0-dev libudev-dev pkg-config libgtk-3-dev -y
sudo apt-get install git wget cmake build-essential
sudo apt-get install libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev at
从libalsense根目录运行Intel Realsense权限脚本
./scripts/setup_udev_rules.sh
编译安装
mkdir build && cd build
cmake …/ -DBUILD_EXAMPLES=true -DFORCE_RSUSB_BACKEND=true -DCMAKE_BUILD_TYPE=release -DBUILD_GRAPHICAL_EXAMPLES=true
内存大运行这个
sudo make uninstall && make clean && make -j8 && sudo make install
内存小运行这个
sudo make uninstall && make clean && make && sudo make install