ziutek / ftdi

Go binding for libFTDI
Other
25 stars 14 forks source link

Simplify Windows build by shipping libusb and libftdi binaries. #18

Closed rasky closed 2 years ago

rasky commented 2 years ago

To simplify compilation on Windows, where it might be complex to users to download, compile, install libusb and libftdi, making them available to the Go build system, commit a binary version of those libraries and change the cgo build directive to use it automatically.

The binaries were download from https://sourceforge.net/projects/picusb/ and are compiled by one of the libusb maintainers (Xiaofan Chen). I stripped them down to just static libraries and include files, and they are just 1Mb in size.