Ubuntu installation librealsense source

1.下载librealsense
https://github.com/IntelRealSense/librealsense/releases/tag/v2.16.5
2.sudo apt-get install git libssl-dev libusb-1.0-0-dev pkg-config libglfw3-dev

3. sudo apt-get install libgtk-3-dev
error:

The following packages have unmet dependencies:
 libgtk-3-dev : Depends: libgtk-3-0 (= 3.18.9-1ubuntu3) but 3.18.9-1ubuntu3.3 is to be installed

Solution:
1) modify the configuration in the Software Sources:
checking Important security updates (lucid-security), and Recommended updates (lucid-updates) Option
2) execute the update operation

sudo apt-get update

3) Reinstall:

sudo apt-get install libgtk-3-dev

4. Installation Video4Linux kernel driver at librealsense video folder, be careful not to plug the camera.
Building and applying patches kernel modules:

sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && udevadm trigger
./scripts/patch-realsense-ubuntu-lts.sh

(Ps: after performing discovery system have v4l2-core modules, this step is skipped)

After the prompts to complete, plug RealSense, executable sudo dmesg | tail -n 50see the results.

5. compile and install

mkdir build && cd build
cmake ../ -DBUILD_EXAMPLES=true
sudo make uninstall && make clean && make -j8 && sudo make install

After 6.install completed, the target file in / usr / local / bin in.
Entering librealsense / build / examples / capture, input rs-capture test.

7. Upgrading the firmware (not tested)
connected to the camera
the sudo APT-GET DFU the install
the sudo the install APT-GET-Intel-realsense DFU
lsusb # (corresponding to the device number look)
download bin, Reference: https://downloadcenter.intel.com / download / 28237 / Firmware-Latest-for-Intel-RealSense-D400-Product-Family? v = t
https://downloadcenter.intel.com/download/28237/Latest-Firmware-for-Intel-RealSense-D400- Family-Product? v = t
intel-realsense-DFU 002 -b -d -f -i ./Signed_Image_UVC_5_10_6_0.bin 009 # (note modify digital -b and behind the corresponding -d, and bin version number)

echo ‘deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main’ | sudo tee /etc/apt/sources.list.d/realsense-public.list
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 6F3EFCDE
sudo apt-get update
sudo apt-get install dfu*

Reference from:
http://www.pianshen.com/article/6519141340/
https://blog.csdn.net/qq_33419535/article/details/88547498
https://blog.csdn.net/qq_42393859/article/details/ 85,257,685
https://blog.csdn.net/riancy_riancy/article/details/83270836
https://blog.csdn.net/weixin_39585934/article/details/83902811
https://www.jianshu.com/p/51fca21bf6f4

Guess you like

Origin blog.csdn.net/qq_28467367/article/details/93381035