Skip to content

Commit 73b7d09

Browse files
committed
Fix the fakenect library name to run with LD_PRELOAD
Merge https://github.com/rguillome/libfreenect Reviewed-by: Benn Snyder <benn.snyder@gmail.com>
2 parents 2ce5bd3 + 9c5a328 commit 73b7d09

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Notice: If you have the newer Kinect v2 (XBox One), use [OpenKinect/libfreenect2
1818
To build libfreenect, you'll need
1919

2020
- [libusb](http://libusb.info) >= 1.0.18
21-
- [CMake](http://cmake.org) >= 2.6
21+
- [CMake](http://cmake.org) >= 2.8.12
2222
- [python](http://python.org) >= 2.7 or >= 3.3 (only if BUILD_PYTHON=ON or BUILD_PYTHON2=ON or BUILD_PYTHON3=ON or BUILD_REDIST_PACKAGE=OFF)
2323

2424
For the examples, you'll need
@@ -147,6 +147,19 @@ Wrappers are not guaranteed to be API stable or up to date.
147147
- actionscript
148148
- Java (JNA)
149149

150+
# Using Fakenect
151+
152+
To use a fakenect recorded stream, just provide the fakenect lib as a pre loaded library with `LD_PRELOAD` and indicates the recorded files directory with `FAKENECT_PATH`
153+
154+
- Sample with python wrappers :
155+
```shell
156+
LD_PRELOAD="/usr/local/lib/fakenect/libfreenect_faked.so" FAKENECT_PATH="./sample/hand1" python ./wrappers/python/demo_cv_sync.py
157+
```
158+
- Sample with C bin :
159+
```shell
160+
LD_PRELOAD="/usr/local/lib/fakenect/libfreenect_faked.so" FAKENECT_PATH="./sample/hand1" freenect-glview
161+
```
162+
150163
# Code Contributions
151164

152165
In order of importance:

fakenect/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ add_library (fakenect SHARED fakenect.c)
77
set_target_properties ( fakenect PROPERTIES
88
VERSION ${PROJECT_VER}
99
SOVERSION ${PROJECT_APIVER}
10-
OUTPUT_NAME freenect)
10+
OUTPUT_NAME freenect_faked)
1111
target_link_libraries(fakenect ${MATH_LIB})
1212

1313
install (TARGETS fakenect

0 commit comments

Comments
 (0)