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

Patch librealsense v2.44.0 to include <chrono> for system_clock #7074

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions 3rdparty/librealsense/fix-include-chrono.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/backend.h b/src/backend.h
index a402e3dfb..0acd299c0 100644
--- a/src/backend.h
+++ b/src/backend.h
@@ -14,6 +14,7 @@

#include <memory> // For shared_ptr
#include <functional> // For function
+#include <chrono>
#include <thread> // For this_thread::sleep_for
#include <vector>
#include <algorithm>
3 changes: 3 additions & 0 deletions 3rdparty/librealsense/librealsense.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ ExternalProject_Add(
# Patch for macOS ARM64 support for versions < 2.50.0
COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace
${CMAKE_CURRENT_LIST_DIR}/fix-macos-arm64.patch
# Patch to include the <chrono> header for the system_clock type
COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace
${CMAKE_CURRENT_LIST_DIR}/fix-include-chrono.patch
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-DBUILD_SHARED_LIBS=OFF
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
- Fix render to depth image on Apple Retina displays (PR #7001)
- Fix infinite loop in segment_plane if num_points < ransac_n (PR #7032)
- Add select_by_index method to Feature class (PR #7039)
- Fix build with librealsense v2.44.0 and upcoming VS 2022 17.13 (PR #7074)

## 0.13

Expand Down
Loading