diff options
author | Pete Batard <pbatard@gmail.com> | 2010-10-27 13:17:57 +0100 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-10-27 13:17:57 +0100 |
commit | 98c3552705036e1fba72d62be82541acf2b8d91f (patch) | |
tree | 0235ba95fdbe2858cc8ee79be17ef59fd45452cc /INSTALL_WIN.txt | |
parent | 86cf94cfdcc9379641ed6d47f98dd2e602eac5ac (diff) | |
download | libusb-98c3552705036e1fba72d62be82541acf2b8d91f.tar.gz |
added /MT option for DDK builds
* default for ddk was to use MSVCRT, which produces static
libs that cannot be used in MSVC with /MT (libcmt)
* ddk_build script now allows users to chose between /MD
and /MT compatibility
* also simplified libusb_sources and updated INSTALL_WIN.txt
Diffstat (limited to 'INSTALL_WIN.txt')
-rw-r--r-- | INSTALL_WIN.txt | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/INSTALL_WIN.txt b/INSTALL_WIN.txt index f56b6c2..778f891 100644 --- a/INSTALL_WIN.txt +++ b/INSTALL_WIN.txt @@ -5,8 +5,8 @@ If you are compiling for MinGW or cygwin, please refer to the INSTALL file. If you are using Microsoft Visual Studio: - Open the relevant solution file libusb.dsw for MSVC6, libusb.sln for Visual - Studio 2005 or later (you will go through a short conversion process if using - 2008) + Studio 2005 or later (you will go through a conversion process if using 2008 + or later) - If you want to debug the library, uncomment the ENABLE_DEBUG_LOGGING define in config.h - Select your configuration and compile the project @@ -22,6 +22,8 @@ If you are using the freely available Windows DDK/WDK (Driver Development Kit) - Navigate to the root directory of the distribution, where the ddk_build.cmd file is located, and run 'ddk_build' - To produce a DLL rather than a static library, use: 'ddk_build DLL' +- To produce a static library that uses LIBCMT[d] instead of MSVCRT[d] (/MT[d] + vs /MD[d] in Visual Studio) use: 'ddk_build /MT' Note that using the Windows DDK, it is possible to compile both the 32 and 64 bit versions of the library. @@ -40,15 +42,10 @@ Troubleshooting If the compilation process complains about missing libraries, you need to ensure that the default library paths for your project point to a directory that -contains setupapi.lib and ole32.lib. +contains the necessary libraries. If needed, these libraries can be obtained by installing either the latest Windows SDK or the DDK (Links provided at the end of this file). -The 64 bit version of the library has been tested at least as much as the 32 bit -version during development. Same goes for Windows 7 vs Vista/XP. -Therefore we do not expect specific issues related to using these targets with -libusb. - Links ***** |