summaryrefslogtreecommitdiff
path: root/README_MSVC.txt
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-01-15 20:59:54 +0000
committerPete Batard <pbatard@gmail.com>2010-01-15 20:59:54 +0000
commit5f46b891de401d58adcc6fb8e9e95499614c93e9 (patch)
tree29373dd3957585121b55e104f432bd9669d9d848 /README_MSVC.txt
parent82ab1e7dc6229cf3513d64722c9a872325389f91 (diff)
downloadlibusb-5f46b891de401d58adcc6fb8e9e95499614c93e9.tar.gz
r82: added x64 support for MSVC and finalized directory structure.
Also amended README_MSVC.txt to reflect a better setup for the required DDK directories
Diffstat (limited to 'README_MSVC.txt')
-rw-r--r--README_MSVC.txt22
1 files changed, 14 insertions, 8 deletions
diff --git a/README_MSVC.txt b/README_MSVC.txt
index 700469f..c3ae293 100644
--- a/README_MSVC.txt
+++ b/README_MSVC.txt
@@ -1,15 +1,21 @@
-To compile libusb 1.0 using MSVC 8 or later:
+To compile libusb 1.0 using MSVC 9:
- download the pthread.h and sched.h headers from
ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-8-0-release/include/
into the msvc directory
-- download pthreadVC2.lib from:
+- (Win32) download pthreadVC2.lib from:
ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-2-8-0-release/lib/
into the msvc directory
-- download pthreadVC2.dll from the same link into your executable destination
+- (Win32) download pthreadVC2.dll from the same link either into your executable
+ destination or copy it into C:\Window\System32 or C:\Window\SysWOW64
+- (x64) follow the "Direct access to the CVS code repository" details on
+ http://sourceware.org/pthreads-win32/ and create both a pthreadVC2_x64.lib
+ and pthreadVC2_x64.dll from the latest pthread-win32 source. Then copy
+ pthreadVC2_x64.lib into the msvc directory and the DLL where relevant.
- edit config_msvc.h according to your needs (you might want to comment out
- ENABLE_DEBUG_LOGGING)
-- edit the Linker's "Additional Library Directory" properties to point to your
- Windows DDK (you must have the Windows DDK installed). For instance, to build
- against the Windows 7 x86 libraries, you could use:
- E:\WinDDK\7600.16385.0\lib\win7\i386
+ ENABLE_DEBUG_LOGGING)
+- If you don't have it already, download and install the latest Windows DDK
+ (http://www.microsoft.com/downloads/details.aspx?FamilyID=2105564e-1a9a-4bf4-8d74-ec5b52da3d00)
+- In Visual Studio, go to Tools -> Options -> Projects and Solutions ->
+ VC++ directories and change the "Include files" and "Library files"
+ references to point to the correct DDK paths.