maxmati / a4tech-bloody-linux-driver

GNU General Public License v3.0
62 stars 26 forks source link

libusb-1.0 not found #37

Open merajmasuk opened 2 years ago

merajmasuk commented 2 years ago

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.

unm4sk commented 2 years ago

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!