It can be said that installing this driver is laborious. I installed it several times and reinstalled the system several times, but in the end I found that it is enough once. The reason why I went back and forth was mainly because I kept searching for installation instructions written by others on the Internet. In the tutorial, I did not look carefully at the doc folder under the installation file. There is actually an installation method in it. Next, I will explain the installation process in detail below. You must follow the steps.
First of all, the system I use is ubuntu14.04, specifically 14.04. I don’t know the number, it’s not important.
Then download the realsense driver: https://www.jb51.net/softs/373056.html
The specific download method can be directly clicked to download. You can use Git to download. However, if you use git, you should pay attention to the permissions of the folder. There may be problems. It is best to use chmod to set the scripts folder in the folder to 777.
After that, it is installed:
1. First cd into the realsense driver folder: cd realsense
Then use: sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade to update your software source and kernel version
In order to prevent this method from being useless, then enter: 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
Finally we enter: sudo update-grub && sudo reboot
The computer will restart at this time. After restarting, we select Advanced Options for Ubuntu on the interface where we select ubuntu, select the latest kernel version, then enter the system, and finally use: uname -r to confirm whether the version is the one you selected.
2. Install the required dependency packages
a. Install *libusb-1.0* and *pkg-config*: sudo apt-get install libusb-1.0-0-dev pkg-config
b.Install *glfw3*:./scripts/install_glfw3.sh
3. Generate library files and sample files
mkdir build && cd build
cmake ..
cmake ../ -DBUILD_EXAMPLES=true
make && sudo make install
4. Install Video4Linux
cd ..
sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && udevadm trigger
sudo apt-get install libssl-dev
./scripts/patch-realsense-ubuntu-xenial.sh
sudo dmesg | tail -n 50
Follow this order, after executing the last step, you will find that there is a new uvcvideo driver registered, otherwise there will be an error.
Finally plug in the camera and click on the example in the build to see the image.
The above is the detailed content of Steps to install Realsense driver on Ubuntu14.04. For more information, please follow other related articles on the PHP Chinese website!