Can't catkin_make iai_kinect2

asked 2017-05-19 22:10:43 -0500

ant0520 gravatar image

updated 2017-05-21 17:27:50 -0500

allenh1 gravatar image

Hi, I'm Japanese, so maybe my English is strange. Now, I want to try visual slam with Kinect One, ubuntu16.04, ROS Kinetic Kame. I could install libfreenect2 and checked ./Protonect. And I tried to install iai_kinect2 but I can't do catkin_make -DCMAKE_BUILD_TYPE="Release". Please help me and tell me what should I do in detail. I delete opencv-3.2.0-dev in /opt/ros/kinetic/share/ /opt/ros/kinetic/include because it is written that iai_kinect2 can't work with opencv3. And I added opencv2.4.13 in /opt/ros/kinetic/share/ /opt/ros/kinetic/include. Was this bad? I write error message.

Base path: /home/ariga/catkin_ws
Source space: /home/ariga/catkin_ws/src
Build space: /home/ariga/catkin_ws/build
Devel space: /home/ariga/catkin_ws/devel
Install space: /home/ariga/catkin_ws/install
#### Running command: "cmake /home/ariga/catkin_ws/src -DCMAKE_BUILD_TYPE=Release -DCATKIN_DEVEL_PREFIX=/home/ariga/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/ariga/catkin_ws/install -G Unix Makefiles" in "/home/ariga/catkin_ws/build"
-- Using CATKIN_DEVEL_PREFIX: /home/ariga/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ariga/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.6
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 7 packages in topological order:
-- ~~  - iai_kinect2 (metapackage)
-- ~~  - turtlebot_octomap
-- ~~  - beginner_tutorials
-- ~~  - kinect2_registration
-- ~~  - kinect2_bridge
-- ~~  - kinect2_calibration
-- ~~  - kinect2_viewer
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'iai_kinect2'
-- ==> add_subdirectory(iai_kinect2/iai_kinect2)
-- +++ processing catkin package: 'turtlebot_octomap'
-- ==> add_subdirectory(turtlebot_octomap)
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- +++ processing catkin package: 'kinect2_registration'
-- ==> add_subdirectory(iai_kinect2/kinect2_registration)
-- CPU based depth registration enabled
-- OpenCL based depth registration enabled
CMake Warning at iai_kinect2/kinect2_registration/CMakeLists.txt:60 (message):
  Your is incompatible with CL/cl.h.  Install ocl-icd-opencl-dev
  to update

-- +++ processing catkin package: 'kinect2_bridge'
-- ==> add_subdirectory(iai_kinect2/kinect2_bridge)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /opt/ros/kinetic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:106 (message):
  Project 'cv_bridge' specifies '/opt/ros/kinetic/include/opencv-3.2.0-dev'
  as an include dir, which is not found.  It does neither exist as an
  absolute directory nor in
  '/opt/ros/kinetic//opt/ros/kinetic/include/opencv-3.2.0-dev'.  Ask the
  maintainer 'Vincent Rabaud <>' to fix it.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  iai_kinect2/kinect2_bridge/CMakeLists.txt:24 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/ariga/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ariga/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
edit retag flag offensive close merge delete


I'm pretty sure that ROS kinetic uses OpenCV3, so that would likely cause a problem... has this driver been used in kinetic?

allenh1 gravatar imageallenh1 ( 2017-05-21 17:28:27 -0500 )edit

Thank you your comment. I used ROS Kinetic Kame. I reinstall ROS indigo and I have new problem... If you are ok, please answer this

ant0520 gravatar imageant0520 ( 2017-05-28 20:40:45 -0500 )edit