Autotools: Fix versioning regression in configure.ac
[platform/upstream/libusb.git] / INSTALL_WIN.txt
1 Installation Instructions for Windows
2 *************************************
3
4 If you are compiling for MinGW or cygwin, please refer to the INSTALL file.
5
6 If you are using Microsoft Visual Studio:
7 - Open the relevant solution file in /msvc:
8   libusb.dsw for MSVC6, libusb_2005.sln for Visual Studio 2005 or 2008 or 
9   libusb_2010.sln for Visual Studio 2010 or later.
10 - If you want to debug the library, uncomment the ENABLE_DEBUG_LOGGING define
11   in msvc\config.h
12 - Select your configuration and compile the project
13
14 Note that if you are using Visual Studio Express, you may have to install the
15 Windows SDK to be able to compile the 64 bit version of the library.
16
17 If you are using the freely available Windows DDK/WDK (Driver Development Kit)
18 - If you want to debug the library, uncomment the ENABLE_DEBUG_LOGGING define
19   in msvc\config.h
20 - Open one of the relevant Free Build or Checked Build prompt for your target
21   platform
22 - Navigate to the msvc\ directory where the ddk_build.cmd file is located, and
23   run 'ddk_build'
24 - To produce a DLL rather than a static library, use: 'ddk_build DLL'
25 - To produce a static library that uses LIBCMT[d] instead of MSVCRT[d] (/MT[d]
26   vs /MD[d] in Visual Studio) use: 'ddk_build /MT'
27
28 Note that using the Windows DDK, it is possible to compile both the 32 and 64
29 bit versions of the library.
30
31
32 Destination directories
33 ***********************
34
35 The 32 bit binaries compiled either from Visual Studio or the DDK are placed in
36 a Win32\ directory at the root of the library
37 The 64 bit binaries are placed in an x64\ directory
38
39
40 Troubleshooting
41 ***************
42
43 If the compilation process complains about missing libraries, ensure that the
44 default library paths for your project points to the relevant directories.
45 If needed, these libraries can be obtained by installing either the latest
46 Windows SDK or the DDK (Links provided at the end of this file).
47
48
49 Links
50 *****
51
52 Additional information related to the Windows backend:
53   https://sourceforge.net/apps/mediawiki/libusbx/index.php?title=Windows
54
55 Latest Windows Driver (Development) Kit (WDK):
56   http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=36a2630f-5d56-43b5-b996-7633f2ec14ff
57
58 Latest Microsoft Windows SDK:
59   http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505