Topic: [SOLVED] libusb0.dll and Win32 catch-22
There is a catch-22 with libnfc and windows.
With Windows, the libusb0.dll only gets transferred to the system32 directory once a device has been detected and associated with the libusb0.sys etc. So you can't have libnfc.dll linked to libusb0.dll and expect it to work out of the box with, say a PCSC device, unless something else cause libusb0.dll to get installed.
So the windows build needs a cunning stub mapping of all the libusb functions so it can continue working without libusb0.dll being available.
Our solution was to use a static linking of libnfc in a standalone DLL that can be demand loaded to provided the libnfc functions once Windows has correctly configured a USB driver.