Is there a C++ cross platform USB library?
问题 I'm (going to be) writing an application in Qt that will run on the 3 main OSes (Windows, Linux and Mac). One of the features of this app is that it needs USB to talk to a piece of custom external hardware. Is there a cross-platform USB library available? 回答1: Try libusb. Supported operating systems: Linux, FreeBSD, NetBSD, OpenBSD, Darwin, MacOS X (and Windows, through the libusb-win32 project). But you should note that it uses libusb0.sys kernel-mode driver on Windows, which is not WHQL