IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.55k stars 4.81k forks source link

Regarding the issue of the inability to install realsense in Ubuntu 24.04 version #13065

Closed 987640673 closed 2 months ago

987640673 commented 3 months ago

Required Info
Camera Model D400
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version Linux (Ubuntu 24)
Kernel Version (Linux Only) 6.8.0-1005-raspi
Platform Raspberry P
SDK Version { legacy / 2.<?>.<?> }
Language python
Segment Robot

Issue Description

<My Raspberry Pi has the detailed configuration shown above. When installing realsense, I used the "./scripts/patch realsense ubuntu lts hwe. sh" command to compile, but the terminal prompted that my system's distribution version is not supported. I need to install realsense to use the D435I camera. What should I do?>

MartyG-RealSense commented 3 months ago

Hello, the best way to install the librealsense SDK on Ubuntu on Raspberry Pi is to use the libuvc backend build script at the link below. This installation method bypasses the kernel and so a patch script does not need to be applied.

https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md

987640673 commented 3 months ago

I try to use the libuvc backend build script at the link below,but the terminal displays the following prompt:

how should I do?

MartyG-RealSense commented 3 months ago

The Ubuntu version should not be a problem with libuvc, since it not only bypasses the kernel but is not dependent on particular Linux versions. There have been few people using librealsense with Ubuntu 24.04 at the time of writing this though, so there may be unpredictable compatibility issues. Official support for 24.04 is being added in the next version of librealsense after the current 2.55.1 one.

Another, more complicated method of building the SDK with a kernel bypass like libuvc's is RSUSB backend. Instructions for an RSUSB build can be found at https://github.com/IntelRealSense/librealsense/issues/9931#issuecomment-964289692

MartyG-RealSense commented 2 months ago

Do you require further assistance with this case, please? Thanks!

Schwarzkopf-Henkal commented 2 months ago

encountered same issue, also got 403 ERROR when accessing apt repository when trying to install via libuvc backend

MartyG-RealSense commented 2 months ago

Hi @Schwarzkopf-Henkal Were you also using Ubuntu 24.04 with the libuvc backend script please?

Schwarzkopf-Henkal commented 2 months ago

Yes, Ubuntu24.04 on Raspberry Pi5. Got almost identical error logs with above mentioned one when using libuvc backend script. But successfully installed and launched realsense-viewer via RSUSB backend.

MartyG-RealSense commented 2 months ago

Thanks so much @Schwarzkopf-Henkal for confirmation that using RSUSB backend (the successor to libuvc backend) worked for you on your Pi.

Would you be able to share with @987640673 the details of the installation procedure that you used, please? Thanks again!

Schwarzkopf-Henkal commented 2 months ago

I followed exactly the same procedure described in #9931 and I was good to go

Schwarzkopf-Henkal commented 2 months ago

My hypothesis is that libuvc backend is technically ok with ubuntu24.04, the problem is the apt repository or network issue. I got 403 error too when trying to install via apt as described in doc/distribution_linux.md. The installation was already erring when executing sudo apt update, got 403 error connecting to intel realsense apt repository. Then I got error locating package librealsense2-dkms. Also, the Great Firewall of Mainland China could cause connection issue and that could also be the case.

987640673 commented 2 months ago

I used the method @Schwarzkopf-Henkal provided to build the software and it was successful. Thank you very much!

987640673 commented 2 months ago

But when I was building using libuvc, I had already used VPN, but still received a 403 prompt, which is clearly not a problem with the Chinese firewall.

MartyG-RealSense commented 2 months ago

Thanks very much @987640673 and @Schwarzkopf-Henkal for the updates. I'm pleased to hear that you were successful!

MartyG-RealSense commented 2 months ago

Case closed due to solution achieved and no further comments received.