INSTALL_WIN.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Installation Instructions for Windows
  2. *************************************
  3. If you are compiling for MinGW or cygwin, please refer to the INSTALL file,
  4. which is automatically generated by autotools (e.g. running bootstrap.sh).
  5. If you are using Microsoft Visual Studio:
  6. - Open the relevant solution file in /msvc:
  7. libusb_2013.sln for Visual Studio 2013,
  8. libusb_2015.sln for Visual Studio 2015,
  9. libusb_2017.sln for Visual Studio 2017,
  10. libusb_2019.sln for Visual Studio 2019 or later.
  11. - If you want to debug the library, uncomment the ENABLE_DEBUG_LOGGING define
  12. in msvc\config.h
  13. - Select your configuration and compile the project
  14. Installing and building libusb via vcpkg
  15. ****************************************
  16. You can download and install libusb using the vcpkg dependency manager:
  17. git clone https://github.com/Microsoft/vcpkg.git
  18. cd vcpkg
  19. ./bootstrap-vcpkg.bat
  20. ./vcpkg integrate install
  21. vcpkg install libusb
  22. The libusb port in vcpkg is kept up to date by Microsoft team members and
  23. community contributors. If the version is out of date, please create an issue
  24. or pull request (https://github.com/Microsoft/vcpkg) on the vcpkg repository.
  25. Destination directories
  26. ***********************
  27. The 32-bit binaries are placed in a Win32\ directory at the root of the
  28. library.
  29. The 64-bit binaries are placed in a x64\ directory.
  30. Troubleshooting
  31. ***************
  32. If the compilation process complains about missing libraries, ensure that the
  33. default library paths for your project points to the relevant directories.
  34. If needed, these libraries can be obtained by installing the latest Windows
  35. SDK.
  36. Links
  37. *****
  38. Additional information related to the Windows backend:
  39. http://windows.libusb.info