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

Revision history [back]

click to hide/show revision 1
initial version

Please let me know how to fix this.

I'm going to take a guess and suggest that you only git cloned the repository for usb_cam, and forgot to run a rosdep install --from-paths /path/to/your/catkin_ws/src --ignore-src. That would mean that all of the prerequisites of usb_cam haven't been installed, and CMake can't find them, causing it to show you error message you copy/pasted.

If you don't want or need to build usb_cam from source, I'd really recommend you just run the appropriate sudo apt-get install ros-$DISTRO-usb-cam.

Please let me know how to fix this.

I'm going to take a guess and suggest that you only git cloned the repository for usb_cam, and forgot to run a rosdep install --from-paths /path/to/your/catkin_ws/src --ignore-src. That would mean that all of the prerequisites of usb_cam haven't been installed, and CMake can't find them, causing it to show you error message you copy/pasted.

If you don't want or need to build usb_cam from source, I'd really recommend you just run the appropriate sudo apt-get install ros-$DISTRO-usb-cam.


Edit: rosdep install is really not mean to install packages themselves, that is what apt-get is for. It's only meant to install dependencies of the packages. I see a lot of questions about people seemingly trying to use it as a replacement for apt-get (or whatever the package manager is called for your specific platform).