ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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/env.sh 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/libuvc.so: 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
    libusbmuxd.so.1 (libc6,hard-float) => /usr/lib/libusbmuxd.so.1
    libusb-1.0.so.0 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libusb-1.0.so.0
    libusb-1.0.so (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libusb-1.0.so
    libusb-0.1.so.4 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libusb-0.1.so.4

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
0

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

lychenpan2@gmail.com 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

Question Tools

1 follower

Stats

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

Seen: 685 times

Last updated: Jul 21 '15