Ubuntu14.04 Installing Librealsense (camera R200)

Source: Internet
Author: User
Tags dmesg

Before the initial installation, a lot of information was checked. Later found that the official website is the most reliable documents.

Refer to the '/doc/installation.md' note on GitHub:

Now the Librealsense Master branch on GitHub is the 2.0 version of the SDK, my webcam is R200, the recommended installation should be version 1.0, under Legacy Branch. This need to pay extra attention, I just because I did not pay attention to read instructions, came up on the Mater Branch under the 2.0, the results can not open my R200. A issue, only to know that the pack 1.0


installation process: to upgrade the Ubuntu14.04 kernel, make sure that you are at least 4.4.50

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
For some low-version kernels, the above three commands are not sufficient to ensure that the kernel can be successfully upgraded and then run:
sudo apt-get install--install-recommends linux-generic-lts-xenial xserver-xorg-core-lts-xenial Xserver-xorg-lts-xenial xserver-xorg-video-all-lts-xenial xserver-xorg-input-all-lts-xenial Libwayland-egl1-mesa-lts-xenial
Remember the version of the kernel that was installed, such as the one I installed here is 4.4.0-112-generic (this step was done once during the installation of version 2.0, then upgraded to 4.4.0-111-generic) and then restarted.
sudo update-grub && sudo reboot
Select the advanced option when restarting, choose 4.4.0-112-generic to run after the boot entry system
Uname-r
Confirm the kernel version
Install dependencies

sudo apt-get install Libusb-1.0-0-dev pkg-config
Download the files under the Legacy branch and unzip the folder directory into the extracted folders. ` ~/downloads/librealsense-legacy/`
./scripts/install_glfw3.sh
Install the project ...
--Install configuration: ""
--up-to-date:/USR/LOCAL/INCLUDE/GLFW
--Installing:/usr/local/include/glfw/ Glfw3.h--
Installing:/usr/local/include/glfw/glfw3native.h
--Installing:/usr/local/lib/cmake/glfw3/ Glfw3config.cmake--
Installing:/usr/local/lib/cmake/glfw3/glfw3configversion.cmake
--Installing:/usr/ Local/lib/cmake/glfw3/glfw3targets.cmake
--Installing:/usr/local/lib/cmake/glfw3/ Glfw3targets-noconfig.cmake--
Installing:/usr/local/lib/pkgconfig/glfw3.pc
--Installing:/usr/local/lib /libglfw.so.3.2--
up-to-date:/usr/local/lib/libglfw.so.3
--Up-to-date:/usr/local/lib/libglfw.so Done
Installing glfw3!
Above is the result of installing GLFW3

Compiling and installing

mkdir Build && CD Build

CMake. /
CMake. /-dbuild_examples=true
Make && sudo make install
Installation Location: library file:/usr/local/lib header file:/usr/local/include demos, tutorials and tests:/usr/local/bin

Installing V4L

sudo cp config/99-realsense-libusb.rules/etc/udev/rules.d/
sudo udevadm control--reload-rules && udevadm Trigger

sudo apt-get install Libssl-dev
# go back to the Unpacked folder directory and run the following script
# Note: When running this script, unplug the camera
./scripts/patch-realsense-ubuntu-xenial.sh
Script Run Result:

Patched kernel module created successfully

Handle uvcvideo:
module is resident, unloading ...  Succeeded. 
Applying the patched module ...  Succeeded


Script has completed successfully. Please consult the installation guide for further instruction.


Run the following command to check the results of the script above

sudo dmesg | Tail-n 50
The results are as follows:

