ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

libuvc_camera: catkin_make_isolated finds undefined reference

asked 2015-06-06 21:57:09 -0600

wramos gravatar image

Hi all, I'm trying to install libuvc_ros on indigo and when i get to catkin building my workspace I receive the following:

pi@raspberrypi ~/ros_catkin_ws/build_isolated/libuvc_ros $ cd /home/pi/ros_catkin_ws/build_isolated/libuvc_camera && sudo /opt/ros/indigo/ make -j2
[ 20%] Built target libuvc_camera_gencfg
Linking CXX executable /home/pi/ros_catkin_ws/devel_isolated/libuvc_camera/lib/libuvc_camera/camera_node
[ 60%] Built target libuvc_camera_nodelet
/opt/ros/indigo/lib/ undefined reference to `libusb_set_auto_detach_kernel_driver'
collect2: ld returned 1 exit status
CMakeFiles/camera_node.dir/build.make:170: recipe for target '/home/pi/ros_catkin_ws/devel_isolated/libuvc_camera/lib/libuvc_camera/camera_node' failed
make[2]: *** [/home/pi/ros_catkin_ws/devel_isolated/libuvc_camera/lib/libuvc_camera/camera_node] Error 1
CMakeFiles/Makefile2:153: recipe for target 'CMakeFiles/camera_node.dir/all' failed
make[1]: *** [CMakeFiles/camera_node.dir/all] Error 2
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2

I don't understand where this error is coming from, and I don't know where to start. I already have libusb installed, and a quick search confirms this

pi@raspberrypi ~/ros_catkin_ws/build_isolated/libuvc_camera $ ldconfig -p | grep libusb (libc6,hard-float) => /usr/lib/ (libc6,hard-float) => /lib/arm-linux-gnueabihf/ (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/ (libc6,hard-float) => /lib/arm-linux-gnueabihf/

Additionally, rosdep installed all of the additional dependencies, and libuvc builds normally. I'm stumped, I don't know what to do. Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-21 21:46:59 -0600 gravatar image

where did you get the libuvc_camera package, i do the same command as you, and it make successfully; but the followed command confused me;
when i type the command: rosrun libuvc_camera , and then 'tab' to complete the command automatic, it comes out that :rosrun libuvc_camera UVCCamera.cfg ... I don't know why

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2015-06-06 21:57:09 -0600

Seen: 634 times

Last updated: Jul 21 '15