This blog belongs to the personal first blog content, related content are pro-test, and in the pit pits, the rest did not involve the bug, please self-search solution.
System version number: ubuntu14.04.3 AMD64
Deepin Camera RealSense
1. Installing the Relsense drive
(1) First download Librealsense source package to GitHub
Https://github.com/IntelRealSense/librealsense
(2) After decompression into the drive folder
Perform the update
sudo apt-get update && sudo apt-get upgrade
(3) Install libsub-1.0, perform
sudoapt-get Install Libusb-1.0-0-dev
(4) Install GLFW3, perform
./scripts/install_glfw3.sh
(5) Install Video4linux (video4linux (Jane v4l) is the kernel driver for video devices in Linux)
Note: Make sure the camera is unplugged before installation
(5.1) Copy files, execute
sudo cp config/99-realsense-libusb.rules/etc/udev/rules.d/
(5.2) Enforcing the use of new udev rules and enforcing
sudo udevadm control--reload-rules && Udevadm trigger
(5.3) Upgrading the Linux kernel to a stable version 4.4, this step pit is more, if GCC is not installed, you need to open Install_ dependencies-4.4.sh file, comment The few words related to GCC, and then the source to install GCC my version number gcc_4.9.3, fortunately GCC has provided a script installation method
Tar xzf gcc-4.9.3.tar.gz
cd gcc-4.9.3
./contrib/download_prerequisites
cd
. mkdir objdir
CD objdir
$PWD/.. /gcc-4.9.3/configure--prefix= $HOME/gcc-4.9.3--enable-languages=c,c++,fortran,go make do
install
Note This step:
$PWD/.. /gcc-4.9.3/configure--prefix= $HOME/gcc-4.9.3--enable-languages=c,c++,fortran,go
If there is an error, read the last paragraph carefully, see whether you are 32 or 64 bits, if not 64 bits, then add the error hint to give the parameter options--with specific I also forget that the compiler will prompt, the correct run named
$PWD/.. /gcc-4.9.3/configure--prefix= $HOME/gcc-4.9.3--enable-languages=c,c++,fortran,go--with (see TIP)
./scripts/install_dependencies-4.4.sh
Note: Upgrading the kernel can only be performed once
Repair the patch Uvcvideo.ko and perform
./scripts/patch-uvcvideo-4.4.shv4.4-wily
Uninstall Uvcvideo.ko First
sudo rmmod Uvcvideo.ko
(5.4) Reload Uvcvideo driver execution, this step needs to find the Uvcvideo.ko directory, and then switch in to execute, can be found in the driver directory by ctrl+f
sudo modprobe uvcvideo
(5.5) Check the last 50 lines of the DMESG log to check for proper installation, and if installed correctly, a new Uvcvideo driver registration will be displayed, otherwise there will be an error. Perform
DMESG Log
(6) Compile the source code, generate executable file execution
mkdir Build
CD Build
CMake .
Make
sudo make install
CMake.-dbuild_examples:bool=true
Make && sudo make instal
(7) After the compilation succeeds, because the path is not specified, the generated file will have a test program available in the/usr/local/bin directory, insert the camera, perform
Cd/usr/local/bin
./cpp-capture
If you see the following screen to indicate successful installation, RealSense sr300 only the first three graphs, the fourth window is empty