Package Details: librealsense 2.55.1-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 & L500 series and the SR300).
Upstream URL: https://github.com/IntelRealSense/librealsense
Keywords: intel realsense
Licenses: Apache
Submitter: yang
Maintainer: buresu
Last Packager: buresu
Votes: 10
Popularity: 0.52
First Submitted: 2016-02-29 07:35 (UTC)
Last Updated: 2024-06-02 12:23 (UTC)

Latest Comments

1 2 3 Next › Last »

lucasl0st commented on 2025-04-04 13:11 (UTC)

Getting following error currently trying to compile with cmake 4.0:

==> Starting build()...
CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

Adding -DCMAKE_POLICY_VERSION_MINIMUM=3.5 does work

aminiallight commented on 2025-01-01 23:29 (UTC)

I'm unsure if this qualifies as a build issue but I thought I should report it anyway. At the very least maybe others who experience the same thing will find this comment helpful. If you attempt to build this package with your C/C++ compiler set to Clang and without extra/openmp installed the build will fail with the following error message, even though extra/openmp is not a formal dependency:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenMP.cmake:616 (find_package_handle_standard_args)
  CMake/unix_config.cmake:38 (find_package)
  CMakeLists.txt:42 (os_set_flags)

Additionally extra/openmp must remain installed in order for the library to be used. This occurs because, unlike GCC, the base Clang package does not include the associated OpenMP implementation. Properly fixing this within the Arch dependency system would require adding a new "Provides: openmp" value to both extra/openmp and core/gcc which this package could then depend upon.

Perdu commented on 2024-12-14 19:31 (UTC)

I had the same problem as acmiyaguchi when building monado. Their solution worked. Can this be patched?

dbermond commented on 2024-10-07 18:39 (UTC)

@buresu the 'git' package is missing from makedepends. Package does not build without it:

CMake Error at /usr/share/cmake/Modules/ExternalProject/shared_internal_commands.cmake:951 (message):
  error: could not find git for clone of nlohmann_json

sambilbow commented on 2023-06-17 09:21 (UTC)

FYI 2.53.1 is the last version that supports the following cameras: R300, T265, T261, L515.

petronny commented on 2023-06-11 04:08 (UTC) (edited on 2023-06-11 04:08 (UTC) by petronny)

Hi, git is still needed to clone libcurl:

-- Building libcurl enabled
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2806 (message):
  error: could not find git for clone of libcurl
Call Stack (most recent call first):
  /usr/share/cmake/Modules/ExternalProject.cmake:4208 (_ep_add_download_command)
  CMake/external_libcurl.cmake:17 (ExternalProject_Add)
  CMake/global_config.cmake:89 (include)
  CMakeLists.txt:52 (global_set_flags)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().

petronny commented on 2023-04-26 06:03 (UTC)

Also, please remove the leading v in pkgver. And glu should be added as a dependency.

petronny commented on 2023-04-26 05:38 (UTC) (edited on 2023-04-26 05:38 (UTC) by petronny)

Hi, is there a particular reason for not to use https://github.com/IntelRealSense/librealsense/archive/refs/tags/v${pkgver}.tar.gz as source?

chrisd1977 commented on 2023-03-06 13:01 (UTC) (edited on 2023-03-08 13:13 (UTC) by chrisd1977)

This has a remarkably bad performance for me. If I run rs-depth on my PC it is using 200% processor time in top, while on a raspberry (of all things) it can do the same thing using only 50% processor time. My own test program cannot grab 30 fps at 1280 x 720. Instead I get 15 fps. On the raspberry it does get 30 fps while using less processor time.

Edit: It appears that I was accusing this library falsely. Turned out that I still had another, much older, version of librealsense on my computer and it was using that one. This one seems to do fine. But I did find that to get metadata I had to add -DFORCE_RSUSB_BACKEND=true to the options of cmake.

bemu commented on 2023-02-05 23:10 (UTC)

if someone has the same problem as acmiyaguchi feel free to use this patch: https://github.com/muellerbernd/my_arch_packages/blob/master/librealsense/include_dir.patch

diff --color -Naur librealsense/CMake/realsense2Config.cmake.in librealsense_new/CMake/realsense2Config.cmake.in
--- A/CMake/realsense2Config.cmake.in   2023-01-30 22:35:28.853406445 +0100
+++ B/CMake/realsense2Config.cmake.in   2023-01-30 22:34:57.253404779 +0100
@@ -6,6 +6,8 @@

 set(realsense2_VERSION ${realsense2_VERSION_MAJOR}.${realsense2_VERSION_MINOR}.${realsense2_VERSION_PATCH})

+set(PACKAGE_PREFIX_DIR /usr)
+# set_and_check(realsense2_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
 set_and_check(realsense2_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")

 include("${CMAKE_CURRENT_LIST_DIR}/realsense2Targets.cmake")