1 libusb 1.0 Windows binary snapshot - README 2 3 ********************************************************************* 4 * The latest version of this snapshot can always be downloaded at: * 5 * https://github.com/libusb/libusb/releases * 6 ********************************************************************* 7 8o Visual Studio: 9 - Open existing or create a new project for your application 10 - Copy libusb.h, from the include\libusb-1.0\ directory, into your project and 11 make sure that the location where the file reside appears in the 'Additional 12 Include Directories' section (Configuration Properties -> C/C++ -> General). 13 - Copy the relevant .lib file from MS32\ or MS64\ and add 'libusb-1.0.lib' to 14 your 'Additional Dependencies' (Configuration Properties -> Linker -> Input) 15 Also make sure that the directory where libusb-1.0.lib resides is added to 16 'Additional Library Directories' (Configuration Properties -> Linker 17 -> General) 18 - If you use the static version of the libusb library, make sure that 19 'Runtime Library' is set to 'Multi-threaded DLL (/MD)' (Configuration 20 Properties -> C/C++ -> Code Generation). 21 NB: If your application requires /MT (Multi-threaded/libCMT), you need to 22 recompile a static libusb 1.0 library from source. 23 - Compile and run your application. If you use the DLL version of libusb-1.0, 24 remember that you need to have a copy of the DLL either in the runtime 25 directory or in system32 26 27o MinGW/cygwin 28 - Copy libusb.h, from include/libusb-1.0/ to your default include directory, 29 and copy the MinGW32/ or MinGW64/ .a files to your default library directory. 30 Or, if you don't want to use the default locations, make sure that you feed 31 the relevant -I and -L options to the compiler. 32 - Add the '-lusb-1.0' linker option when compiling. 33 34o Additional information: 35 - The libusb 1.0 API documentation can be accessed at: 36 http://api.libusb.info 37 - For some libusb samples (including source), please have a look in examples/ 38 - For additional information on the libusb 1.0 Windows backend please visit: 39 http://windows.libusb.info 40 - Using the UsbDk backend is now a run-time choice rather than a compile-time 41 choice. For additional information, including example usage, please visit: 42 http://windows.libusb.info/#Driver_Installation 43 - The MinGW and MS generated DLLs are fully interchangeable, provided that you 44 use the import libs provided or generate one from the .def also provided. 45 - If you find any issue, please visit http://libusb.info/ and check the 46 Support section 47