Ubuntu16.04下Realsense环境搭建

1. 在github上下载源码

git clone https://github.com/IntelRealSense/librealsense.git

2. 安装必须环境

sudo apt-get install libusb-1.0-0-dev libglfw3-dev libgtk-3-dev

echo 'deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main' | sudo tee /etc/apt/sources.list.d/realsense-public.list

sudo apt-key adv --keyserver keys.gnupg.net --recv-key 6F3EFCDE

sudo apt-get update

sudo apt-get install librealsense2-dkms
sudo apt-get install librealsense2-utils

如果上面安装成功,输入

modinfo uvcvideo | grep "version:" 

会打印包含的realsense

3. 编译安装

cd librealsense
mkdir build
cd build
cmake ..
make -j8
sudo make install

4. 测试

插上Realsense然后

 cd example/capture
 ./rs-caputure

5. 更多参考

https://github.com/siatwangmin/linux_env/blob/master/NUC/pingan_nuc_install.sh

你可能感兴趣的:(linux)