diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-04-03 10:02:42 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-04-03 10:02:42 +0000 |
| commit | 903425e84e1d4b2735f77e6979abcc42b7bc713e (patch) | |
| tree | 5175d4320f1be544fb69a698bbb0fd17c0eb07b0 | |
| parent | 9e88e4c52e2692e6f319af0ff152dd5a28145d1f (diff) | |
automatic import of librealsense2
| -rw-r--r-- | 0-librealsense2-fix-threads-not-found.patch | 23 | ||||
| -rw-r--r-- | librealsense2.spec | 25 |
2 files changed, 37 insertions, 11 deletions
diff --git a/0-librealsense2-fix-threads-not-found.patch b/0-librealsense2-fix-threads-not-found.patch new file mode 100644 index 0000000..e985607 --- /dev/null +++ b/0-librealsense2-fix-threads-not-found.patch @@ -0,0 +1,23 @@ +--- + CMakeLists.txt | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8f80c78..0b11b78 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,6 +4,11 @@ project(librealsense2 LANGUAGES CXX C) + + # Allow librealsense2 and all of the nested project to include the main repo folder + set(REPO_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) ++set(CMAKE_THREAD_LIBS_INIT "-lpthread") ++set(CMAKE_HAVE_THREADS_LIBRARY 1) ++set(CMAKE_USE_WIN32_THREADS_INIT 0) ++set(CMAKE_USE_PTHREADS_INIT 1) ++set(THREADS_PREFER_PTHREAD_FLAG ON) + include_directories(${REPO_ROOT}) + + include(CMake/lrs_options.cmake) +-- +2.43.0 + diff --git a/librealsense2.spec b/librealsense2.spec index 896d84c..133cdc8 100644 --- a/librealsense2.spec +++ b/librealsense2.spec @@ -16,18 +16,18 @@ Summary: Library for controlling and capturing data from the Intel(R) Rea Url: https://github.com/realsenseai/librealsense/ License: Apache License, Version 2.0 -Source0: librealsense2-2.57.7.tar.gz.aa -Source1: librealsense2-2.57.7.tar.gz.ab -Source2: librealsense2-2.57.7.tar.gz.ac -Source3: librealsense2-2.57.7.tar.gz.ad -Requires: libx11 -Requires: libglfw3-dev +Patch1: 0-librealsense2-fix-threads-not-found.patch +Source0: %{RosPkgName}-%{version}.tar.gz.aa +Source1: %{RosPkgName}-%{version}.tar.gz.ab +Source2: %{RosPkgName}-%{version}.tar.gz.ac +Source3: %{RosPkgName}-%{version}.tar.gz.ad + +Requires: libX11-devel Requires: mesa-libGL-devel Requires: ros-%{ros_distro}-ros-workspace -BuildRequires: libx11 -BuildRequires: libglfw3-dev +BuildRequires: libX11-devel BuildRequires: mesa-libGL-devel BuildRequires: pkgconfig BuildRequires: libusbx-devel @@ -50,8 +50,8 @@ Provides: %{name}-runtime = %{version}-%{release} Library for controlling and capturing data from the Intel(R) RealSense(TM) D400 devices. %prep -cat %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} > librealsense2-2.57.7.tar.gz -tar -xzf librealsense2-2.57.7.tar.gz +cat %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} > %{RosPkgName}-%{version}.tar.gz +tar -xzf %{RosPkgName}-%{version}.tar.gz %autosetup -T -D -p1 -n %{RosPkgName}-%{version} %build @@ -73,6 +73,9 @@ mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} -DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \ -DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \ -DSETUPTOOLS_DEB_LAYOUT=OFF \ + -DBUILD_EXAMPLES=OFF \ + -DBUILD_GLSL_EXTENSIONS=OFF \ + -DBUILD_GRAPHICAL_EXAMPLES=OFF \ %if !0%{?with_tests} -DBUILD_TESTING=OFF \ %endif @@ -111,5 +114,5 @@ else echo "RPM TESTS SKIPPED"; fi /opt/ros/%{ros_distro} %changelog -* Fri Apr 03 2026 LibRealSense ROS Team rsswsdk@realsensecloud.onmicrosoft.com - 2.57.7-1 +* Wed Mar 25 2026 LibRealSense ROS Team rsswsdk@realsensecloud.onmicrosoft.com - 2.57.7-1 - Autogenerated by ros-porting-tools |
