Skip to content

Commit 680d934

Browse files
committed
docs: How to let CMake find libfreenect2
1 parent 664ff3c commit 680d934

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2
242242
make
243243
make install
244244
```
245+
You need to specify `cmake -Dfreenect2_DIR=$HOME/freenect2/lib/cmake/freenect2` for CMake based third-party application to find libfreenect2.
245246
* Set up udev rules for device access: `sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/`, then replug the Kinect.
246247
* Run the test program: `./bin/Protonect`
247248
* Run OpenNI2 test (optional): `sudo apt-get install openni2-utils && sudo make install-openni2 && NiViewer2`.

0 commit comments

Comments
 (0)