Ubuntu 16.04/18.04 LTS (Linux Kernels 4.4, 4.8 ,4.10, 4.13, 4.15 and 4.16)
Linux yubao-Z370M-S01 4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Important notes:
Refer Linux Ubuntu Installation
Error Description:
make: Leaving directory '/home/yubao/GitProject/librealsense-2.19.0/ubuntu-xenial-hwe'
Patched kernels modules were created successfully
Replacing videodev :
Module videodev is used by videobuf2_core
Unloading dependency videobuf2_core
modprobe: FATAL: Module videobuf2_core is in use.
Failed to unload module videobuf2_core. error type 1 . Operation is aborted
yubao@yubao-Z370M-S01:~/GitProject/librealsense-2.19.0$
Solution:
yubao@yubao-Z370M-S01:~/catkin_ws$ lsmod | grep videobuf2_core
videobuf2_core 40960 2 videobuf2_v4l2,uvcvideo
videodev 180224 3 videobuf2_core,videobuf2_v4l2,uvcvideo
yubao@yubao-Z370M-S01:~/catkin_ws$ sudo modprobe -r uvcvideo
yubao@yubao-Z370M-S01:~/catkin_ws$ lsmod | grep videobuf2_core
mkdir build && cd build
cmake ../ -DBUILD_EXAMPLES=true -DCMAKE_BUILD_TYPE=Release
make && sudo make install
sudo make uninstall && make clean && make && sudo make install
Remove all RealSense™ SDK-related packages with:
dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge
Reconnect the Intel RealSense depth camera and run:
realsense-viewer
to verify the installation.
If not working, reboot your PC and try again.
roslaunch realsense2_camera rs_camera.launch filters:=pointcloud
roslaunch realsense2_camera rs_camera.launch
wiki
refer
cd build
cmake-gui ..
make
cp _out/librs2driver.so ~/GitProject/OpenNI2/Bin/x64-Release/OpenNI2/Drivers/
cp librealsense2.so ~/GitProject/OpenNI2/Bin/x64-Release/OpenNI2/Drivers/
./SimpleViewer
./NiViewer