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

Provide deb package source #13436

Open
ethanc8 opened this issue Oct 18, 2024 · 10 comments
Open

Provide deb package source #13436

ethanc8 opened this issue Oct 18, 2024 · 10 comments

Comments

@ethanc8
Copy link

ethanc8 commented Oct 18, 2024

Hi, can you please provide the sources which are used to build the Debian packages, including the Debian metadata such as the control and rules files? Then it would be easier to build DKMS packages for Debian-based distributions other than Canonical builds of Ubuntu.

@MartyG-RealSense
Copy link
Collaborator

Hi @ethanc8 The source code version of librealsense includes a package.xml file for building DKMS packages from the source. It is in the main 'root' folder of the source code.

https://github.com/IntelRealSense/librealsense/blob/e1688cc318457f7dd57abcdbedd3398062db3009/package.xml

image

The source can be downloaded as a zipped file from the 'Assets' file list at the bottom of the release information for each librealsense version.

https://github.com/intelrealsense/librealsense/releases

image

If possible though I would recommend building librealsense from source code with CMake with the libuvc backend or the RSUSB backend installation methods, as these install methods bypass the Linux kernel and so are not dependent on a particular Linux type or kernel version and do not require the application of a patch script to the kernel.

@ethanc8
Copy link
Author

ethanc8 commented Oct 18, 2024

If I want to build deb packages, which took would I use to build the deb packages using the package.xml file?

@ethanc8
Copy link
Author

ethanc8 commented Oct 18, 2024

Also, what us the libuvc back end? I thought there was only RSYSB and V4L2.

@MartyG-RealSense
Copy link
Collaborator

libuvc backend was the predecessor to RSUSB backend, but either method works and they both perform the same function of bypassing the kernel and so allowing any flavor of Linux to be used with a RealSense camera.

The libuvc backend method is easier to perform than RSUSB backend as it has a pre-made build script called 'libuvc_installation.sh'

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

https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh


I will consult with my Intel RealSense colleagues regarding how the package.xml file is used to build a Debian package.

@ethanc8
Copy link
Author

ethanc8 commented Oct 18, 2024

Ok. For now I will try to work with the RSUSB backend. However, it would be good to know more about what each of the kernel patches do and whether they rely on any of the patches Canonical applied to the mainline kernel to make the Ubuntu kernel, as knowing that would allow using the patches on other kernels (I'm specifically interested in the RK3588 BSP based on kernel 6.1).

@MartyG-RealSense
Copy link
Collaborator

For installing librealsense on an RK (Rockchip) device it is recommended to build from source with libuvc or RSUSB backend.

@ethanc8
Copy link
Author

ethanc8 commented Oct 18, 2024

Ok, thanks.

@MartyG-RealSense
Copy link
Collaborator

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

@ethanc8
Copy link
Author

ethanc8 commented Oct 28, 2024

@MartyG-RealSense I don't need more assistance at this time, but I need more time in order to attempt the librealsense build (I have been quite busy recently).

@MartyG-RealSense
Copy link
Collaborator

It's no problem at all. I look forward to your next update when you are able to perform the build. Good luck!

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

2 participants