Ubuntu16桌面版安装realsense SDK
1.下载realsense master(官网下载连接:https://github.com/IntelRealSense/librealsense)
2.解压realsense master至home下,打开文件夹并右键选择打开终端
3.安装教程官网:https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
总结为以下几步:
3.1 移除传感器
3.2 在打开的终端中键入:sudo apt-get install git libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev
Ubuntu 16版键入:sudo apt-get install libglfw3-dev
3.3 键入:./scripts/setup_udev_rules.sh
3.4 键入: ./scripts/patch-realsense-ubuntu-lts.sh
3.5 键入:echo ‘hid_sensor_custom’ | sudo tee -a /etc/modules
3.6 键入:mkdir build && cd build
3.7 键入:cmake …/
3.8 键入:cmake …/ -DBUILD_EXAMPLES=true
3.9 键入:sudo make uninstall && make clean && make && sudo make install
4.运行:home/realsense master/build/examples/captrue/rs-captrue
安装过程中遇到的问题:
问题1:执行3.4过程中遇到:Failed to unload module videobuf2_core #2846
Failed to insert the patched module. Operation is aborted, the original module is restored
解决办法:分别键入:sudo modprobe -r uvcvideo
sudo modprobe -r videobuf2_core
sudo modprobe -r videodev
再次执行3.4语句。
问题2:执行3.4过程中在解决问题一后遇到:ERROR:Required key not available
解决办法:分别键入:sudo apt install mokutil
sudo mokutil --disable-validation
执行该语句后终端需要设置8-16位密码,然后重启电脑,电脑出现蓝屏,按下任意键出现以下选择:
- Continue boot
- Change Secure Boot state
- Enroll key from disk
- Enroll hash from disk
选择Change Secure Boot state ,接下来根据要求输入密码后进入Disable Secure Boot选择界面,选择Yes
回车后选择reboot,重新进入系统。
再次执行3.4语句。
问题3:Failed to insert the patched module. Operation is aborted, the original module is restored
Verify that the current kernel version is aligned to the patched module version
The original videodev module was reloaded
可能是安装其他软件时进行过修补内核,跳过即可
问题4:执行3.7和3.8语句时可能出现download error或cmake error一般都是网络的原因,多执行几次就好。
问题5:某些计算机自带摄像头可能是深度摄像头,最好在安装前禁用摄像头。
禁用步骤:sudo lsmod | grep uvcvideo
sudo nano /etc/modprobe.d/blacklist.conf
此时将光标移至终端窗口最下端键入:##Disable webcam.
blacklist uvcvideo
##Disable webcam
保存并退出,重启电脑。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)