google / gousb

gousb provides low-level interface for accessing USB devices
Apache License 2.0
838 stars 124 forks source link

How to link libusb on mac if I want to release a program without "brew install libusb" #61

Closed naxiemolv closed 5 years ago

naxiemolv commented 5 years ago

Hi

"How to tell cgo how to find one installed in a non-default place is beyond the scope of this README."

I want to release a program on mac, but how do I Link libusb.dylib such as "-L ./libs" sorry for that,I still don't know how to do it and don't find any guide of it neither.

Thanks

zagrodzki commented 5 years ago

I don't think any one of us has a good answer to that question. But also I think that what you're asking (how to tell cgo where libusb is) and what I think you want (release a program in a way which doesn't require a separate installation of libusb) are different things. That being said, I don't have a response to either.