Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No linker option to ensure libusb is linked to appropriately #80

Open
shaydonb opened this issue Mar 19, 2024 · 1 comment
Open

No linker option to ensure libusb is linked to appropriately #80

shaydonb opened this issue Mar 19, 2024 · 1 comment

Comments

@shaydonb
Copy link

Tried building the binary on an x86_64 Ubuntu laptop with:
Make 4.3, GCC 11.4.0

Found that libusb was not getting linked correctly. Added the following line to the Makefile to get it to work:

diff --git a/Makefile b/Makefile
index 139e5c0..9bac300 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ CFLAGS += $(shell $(PKG_CONFIG) --cflags libusb-1.0)
 
 LDFLAGS ?=
 LDFLAGS += -lpthread
+LDFLAGS += -lusb-1.0
 LDFLAGS += $(shell $(PKG_CONFIG) --libs libusb-1.0)
 
 DEPDIR := .deps
@shaydonb
Copy link
Author

Willing and ready to push the fix if permissions could be added, fine with someone else handling as well.

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

No branches or pull requests

1 participant