Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failed #8125

Closed
LyJoan opened this issue Jan 7, 2021 · 16 comments
Closed

Installation failed #8125

LyJoan opened this issue Jan 7, 2021 · 16 comments

Comments

@LyJoan
Copy link

LyJoan commented Jan 7, 2021

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)


Required Info
Camera Model L515
Firmware Version 01.05.02.00
Operating System & Version Linux (Ubuntu 18
Kernel Version (Linux Only) 5.3.0-53-generic
Platform PC
SDK Version { legacy / 2.. }
Language C/C++/opencv/pcl/python
Segment Robot

Issue Description

Yesterday I wanted to install RealSense SDK in my PC. I downloaded the latest version from github. When I run ./scripts/patch-realsense-ubuntu-lts.sh, I met a trouble which is

"Replacing videobuf2-common -
cp: cannot stat '/home/cq/5.3.0-53-generic-videobuf2-common.ko': No such file or directory"

The log produced by running the script in the terminal is :

Reading package lists... Done
Building dependency tree
Reading state information... Done
bc is already the newest version (1.07.1-2).
build-essential is already the newest version (12.4ubuntu1).
git is already the newest version (1:2.17.1-1ubuntu0.7).
linux-headers-generic is already the newest version (4.15.0.129.116).
The following package was automatically installed and is no longer required:
dkms
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 391 not upgraded.
Package required libusb-1.0-0-dev: - found
Package required libssl-dev: - found
Create patches workspace in ubuntu-bionic-5 folder

Package required libelf-dev: - found
Package required elfutils: - found
Package required bison: - found
Package required flex: - found
Fetching Ubuntu LTS tag Ubuntu-hwe-5.3.0-53.47_18.04.1 to the local kernel sources folder
The kernel has modified files:
modified: drivers/iio/accel/hid-sensor-accel-3d.c
modified: drivers/iio/gyro/hid-sensor-gyro-3d.c
modified: drivers/media/usb/uvc/uvc_ctrl.c
modified: drivers/media/usb/uvc/uvc_driver.c
modified: drivers/media/usb/uvc/uvcvideo.h
modified: drivers/media/v4l2-core/v4l2-ioctl.c
modified: include/uapi/linux/videodev2.h
Proceeding will reset all local kernel changes. Press 'n' within 3 seconds to abort the operation
Do you want to proceed? [Y/n]
Resetting local changes in ubuntu-bionic-5 folder
HEAD is now at a70cc238a029 UBUNTU: Ubuntu-hwe-5.3.0-53.4718.04.1
Switching to LTS tag Ubuntu-hwe-5.3.0-53.47_18.04.1
HEAD is now at a70cc238a029 UBUNTU: Ubuntu-hwe-5.3.0-53.47
18.04.1
Applying patches for bionic-5 line
Applying realsense-uvc patch
patching file drivers/media/usb/uvc/uvc_driver.c
Hunk #1 succeeded at 214 (offset -5 lines).
patching file drivers/media/usb/uvc/uvcvideo.h
patching file drivers/media/v4l2-core/v4l2-ioctl.c
Hunk #1 succeeded at 1308 (offset 6 lines).
patching file include/uapi/linux/videodev2.h
Hunk #1 succeeded at 727 (offset 35 lines).
Applying realsense-metadata patch
patching file drivers/media/usb/uvc/uvc_driver.c
Hunk #1 succeeded at 2960 (offset 54 lines).
patching file drivers/media/usb/uvc/uvcvideo.h
Hunk #1 succeeded at 208 (offset 12 lines).
Applying realsense-hid patch
patching file drivers/iio/accel/hid-sensor-accel-3d.c
Hunk #1 succeeded at 276 (offset -10 lines).
patching file drivers/iio/gyro/hid-sensor-gyro-3d.c
Hunk #1 succeeded at 29 (offset -13 lines).
Hunk #2 succeeded at 76 (offset -13 lines).
Hunk #3 succeeded at 184 (offset -10 lines).
Hunk #4 succeeded at 200 (offset -10 lines).
Hunk #5 succeeded at 233 (offset -10 lines).
Applying realsense-powerlinefrequency-fix patch
patching file drivers/media/usb/uvc/uvc_ctrl.c
Hunk #1 succeeded at 353 with fuzz 1 (offset -4 lines).
Increase UVC_URBs in uvcvideo
patching file drivers/media/usb/uvc/uvcvideo.h
Hunk #1 succeeded at 204 (offset 31 lines).
Prepare kernel modules configuration
scripts/kconfig/conf --olddefconfig Kconfig

configuration written to .config

scripts/kconfig/conf --syncconfig Kconfig
UPD include/config/kernel.release
UPD include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
Compiling uvc module
make: Entering directory '/home/cq/librealsense/ubuntu-bionic-5'
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_driver.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_queue.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_v4l2.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_video.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_ctrl.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_debugfs.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_status.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_isight.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_entity.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvc_metadata.o
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvcvideo.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvcvideo.mod.o
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/usb/uvc//uvcvideo.ko
make: Leaving directory '/home/cq/librealsense/ubuntu-bionic-5'
Compiling accelerometer and gyro modules
make: Entering directory '/home/cq/librealsense/ubuntu-bionic-5'
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/hid-sensor-accel-3d.o
Building modules, stage 2.
MODPOST 38 modules
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adis16201.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adxl372.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adxl372_i2c.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adxl372_spi.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bma180.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adis16209.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bma220_spi.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bmc150-accel-spi.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bmc150-accel-core.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bmc150-accel-i2c.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/da311.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/cros_ec_accel_legacy.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/da280.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/dmard09.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/dmard10.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/hid-sensor-accel-3d.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/kxcjk-1013.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/kxsd9-i2c.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/kxsd9.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/kxsd9-spi.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mc3230.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma7455_core.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma7455_i2c.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma7455_spi.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma7660.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma8452.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma9551_core.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma9551.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mxc4005.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/sca3000.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma9553.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mxc6255.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/ssp_accel_sensor.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/st_accel.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/st_accel_i2c.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/st_accel_spi.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/stk8312.mod.o
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adxl372_spi.ko
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/stk8ba50.mod.o
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adis16201.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bmc150-accel-i2c.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/kxsd9-spi.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adis16209.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adxl372.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/adxl372_i2c.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/da280.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bma180.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bmc150-accel-core.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/da311.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bma220_spi.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/bmc150-accel-spi.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/cros_ec_accel_legacy.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/hid-sensor-accel-3d.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/kxcjk-1013.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma7455_i2c.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/kxsd9-i2c.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma7455_core.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma7455_spi.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/dmard10.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/dmard09.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma8452.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma7660.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/st_accel_spi.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mc3230.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma9551_core.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mxc6255.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/kxsd9.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma9553.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mma9551.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/sca3000.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/stk8ba50.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/ssp_accel_sensor.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/mxc4005.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/st_accel.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/st_accel_i2c.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/accel/stk8312.ko
make: Leaving directory '/home/cq/librealsense/ubuntu-bionic-5'
make: Entering directory '/home/cq/librealsense/ubuntu-bionic-5'
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/hid-sensor-gyro-3d.o
Building modules, stage 2.
MODPOST 18 modules
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adis16080.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adis16136.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adis16260.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adis16130.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adxrs450.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/bmg160_core.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/st_gyro.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/ssp_gyro_sensor.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/st_gyro_i2c.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/itg3200.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/fxas21002c_core.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/bmg160_i2c.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/st_gyro_spi.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/fxas21002c_i2c.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/bmg160_spi.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/mpu3050.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/hid-sensor-gyro-3d.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/fxas21002c_spi.mod.o
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/itg3200.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/st_gyro_spi.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/hid-sensor-gyro-3d.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/mpu3050.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/st_gyro.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/fxas21002c_core.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adis16080.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/ssp_gyro_sensor.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/bmg160_i2c.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adxrs450.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/bmg160_spi.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adis16260.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/fxas21002c_spi.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adis16136.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/bmg160_core.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/fxas21002c_i2c.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/adis16130.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/iio/gyro/st_gyro_i2c.ko
make: Leaving directory '/home/cq/librealsense/ubuntu-bionic-5'
Compiling v4l2-core modules
make: Entering directory '/home/cq/librealsense/ubuntu-bionic-5'
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-fwnode.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-dev.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-device.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-ioctl.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-event.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-fh.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-clk.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-subdev.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-ctrls.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-compat-ioctl32.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-async.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-trace.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-mc.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-common.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-dv-timings.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/tuner-core.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-mem2mem.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-flash-led-class.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videobuf-dma-sg.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videobuf-core.o
CC [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videobuf-vmalloc.o
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/tuner.o
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videodev.o
Building modules, stage 2.
MODPOST 10 modules
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/tuner.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-dv-timings.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-common.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-flash-led-class.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-fwnode.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-mem2mem.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videobuf-dma-sg.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videobuf-core.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videodev.mod.o
CC /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videobuf-vmalloc.mod.o
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-dv-timings.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-flash-led-class.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/tuner.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videodev.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-common.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-fwnode.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videobuf-vmalloc.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videobuf-dma-sg.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/v4l2-mem2mem.ko
LD [M] /home/cq/librealsense/ubuntu-bionic-5/drivers/media/v4l2-core/videobuf-core.ko
make: Leaving directory '/home/cq/librealsense/ubuntu-bionic-5'
Patched kernels modules were created successfully

build_usbcore_modules=0
Replacing videodev -
Applying the patched module ... succeeded
Replacing videobuf2-common -
cp: cannot stat '/home/cq/5.3.0-53-generic-videobuf2-common.ko': No such file or directory

Please tell me how to resolve these issues so any help would be greatly appreciated. Thanks!

@ev-mp
Copy link
Collaborator

ev-mp commented Jan 7, 2021

@LyJoan hello, for the kernel patching please use the recommended method -
https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages

sudo apt install librealsense2-dkms

@RealSenseSupport
Copy link
Collaborator

@LyJoan - Were you able to get through the instructions successfully?

@RealSenseSupport
Copy link
Collaborator

@LyJoan - Were you able to get through the instructions successfully?

*If we don’t hear from you in 7 days, this issue will be closed.

@eliasdc
Copy link

eliasdc commented Jan 28, 2021

I'm having the same problem when building from source. During execution of the patches by default it does not compile videobuf2-common and videobuf2-v4l2 but it seems to be required for kernel >= 5. By specifying the uvc_dbg flag to the command I was able to build.

If sudo apt install librealsense2-dkms should fix the problem as well I would suggest updating the installation guide so we know we can do either way and still use the latest master version.

@RealSenseSupport
Copy link
Collaborator

Thanks for the feedback.

@TPEmist
Copy link

TPEmist commented Mar 4, 2021

@RealSenseSupport
Same issue here too,

even with sudo apt install librealsense2-dkms still came up with the error

Replacing videobuf2-common -
cp: cannot stat '/home/username/5.4.0-66-generic-videobuf2-common.ko': No such file or directory

OS : Ubuntu 18.04
Kernal Virsion : 5.4.0-66-generic

need help

@lyc-king
Copy link

lyc-king commented Mar 6, 2021

Could you please tell more details about your way to solve the cp problem please? Thank you very much! @eliasdc

I'm having the same problem when building from source. During execution of the patches by default it does not compile videobuf2-common and videobuf2-v4l2 but it seems to be required for kernel >= 5. By specifying the uvc_dbg flag to the command I was able to build.

If sudo apt install librealsense2-dkms should fix the problem as well I would suggest updating the installation guide so we know we can do either way and still use the latest master version.

@lyc-king
Copy link

lyc-king commented Mar 6, 2021

Now I know how to solve this and it works for me, sorry to bother you hahaha. @eliasdc

@TPEmist
Copy link

TPEmist commented Mar 6, 2021

Hi @lyc-king !
Cloud you kindly share the way to fix this. Thanks a lot.

Now I know how to solve this and it works for me, sorry to bother you hahaha. @eliasdc

@lyc-king
Copy link

lyc-king commented Mar 6, 2021

Hi @lyc-king !
Cloud you kindly share the way to fix this. Thanks a lot.

Now I know how to solve this and it works for me, sorry to bother you hahaha. @eliasdc

Sure, my pleasure. You can refer to #8513 which was created and closed by myself. There is detailed information in it.

@TPEmist
Copy link

TPEmist commented Mar 6, 2021 via email

@RealSenseSupport
Copy link
Collaborator

Hi,

@LyJoan, will you still be needing further help with this?

If we don’t hear from you in 7 days, this issue will be closed.

Thanks

@seyoung-solteq
Copy link

I ran into the same error on Ubuntu 18.04 LTS.

Cause of the problem

When I run ./scripts/patch-realsense-ubuntu-lts.sh, it will make a directory ubuntu-bionic-hwe-5.4 and fetch a tag Ubuntu-hwe-5.4-5.4.0-67.75_18.04.1 from git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git.

In that tag, ubuntu-bionic-hwe-5.4/drivers/media/common/videobuf2/videobuf2-common.ko does not exist so this won't copy anything.

sudo cp $KBASE/drivers/media/common/videobuf2/videobuf2-common.ko ~/$LINUX_BRANCH-videobuf2-common.ko

The content of the tag can be found here: https://kernel.ubuntu.com/git/ubuntu/ubuntu-bionic.git/tree/drivers/media/common/videobuf2?h=Ubuntu-hwe-5.4-5.4.0-67.75_18.04.1

Screenshot 2021-03-19 at 15 36 33


What else did I try?

I followed the following and building now. I will update once the build is over.

@LyJoan hello, for the kernel patching please use the recommended method -
https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages

sudo apt install librealsense2-dkms

@seyoung-solteq
Copy link

@LyJoan hello, for the kernel patching please use the recommended method -
https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages

sudo apt install librealsense2-dkms

This didn't help.
realsense-viewer failed without any message.
When I ran rs-capture it failed with

librealsense Could not open OpenGL window, please check your graphic drivers or use the textual SDK tools

@seyoung-solteq
Copy link

seyoung-solteq commented Mar 22, 2021

realsense-viewer works after a system reboot. :)
But I'm getting this warning

Severity: Warn
Description: Multiple realsense udev-rules were found! :
1:/etc/udev/rules.d/99-realsense-libusb.rules
2: /lib/udev/rules.d/60-librealsense2-udev-rules.rules
Make sure to remove redundancies!

@bigbellmercy
Copy link

Hello, I happened the same build error and report the workaround suggested by #8513:

Workaround

In the patch-realsense-ubuntu-lts.sh, make the line 308 and 309 as comments by adding # at each beginning of line.

we are not sure that this workaround does not make any problem later. So I think this problem is not closed yet the root cause of this problem disappear.

Thanks.

Environmemt

Ubuntu 18.04 x86 kernel v5.4.0-71-generic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants