sifive / cinco

Port of Arduino environment for Freedom E 300 Dev Kit & HiFive Board
31 stars 21 forks source link

Linux openocd binaries have a similar problem with libusb #24

Open nimblemachines opened 7 years ago

nimblemachines commented 7 years ago

As with the Darwin version of openocd (see issue #23) the Linux binaries are going to expect to find libusb somewhere. For all Linux users, this means they have to separately install libusb, and for users of non-mainstream Linux distros - such as NixOS - this requires several tedious steps to patch the ELF interpreter path and RPATH of the openocd executable before it can be used.

Because statically linking to libusb wouldn't add much to the binary, I'm going to suggest this as the simplest solution to this problem.

mwachs5 commented 7 years ago

Thanks for reporting this. We will release binaries for all the tools in the near future in a more convenient form than having to grep through the Arduino package. Will post when it's updated.

Same for #23.

nimblemachines commented 7 years ago

That's also great news! Thanks for looking into this.