Skip to content

Commit c35144e

Browse files
committed
Update embedded libfreenect; fix FTBFS libfreenect
1 parent 9803cb4 commit c35144e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

3rdparty/CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ if(CMAKE_MRPT_HAS_FREENECT AND NOT CMAKE_MRPT_HAS_FREENECT_SYSTEM)
6060
-Wno-unused-function
6161
-Wno-unused-const-variable
6262
)
63+
# Needed for usleep
64+
target_compile_definitions(mrpt_freenect PRIVATE
65+
_GNU_SOURCE
66+
_BSD_SOURCE
67+
_DEFAULT_SOURCE
68+
)
6369
endif()
6470

6571
# Embedded version:

doc/source/doxygen-docs/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
- mrpt::system::timestampToDouble() -> replaced by mrpt::Clock::toDouble()
1515
- BUG FIXES:
1616
- Fix Debian bug #1066207: FTBFS in latest sid due to undefined declarations in mrpt_xsens C library.
17+
- Fix FTBFS if using embedded libfreenect due to undefined declarations (usleep).
18+
- Update embedded version of libfreenect to v0.7.0
1719
- Fix wrong computation of bounding boxes for mrpt::opengl::CSetOfObjects.
1820

1921
# Version 2.11.12: Released March 10th, 2024

0 commit comments

Comments
 (0)