Ask Your Question
1

Unabe to Install freenect in ROS-Melodic/Ubuntu 18.04

asked 2019-01-27 04:59:02 -0500

athul gravatar image

I wanted to install freenect in ROS to take depth images using Kinect XBOX 360 1473. I cloned the repository from https://github.com/ros-drivers/freene... and kept it in ~/catkin_ws/src under the folder name freenect_stack. Upon running catkin_make in ~/catkin_ws I get the following error:

[ 21%] Building CXX object freenect_stack/freenect_camera/CMakeFiles/freenect_nodelet.dir/src/nodelets/driver.cpp.o
In file included from /home/athul/catkin_ws/src/freenect_stack/freenect_camera/src/nodelets/driver.h:54:0,
                 from /home/athul/catkin_ws/src/freenect_stack/freenect_camera/src/nodelets/driver.cpp:39:
/home/athul/catkin_ws/src/freenect_stack/freenect_camera/include/freenect_camera/freenect_driver.hpp:4:10: fatal error: libfreenect/libfreenect.h: No such file or directory
 #include <libfreenect/libfreenect.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
freenect_stack/freenect_camera/CMakeFiles/freenect_nodelet.dir/build.make:62: recipe for target 'freenect_stack/freenect_camera/CMakeFiles/freenect_nodelet.dir/src/nodelets/driver.cpp.o' failed
make[2]: *** [freenect_stack/freenect_camera/CMakeFiles/freenect_nodelet.dir/src/nodelets/driver.cpp.o] Error 1
CMakeFiles/Makefile2:2697: recipe for target 'freenect_stack/freenect_camera/CMakeFiles/freenect_nodelet.dir/all' failed
make[1]: *** [freenect_stack/freenect_camera/CMakeFiles/freenect_nodelet.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1 -l1" failed

Please help. Any input is welcome.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-01-27 13:12:28 -0500

jayess gravatar image

Is there a reason that you can't install the binary?

Anyways, try installing the dependencies before compiling. From the root of your workspace, run

~/catkin_ws$ rosdep install --from-paths src -i
~/catkin_ws$ catkin_make
edit flag offensive delete link more

Comments

Is there a reason that you can't install the binary?

afaict, freenect_stack hasn't been released for Melodic.

gvdhoorn gravatar imagegvdhoorn ( 2019-01-28 03:02:40 -0500 )edit

@gvdhoorn Thanks. I figured as much, wasn't sure though

jayess gravatar imagejayess ( 2019-01-28 03:18:31 -0500 )edit

I guess libfreenect does not work with melodic :(

The error I got when I ran rosdep:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
freenect_camera: Cannot locate rosdep definition for [libfreenect]

@gvdhoorn@jayess Thanks

athul gravatar imageathul ( 2019-01-28 03:49:33 -0500 )edit

I'm having the same issue. I have libfreenect and libfreenect-dev installed, but freenect_stack won't build.

wesliao gravatar imagewesliao ( 2019-02-05 15:13:18 -0500 )edit

same problem :-(

ChriMo gravatar imageChriMo ( 2019-02-13 12:51:57 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2019-01-27 04:59:02 -0500

Seen: 439 times

Last updated: Jan 27