qboticslabs / mastering_ros

This repository contains exercise files of the book "Mastering ROS for Robotics Programming"
https://www.packtpub.com/hardware-and-creative/mastering-ros-robotics-programming
468 stars 282 forks source link

libusb not found #19

Open abdul-mannan-khan opened 7 years ago

abdul-mannan-khan commented 7 years ago

Hello Everyone,

I am trying to use this this very particular chapter. When I compile it, I am getting this error constantly.

CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:578 (message): None of the required 'libusb' found I have tried reading few articles online but none of them resolved this problem. Your kind suggestions would be highly appreciated. Thank you.

huckl3b3rry87 commented 6 years ago

https://github.com/ros-drivers/joystick_drivers/issues/113

huckl3b3rry87 commented 6 years ago

The fix is to install libusb:

 sudo apt-get install libusb-dev