Blame INSTALL_WIN.txt

Packit Service b0a153
Installation Instructions for Windows
Packit Service b0a153
*************************************
Packit Service b0a153

Packit Service b0a153
If you are compiling for MinGW or cygwin, please refer to the INSTALL file.
Packit Service b0a153

Packit Service b0a153
If you are using Microsoft Visual Studio:
Packit Service b0a153
- Open the relevant solution file in /msvc:
Packit Service b0a153
  libusb.dsw for MSVC6, libusb_2005.sln for Visual Studio 2005 or 2008,
Packit Service b0a153
  libusb_2010.sln for Visual Studio 2010,
Packit Service b0a153
  libusb_2012.sln for Visual Studio 2012 or later,
Packit Service b0a153
  libusb_wince.sln for Windows CE support in Visual Studio 2005.
Packit Service b0a153
- If you want to debug the library, uncomment the ENABLE_DEBUG_LOGGING define
Packit Service b0a153
  in msvc\config.h
Packit Service b0a153
- Select your configuration and compile the project
Packit Service b0a153

Packit Service b0a153
Note that if you are using Visual Studio Express, you may have to install the
Packit Service b0a153
Windows SDK to be able to compile the 64 bit version of the library.
Packit Service b0a153

Packit Service b0a153
If you are using the freely available Windows DDK/WDK (Driver Development Kit)
Packit Service b0a153
- If you want to debug the library, uncomment the ENABLE_DEBUG_LOGGING define
Packit Service b0a153
  in msvc\config.h
Packit Service b0a153
- Open one of the relevant Free Build or Checked Build prompt for your target
Packit Service b0a153
  platform
Packit Service b0a153
- Navigate to the msvc\ directory where the ddk_build.cmd file is located, and
Packit Service b0a153
  run 'ddk_build'
Packit Service b0a153
- To produce a DLL rather than a static library, use: 'ddk_build DLL'
Packit Service b0a153
- To produce a static library that uses LIBCMT[d] instead of MSVCRT[d] (/MT[d]
Packit Service b0a153
  vs /MD[d] in Visual Studio) use: 'ddk_build /MT'
Packit Service b0a153

Packit Service b0a153
Note that using the Windows DDK, it is possible to compile both the 32 and 64
Packit Service b0a153
bit versions of the library.
Packit Service b0a153

Packit Service b0a153
If you are building for Windows CE then you will need the Windows CE Standard 5.00 SDK.
Packit Service b0a153

Packit Service b0a153
Destination directories
Packit Service b0a153
***********************
Packit Service b0a153

Packit Service b0a153
The 32 bit binaries compiled either from Visual Studio or the DDK are placed in
Packit Service b0a153
a Win32\ directory at the root of the library
Packit Service b0a153
The 64 bit binaries are placed in an x64\ directory
Packit Service b0a153
Windows CE binaries are placed in one of the following directories, depending
Packit Service b0a153
on the target processor: ARMV4I, MIPSII, MIPSII_FP, MIPSIV, MIPSIV_FP, SH4 or x86.
Packit Service b0a153

Packit Service b0a153

Packit Service b0a153
Troubleshooting
Packit Service b0a153
***************
Packit Service b0a153

Packit Service b0a153
If the compilation process complains about missing libraries, ensure that the
Packit Service b0a153
default library paths for your project points to the relevant directories.
Packit Service b0a153
If needed, these libraries can be obtained by installing either the latest
Packit Service b0a153
Windows SDK or the DDK (Links provided at the end of this file).
Packit Service b0a153

Packit Service b0a153
For Windows CE it is necessary to install the CE USB Kernel Wrapper driver for
Packit Service b0a153
libusb to function on a device.
Packit Service b0a153

Packit Service b0a153
Links
Packit Service b0a153
*****
Packit Service b0a153

Packit Service b0a153
Additional information related to the Windows backend:
Packit Service b0a153
  http://windows.libusb.info
Packit Service b0a153

Packit Service b0a153
Latest Windows Driver (Development) Kit (WDK):
Packit Service b0a153
  http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=36a2630f-5d56-43b5-b996-7633f2ec14ff
Packit Service b0a153

Packit Service b0a153
Latest Microsoft Windows SDK:
Packit Service b0a153
  http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505
Packit Service b0a153

Packit Service b0a153
Windows CE Standard 5.00 SDK:
Packit Service b0a153
  http://www.microsoft.com/en-gb/download/details.aspx?id=17310
Packit Service b0a153

Packit Service b0a153
Windows CE USB Kernel Wrapper Driver:
Packit Service b0a153
  https://github.com/RealVNC/CEUSBKWrapper
Packit Service b0a153