Package Details: librealsense v2.44.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) and the T265 tracking camera.
Upstream URL: https://github.com/IntelRealSense/librealsense
Keywords: intel realsense
Licenses: Apache
Submitter: yang
Maintainer: pingplug
Last Packager: pingplug
Votes: 8
Popularity: 0.76
First Submitted: 2016-02-29 07:35
Last Updated: 2021-04-03 08:53

Latest Comments

1 2 Next › Last »

dreieck commented on 2021-04-29 15:19

Fails to build for me with unknown pseudo-op: `.lbe10946' and open CFI at the end of file; missing .cfi_endproc directive:

[ 23%] Building CXX object CMakeFiles/realsense2.dir/src/media/ros/ros_writer.cpp.o
In file included from /[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/detail/maybe_include.hpp:18,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/detail/function_iterate.hpp:14,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/preprocessor/iteration/detail/iter/forward1.hpp:52,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function.hpp:64,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/rosbag/roscpp_traits/include/ros/message_event.h:42,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/bag.h:50,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/message_instance.h:150,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/view.h:41,
                 from /[...]/librealsense/src/librealsense/src/media/ros/ros_reader.h:6,
                 from /[...]/librealsense/src/librealsense/src/media/ros/ros_reader.cpp:5:
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp: In instantiation of ‘void boost::detail::function::basic_vtable1<R, T0>::assign_functor(FunctionObj, boost::detail::function::function_buffer&, mpl_::true_) const [with FunctionObj = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; mpl_::true_ = mpl_::bool_<true>]’:
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:608:27:   required from ‘bool boost::detail::function::basic_vtable1<R, T0>::assign_to(FunctionObj, boost::detail::function::function_buffer&, boost::detail::function::function_obj_tag) const [with FunctionObj = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:498:27:   required from ‘bool boost::detail::function::basic_vtable1<R, T0>::assign_to(F, boost::detail::function::function_buffer&) const [with F = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:942:34:   required from ‘void boost::function1<R, T1>::assign_to(Functor) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:728:22:   required from ‘boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]’
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:1077:16:   required from ‘boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]’
/[...]/librealsense/src/librealsense/src/media/ros/ros_reader.cpp:111:93:   required from here
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:572:16: warning: placement new constructing an object of type ‘rosbag::TopicQuery’ and size ‘24’ in a region of type ‘char’ and size ‘1’ [-Wplacement-new=]
  572 |           new (reinterpret_cast<void*>(&functor.data)) FunctionObj(f);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/detail/prologue.hpp:17,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function.hpp:24,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/rosbag/roscpp_traits/include/ros/message_event.h:42,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/bag.h:50,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/message_instance.h:150,
                 from /[...]/librealsense/src/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/view.h:41,
                 from /[...]/librealsense/src/librealsense/src/media/ros/ros_reader.h:6,
                 from /[...]/librealsense/src/librealsense/src/media/ros/ros_reader.cpp:5:
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp: In instantiation of ‘static void boost::detail::function::functor_manager_common<Functor>::manage_small(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) [with Functor = rosbag::TopicQuery]’:
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:364:56:   required from ‘static void boost::detail::function::functor_manager<Functor>::manager(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type, mpl_::true_) [with Functor = rosbag::TopicQuery; mpl_::true_ = mpl_::bool_<true>]’
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:412:18:   required from ‘static void boost::detail::function::functor_manager<Functor>::manager(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type, boost::detail::function::function_obj_tag) [with Functor = rosbag::TopicQuery]’
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:440:20:   required from ‘static void boost::detail::function::functor_manager<Functor>::manage(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) [with Functor = rosbag::TopicQuery]’
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:940:13:   required from ‘void boost::function1<R, T1>::assign_to(Functor) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:728:22:   required from ‘boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]’
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:1077:16:   required from ‘boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]’
/[...]/librealsense/src/librealsense/src/media/ros/ros_reader.cpp:111:93:   required from here
/[...]/librealsense/src/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:318:18: warning: placement new constructing an object of type ‘boost::detail::function::functor_manager_common<rosbag::TopicQuery>::functor_type’ {aka ‘rosbag::TopicQuery’} and size ‘24’ in a region of type ‘char’ and size ‘1’ [-Wplacement-new=]
  318 |             new (reinterpret_cast<void*>(&out_buffer.data)) functor_type(*in_functor);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{standard input}: Assembler messages:
{standard input}:166280: Warning: end of file not at end of a line; newline inserted
{standard input}:166794: Error: unknown pseudo-op: `.lbe10946'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/realsense2.dir/build.make:706: CMakeFiles/realsense2.dir/src/media/playback/playback_device.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:896: CMakeFiles/realsense2.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

dbermond commented on 2021-02-16 00:13

@pingplug Missing 'glu' on depends. Without glu installed, it will not even compile, giving this error: /usr/include/GLFW/glfw3.h:215:13: fatal error: GL/glu.h: No such file or directory

And namcap output shows that it's needed at runtime: librealsense E: Dependency glu detected and not included (libraries ['usr/lib/libGLU.so.1'] needed in files ['usr/bin/rs-trajectory'])

Please add 'glu' to depends.

wwwlea commented on 2020-10-14 08:21

Hi! I have this installed, and I get the following error message during boot: systemd-udevd[355]: /etc/udev/rules.d/99-realsense-libusb.rules:3 Unknown group 'plugdev', ignoring

Has anyone else experienced this?

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.