Skip to content

Commit

Permalink
Added hints for new default installation location for libfreenect2.
Browse files Browse the repository at this point in the history
Added a note for what to do, when installed somewhere else to the README.
  • Loading branch information
Thiemo Wiedemeyer committed Feb 24, 2016
1 parent ecaf3c1 commit fa55624
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ catkin_make -DCMAKE_BUILD_TYPE="Release"
*Note: `rosdep` will output errors on not being able to locate `[kinect2_bridge]` and `[depth_registration]`.
That is fine because they are all part of the iai_kinect2 package and `rosdep` does not know these packages.*

*Note: If you installed libfreenect2 somewhere else than in `$HOME/freenect2` or a standard location like `/usr/local`
you have to specify the path to it by adding `-Dfreenect2_DIR=path_to_freenect2/lib/cmake/freenect2` to `catkin_make`.

6. Connect your sensor and run `kinect2_bridge`:

```
Expand Down
2 changes: 1 addition & 1 deletion kinect2_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ELSE()
MESSAGE(ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
ENDIF()

find_package(freenect2 REQUIRED)
find_package(freenect2 REQUIRED HINTS "$ENV{HOME}/freenect2")

find_package(catkin REQUIRED COMPONENTS roscpp rostime tf std_msgs sensor_msgs nodelet cv_bridge compressed_depth_image_transport kinect2_registration)

Expand Down

0 comments on commit fa55624

Please sign in to comment.