Skip to content

Fix pkg-config lookup for libusb to libsub-1.0 on Linux#517

Open
YacaloX wants to merge 1 commit into
thp:masterfrom
YacaloX:master
Open

Fix pkg-config lookup for libusb to libsub-1.0 on Linux#517
YacaloX wants to merge 1 commit into
thp:masterfrom
YacaloX:master

Conversation

@YacaloX

@YacaloX YacaloX commented Jul 18, 2026

Copy link
Copy Markdown

On modern Linux distributions (Ubuntu 24.04+, Debian, Fedora, etc.), the pkg-config module is named libusb-1.0 instead of libusb.

That makes to the OS not founding the libusb dependency

This change modifies the line
pkg_check_modules(LIBUSB REQUIRED libusb QUIET)
with
pkg_check_modules(LIBUSB REQUIRED libusb-1.0 QUIET)

On modern Linux distributions (Ubuntu 24.04+, Debian, Fedora, etc.), the pkg-config module is named libusb-1.0 instead of libusb.

That makes to the OS not founding the libusb dependency

This change modifies the line
pkg_check_modules(LIBUSB REQUIRED libusb QUIET)
with
pkg_check_modules(LIBUSB REQUIRED libusb-1.0 QUIET)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant