Sam Hooke

Building against `libusb`

Situation: given an existing small C program which was developed on Ubuntu 12.04 32-bit, build it on CentOS 7 64-bit with minimal, if any, modifications to the source. The C program depends upon libftdi and libusb, of which there are four “versions”.

CentOS 7 comes with libusbx out of the box. Running yum install libusb will download a package called libusb which is actually libusb-compat-0.1(!).

These are rough notes that vary greatly in quality and length, but prove useful to me, and hopefully to you too!

← Previous: Get errno from Python requests `ConnectionError`
Next: Calling C from Python →