Install the Intel RealSense camera under Ubuntu
Recently, the laboratory bought an Intel RealSense camera, model is R200, installed long time, a start in accordance with the online Chinese tutorial to do the last step, is not generated executable file, and then dealing things a half-day, finally have a picture, write down this blog record.
Precautions
- System version: Ubuntu 14.04.5 LTS 64 bit
- kernel version: 4.4.0-57-generic
- USB3.0 Interface
The system version is 14.04.5, the other 14.04.X version in the installation steps are different, so please follow the version of the installation, if the version is not correct can also refer to the English installation tutorial includes each version.
Kernel to upgrade to 4.4.0 Stable version installation steps
1. First download the driver package through the terminal.
$ git clone https://github.com/IntelRealSense/librealsense
2. Go to the folder
$ CD librealsense/
3. Execution under Librealsense
$ sudo apt-get update && sudo apt-get upgrade
4. Installing libsub-1.0
$ sudo apt-get install Libusb-1.0-0-dev pkg-config
5. Install the GLFW3 (installation speed is based on speeds)
$ scripts/install_glfw3.sh
6. This step is more important in the English language tutorial there are two ways to use QT and a built-in compiler I chose to bring my own compilation or execute the following code under the Librealsense folder
$mkdir build
$CD build
$cmake:
$make && sudo make install
$cmake:-dbuild_examples:bool=true
$make && sudo make install
7. Install Video4linux (kernel driver for video devices in Linux) to make sure the camera is unplugged before installation
7.1sudo CP config/99-realsense-libusb.rules/etc/udev/rules.d/
7.2sudo udevadm control--reload-rules && Udevadm Trigger
The next step is to upgrade the kernel to 4.4, which is the upgrade code.
sudo apt-get install linux-generic-lts-wily
7.3 Running under the ubuntu14.04.5 version
./scripts/patch-uvcvideo-16.04.simple.sh
7.4sudo modprobe Uvcvideo
7.5sudo DMESG | Tail-n 50
So that the driver is loaded and then how to run the demo
8. Under the terminal, go to the Librealsense/build/examples file
$ CD Librealsense/build/examples
Executable file Demo
9. Execute $./cpp-capture and then there's the picture.
It's done. If there is a problem can leave a message to study together. I wish you a happy new year.