[duyl@ ~/downloads/librealsense-legacy]14:38$ sudo dmesg | tail-n [2181.959700] USB 1-3.3:ep 0x82-rounding interval to microframes, ep Desc says Microframes [2189.735 339] systemd-hostnamed[5791]: Warning:nss-myhostname is not installed. Changing the local hostname might make it unresolveable.
Please install nss-myhostname! [2286.338849] USB 1-3.3:reset low-speed USB device number 4 using XHCI_HCD [2286.617633] USB 1-3.3:ep 0x81-rounding Interval to microframes, ep Desc says-Microframes [2286.617656] USB 1-3.3:ep 0x82-rounding interval to Microf Rames, ep Desc says Microframes [2286.902883] USB 1-3.3:reset low-speed USB device number 4 using XHCI_HCD [2287.181 013] USB 1-3.3:ep 0x81-rounding interval to microframes, ep Desc says Microframes [2287.181019] USB 1-3.3:ep 0x  82-rounding Interval to microframes, ep Desc says Microframes [2436.613356] USB 1-3.3:reset low-speed USB Device Number 4 using XHCI_HCD [2436.891560] USB 1-3.3: EP 0x81-rounding interval to Microframes, ep Desc says Microframes [2436.891592] USB 1-3.3:ep 0x82-rounding Interval to microframes, ep Desc says Microframes [2437.173328] USB 1-3.3:reset low-speed USB device number 4 usin G XHCI_HCD [2437.451966] USB 1-3.3:ep 0x81-rounding interval to microframes, ep Desc says Microframes [2437.451  989] USB 1-3.3:ep 0x82-rounding interval to microframes, ep Desc says Microframes [2636.552369] USB 1-3.3:reset Low-speed USB Device number 4 using XHCI_HCD [2636.830929] USB 1-3.3:ep 0x81-rounding interval to Microframes, EP Desc says Microframes [2636.830954] USB 1-3.3:ep 0x82-rounding interval to microframes, ep Desc says Microfra MES [2637.112289] USB 1-3.3:reset low-speed USB device number 4 using XHCI_HCD [2637.391121] USB 1-3.3:ep 0x81-round ing interval to microframes, ep Desc says-Microframes [2637.391144] USB 1-3.3:ep 0x82-rounding interval to + mi Croframes, EP Desc saysmicroframes [3003.917809] USB 1-3.3:reset low-speed USB device number 4 using XHCI_HCD [3004.196396] USB 1-3.3:EP 0 X81-rounding Interval to microframes, ep Desc says Microframes [3004.196423] USB 1-3.3:ep 0x82-rounding Interv Al to Microframes, ep Desc says Microframes [3004.461784] USB 1-3.3:reset low-speed USB device number 4 using XHCI _HCD [3004.740113] USB 1-3.3:ep 0x81-rounding interval to microframes, ep Desc says [Microframes] U SB 1-3.3:ep 0x82-rounding Interval to microframes, ep Desc says Microframes [3095.311287] USB 1-3.3:reset low-s Peed USB Device number 4 using XHCI_HCD [3095.589577] USB 1-3.3:ep 0x81-rounding interval to Microframes, EP Desc s Ays microframes [3095.589604] USB 1-3.3:ep 0x82-rounding interval to microframes, ep Desc says Microframes [ 3095.847286] USB 1-3.4:reset low-speed USB device number 6 using XHCI_HCD [3096.125293] USB 1-3.4:ep 0x81-rounding in Terval to Microframes, ep Desc says Microframes [3096.383295] USB 1-3.3:reset low-speed USB device number 4 using XHCI_HCD [3096.661899] USB 1-3.3:ep 0x81-rounding interval to microframes, ep Desc says Microframes [3096.661926] USB 1-3.3:ep 0x82- Rounding Interval to microframes, ep Desc says Microframes [3158.971936] usbcore:deregistering interface Driver UV Cvideo [3159.295591] media:linux media interface:v0.10 [3159.305369] Linux video capture interface:v2.00 [3159.31335 0] Uvcvideo:module verification failed:signature and/or required key missing-tainting kernel [3159.313808] Uvcvideo: Found UVC 1.00 Device Integrated Webcam (1BCF:2C01) [3159.321674] input:integrated Webcam as/devices/pci0000:00/0000:00 : 14.0/usb1/1-5/1-5:1.0/input/input21 [3159.321970] usbcore:registered New Interface driver Uvcvideo [3159.321976] USB V Ideo Class Driver (1.1.1) [3211.504872] USB 1-3.4:reset low-speed USB device number 6 using XHCI_HCD [3211.783042] usb 1-3.4:ep 0x81-roundinG Interval to microframes, ep Desc says Microframes [3216.913056] USB 1-3.3:reset low-speed USB Device number 4 US ing XHCI_HCD [3217.191717] USB 1-3.3:ep 0x81-rounding interval to microframes, ep Desc says Microframes [3217.1 91745] USB 1-3.3:ep 0x82-rounding interval to microframes, ep Desc says Microframes [3217.473159] USB 1-3.3:res ET low-speed USB device number 4 using XHCI_HCD [3217.751717] USB 1-3.3:ep 0x81-rounding interval to Microframes, E P desc says microframes [3217.751741] USB 1-3.3:ep 0x82-rounding interval to microframes, ep Desc says Microf  Rames [duyl@ ~/downloads/librealsense-legacy]14:39$
Note that the countdown line shows: usbcore:registered new interface Driver Uvcvideo


Connect the camera and run the Cpp-capture in the/usr/local/bin/directory.


The installation was successful.


Note:

The first installation error, Ann became SDK2.0, later Loaded 1.0, but did not put 2.0 first uninstall, or a little problem.

Go to the 2.0SDK folder under the Build folder and run

sudo make uninstall make clean
Clean up the front, and then it's all right.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.