注册公钥
sudo apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
ubuntu18.04 库地址
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u
安装SDK
git clone https://github.com/IntelRealSense/librealsense
git clone https://gitee.com/kay2020/librealsense
##构建librealsense二进制文件和核心模块的核心软件包 sudo apt-get install git libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev #Distribution-specific packages: sudo apt-get install libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev #ubuntu18 环境 sudo apt-get install librealsense2-dkms sudo apt-get install librealsense2-utils # 安装以下内容会直接安装最新版 sudo apt-get install librealsense2-dev sudo apt-get install librealsense2-dbg
cd librealsense
./scripts/setup_udev_rules.sh
./scripts/patch-realsense-ubuntu-lts.sh
编译
mkdir build cd build cmake ../ -DBUILD_EXAMPLES=true make -j4 sudo make install
测试
realsense-viewer
参考
https://blog.csdn.net/jiangsala/article/details/119359711