Package Details: librealsense v2.38.0-1

Git Clone URL: https://aur.archlinux.org/librealsense.git (read-only, click to copy)
Package Base: librealsense
Description: Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 series and the SR300)
Upstream URL: https://github.com/IntelRealSense/librealsense
Keywords: intel realsense
Licenses: Apache
Submitter: yang
Maintainer: pingplug
Last Packager: pingplug
Votes: 6
Popularity: 0.003863
First Submitted: 2016-02-29 07:35
Last Updated: 2020-08-02 16:06

Latest Comments

m-pilia commented on 2019-12-18 12:43

Hi! It would be nice if the package had a .desktop file for the realsense-viewer tool. A possible patch is the following:

diff --git a/PKGBUILD b/PKGBUILD
index 68737d8..b82e0d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,15 +4,19 @@
 _commit=bdce5a4ebbd716e9d7372ad8831a929bccccd0b2  # tags=v2.31.0
 pkgname=librealsense
 pkgver=v2.31.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 series and the SR300)"
 arch=('x86_64')
 url="https://github.com/IntelRealSense/librealsense"
 license=('Apache')
-makedepends=('cmake' 'git')
+makedepends=('cmake' 'git' 'imagemagick')
 depends=('glfw-x11' 'gtk3' 'libusb')
-source=("git+https://github.com/IntelRealSense/librealsense#commit=${_commit}")
-sha256sums=('SKIP')
+source=(
+    "git+https://github.com/IntelRealSense/librealsense#commit=${_commit}"
+    "realsense-viewer.desktop"
+    )
+sha256sums=('SKIP'
+            '2459fb61e61a01a7661478a85918ee71e3d9871229c4d3701ea8c5f5b0171531')

 pkgver() {
   cd "${srcdir}/${pkgname}"
@@ -43,4 +47,14 @@ package() {
   DESTDIR="${pkgdir}" make install
   cd "${srcdir}/${pkgname}/config"
   install -Dm644 99-realsense-libusb.rules "${pkgdir}/etc/udev/rules.d/99-realsense-libusb.rules"
+
+  # Install realsense-viewer.desktop
+  install -Dm755 "${srcdir}/realsense-viewer.desktop" "${pkgdir}/usr/share/applications/realsense-viewer.desktop"
+
+  # Install icons for realsense-viewer.desktop
+  convert "${srcdir}/${pkgname}/tools/realsense-viewer/res/icon.ico" "${srcdir}/realsense-viewer.png"
+  find "${srcdir}" \
+      -maxdepth 1 \
+      -name 'realsense-viewer-*.png' \
+      -exec bash -c 'install -Dm644 "$0" "$1/usr/share/icons/hicolor/$(identify -format "%wx%h" $0)/apps/realsense-viewer.png"' {} "${pkgdir}" \;
 }

and the content of the .desktop file:

[Desktop Entry]
Categories=Development;Science
Exec=realsense-viewer
Icon=realsense-viewer
Name=RealSense Viewer
StartupNotify=true
Terminal=false
Type=Application

marsmee commented on 2019-02-16 23:52

I currently use this package together with ROS (melodic) and I'm not quite sure if it was the hardware (D435), librealsense, or the realsense ROS-wrapper itself, but most, if not all, of its launch scripts crashed from time to time. Sometimes it helped to change the USB port, however, at some point the scripts always crashed.

[ERROR] [155...686]: An exception has been thrown: get_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: Device or resource busy
[FATAL] [155...196]: Failed to load nodelet '/camera/realsense2_camera' of type 'realsense2_camera/RealSenseNodeFactory' to manager 'realsense2_camera_manager'
... and so on ...

The problem could apparently be solved by passing -DFORCE_LIBUVC=true within the PKGBUILDs build() section. I will continue to use and test this configuration, and may report new findings here. What I can say so far is that the scripts start seemingly more reliable, although not every time.

Celti commented on 2018-10-30 00:04

Packages using git sources must have git in the makedepends. This does not build in a clean container.

pingplug commented on 2018-08-11 02:17

Updated to 2.0 versions

TrialnError commented on 2018-06-04 00:19

Thought about updating it, but refrained from doing so. Nothing for casual updating. But I want to note one thing. The sudo make install call in package() is an absolut no go.

Additionally the creation of the group should be moved from the install file. See https://www.archlinux.org/todo/switch-to-systemd-sysusers/ (And adding the user to the group is a no go too)

nitrotm commented on 2017-10-31 14:48

It's a bad package design. The package() step should be:

make DESTDIR="${pkgdir}/" install

And not try to install the files directly in the system instead!

Poqudrof commented on 2016-08-23 08:51

Hello,

Thanks for this package, there is a new version online:
https://github.com/IntelRealSense/librealsense/releases/tag/v1.9.6

This package does not include the libUVC module patch, I created a script
to patch the kernel and get the depth working.
https://github.com/IntelRealSense/librealsense/blob/master/scripts/patch-arch.sh

Feel free to try it and integrate it !
Cheers, Jeremy.

rchiossi commented on 2016-03-14 13:02

Hi,

Is there any reason why you install the lib to /usr/lib/librealsense/ instead of /usr/lib? If so, shouldn't you also set that path in /etc/ld.so.conf.d ?

The way it is right now, /usr/lib/librealsense needs to be manually set in the compiler and also LD_LIBRARY_PATH needs to be set to that directory in order for any binary to get executed.

It would also be nice to have pkgconfig for this.