Reference :
(document) https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
(csdn block) https://blog.csdn.net/qq_41839222/article/details/86503113
Platform :
cat /proc/version
- Ubuntu 16.04 LTS
- Kernel Version : 4.4.0-83-generic
- ROS : kinetic
Note :
Running RealSense Depth Cameras on Linux requires patching and inserting modified kernel drivers.
Some vendors choose to lock the kernel for modifications.
Unlocking this capability may requires to modify BIOS settings.
Tip :
- libgtk : GUI library
- udevadm : udev manager
Procedure (Unplug any connected Intel RealSense camera):
- install the core packages required to build librealsense binaries and the affected kernel modules
sudo apt-get install git libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev
- clone librealsense
git clone https://github.com/IntelRealSense/librealsense
cd librealsense
- install permission scripts (to make sure that RealSense can be recognized)
sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && udevadm trigger
- build and apply patched kernel module and check the patched
./scripts/patch-realsense-ubuntu-lts.sh
sudo dmesg | tail -n 50
ERROR: could not insert 'videodev': Unknown symbol in module, or unknown parameter (see dmesg)
Solved: Install kernel- 4.15.0
1.download blow three debs (amd64) from https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/
2.install debs
sudo dpkg -i *.deb
3.switch kernel version
cmake compile
mkdir build
cd build
cmake ../ -DBUILD_EXAMPLES=true
make
sudo make install