code-iai / iai_kinect2

Tools for using the Kinect One (Kinect v2) in ROS
Apache License 2.0
881 stars 519 forks source link

Running catkin_make -DCMAKE_BUILD_TYPE="Release" produces error #561

Open yohannes-taye opened 4 years ago

yohannes-taye commented 4 years ago

Im using a virtual machine running Ubuntu 18.04 and ROS melodic. I have been trying to figure out this error for the past week but have failed to figure it out. I am trying to connect a kinect v2 to ROS and after I have cloned the code, running catkin_make -DCMAKE_BUILD_TYPE="Release" produces the following error.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
freenect2_INCLUDE_DIR
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
   used as include directory in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
freenect2_LIBRARY
    linked by target "kinect2_bridge" in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge
    linked by target "kinect2_bridge_nodelet" in directory /home/student/catkin_ws/src/iai_kinect2/kinect2_bridge

-- Configuring incomplete, errors occurred!
See also "/home/student/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/student/catkin_ws/build/CMakeFiles/CMakeError.log".