- echo 'deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main' | sudo tee /etc/apt/sources.list.d/realsense-public.list
It is recommended to backup /etc/apt/sources.list.d/realsense-public.list file in case of an upgrade.
- 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
The above two lines will deploy librealsense2 udev rules, kernel drivers, runtime library and executable demos and tools.
- sudo apt-get install librealsense2-dev
- sudo apt-get install librealsense2-dbg
With dev package installed, you can compile an application with librealsense using g++ -std=c++11 filename.cpp -lrealsense2 or an IDE of your choice.
- modinfo uvcvideo | grep "version:"
- sudo apt-get install libglfw3-dev
- unzip librealsense-2.10.3.zip
- cd librealsense-2.10.3 @ @ modify the main CMakelists.txt.
find the line "option(BUILD_CV_EXAMPLES "Build OpenCV examples" OFF)" change to "option(BUILD_CV_EXAMPLES "Build OpenCV examples" ON)"
- mkdir build
- cd build
- cmake ..
- make -j4