Closed March-deng closed 5 years ago
Unfortunately we can't help here, it's not a problem with gousb code.
i meet the same issue, and took days to self solved.
i think might help the others. here's my steps, for your reference:
😮no more undefined reference to `libusb_XXXXX'
i don't really know why ,but it's fixed. i guess brew's build is for osx ?
i meet the same issue, and took days to self solved.
i think might help the others. here's my steps, for your reference:
- brew install mingw-w64 libusb
- clone and compile libusb with mingw for windows
- replace the compiled libs and libusb.h file to brew install location
😮no more undefined reference to `libusb_XXXXX'
i don't really know why ,but it's fixed. i guess brew's build is for osx ?
This works for compiling binaries for host arm64-apple-darwin23.0.0 (arm64) and target x86-64 (MS_Windows). Spent half a day trying to figure this out. This comment helped do this in 5 minutes.
Instructions for cross compilation of gousb:
Steps:
*edit: Typos
I installed the gcc compiler from
http://crossgcc.rts-software.org/doku.php?id=compiling_for_linux
but I failed to compile the source code to get a exe file. Any help would be great, thanks.code
command
message