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

github.com/gotmc/libusb/[email protected]/context.go:11:34: error: 'LIBUSB_OPTION_LOG_LEVEL' undeclared (first use in this function) #24

Open
unitsnet opened this issue Jul 2, 2024 · 0 comments

Comments

@unitsnet
Copy link

unitsnet commented Jul 2, 2024

my os:
uname -a:
Linux y1cloud-Z790-UD 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
dpkg -l | grep libusb:
ii libgusb2:amd64 0.3.10-1 amd64 GLib wrapper around libusb1
ii libusb-0.1-4:amd64 2:0.1.12-32build3 amd64 userspace USB programming library
ii libusb-1.0-0:amd64 2:1.0.25-1ubuntu2 amd64 userspace USB programming library
ii libusb-1.0-0:i386 2:1.0.25-1ubuntu2 i386 userspace USB programming library
ii libusb-1.0-0-dev:amd64 2:1.0.25-1ubuntu2 amd64 userspace USB programming library development files
ii libusb-1.0-doc 2:1.0.25-1ubuntu2 all documentation for userspace USB programming
ii libusb-dev 2:0.1.12-32build3 amd64 userspace USB programming library development files
ii libusbmuxd6:amd64 2.0.2-3build2 amd64 USB multiplexor daemon for iPhone and iPod Touch devices - library
go version:
go version go1.22.1 linux/amd64

when I run example/get_sn/main.go, it show the error msg "github.com/gotmc/libusb/[email protected]/context.go:11:34: error: 'LIBUSB_OPTION_LOG_LEVEL' undeclared (first use in this function)
11 | // return libusb_set_option(ctx, LIBUSB_OPTION_LOG_LEVEL, level);"
so, how to make it work?

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