maxmati/a4tech-bloody-linux-driver

libusb-1.0 not found

merajmasuk opened this issue · 1 comments

libusb not found while building via cmake

$ cmake .
-- Checking for one of the modules 'libusb-1.0'
CMake Error at /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:797 (message):
  None of the required 'libusb-1.0' found
Call Stack (most recent call first):
  CMakeLists.txt:5 (pkg_search_module)


-- Configuring incomplete, errors occurred!

However, on Pop_OS! 21.04, libusb-1.0-0 package is available.

$ apt list --installed | grep libusb

libusb-1.0-0/hirsute,now 2:1.0.24-3 amd64 [installed]

I tried editing ~/.bashrc with the following line.

alias libusb-1.0="libusb-1.0-0"

Unfortunately, it didn't help.

I've recently faced this issue. Downloading libusb-1.0-0-dev helped. If you are still using Pop_OS!, it can be done using APT manager:

sudo apt install libusb-1.0-0-dev

Hope this helped!