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 - By default, static libusb statically links against the CRT and the dll build 19 dynamically links against CRT. You need to rebuild libusb from source to 20 change this if required by your application. 21 - Compile and run your application. If you use the DLL version of libusb-1.0, 22 remember that the DLL needs to be in the DLL search path of your application. 23 24o MinGW/cygwin 25 - Copy libusb.h, from include/libusb-1.0/ to your default include directory, 26 and copy the MinGW32/ or MinGW64/ .a files to your default library directory. 27 Or, if you don't want to use the default locations, make sure that you feed 28 the relevant -I and -L options to the compiler. 29 - Add the '-lusb-1.0' linker option when compiling. 30 31o Additional information: 32 - The libusb 1.0 API documentation can be accessed at: 33 http://api.libusb.info 34 - For some libusb samples (including source), please have a look in examples/ 35 - For additional information on the libusb 1.0 Windows backend please visit: 36 http://windows.libusb.info 37 - Using the UsbDk backend is now a run-time choice rather than a compile-time 38 choice. For additional information, including example usage, please visit: 39 http://windows.libusb.info/#Driver_Installation 40 - The MinGW and MS generated DLLs are fully interchangeable, provided that you 41 use the import libs provided or generate one from the .def also provided. 42 - If you find any issue, please visit https://libusb.info/ and check the 43 Support section 44