X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=README.Windows;h=61a712aba7f119f9635bf6f90b8fb62c8e8111df;hp=1e9c49631d32dd2d088afe69cea904db249723ab;hb=de4a2189a52048403add24b3a65379eb6f64fa45;hpb=10df176b0fb932d61f0dc5d6bfd0a0942501fc40 diff --git a/README.Windows b/README.Windows index 1e9c49631d..61a712aba7 100644 --- a/README.Windows +++ b/README.Windows @@ -1,19 +1,33 @@ Building OpenOCD for Windows ---------------------------- -You can build OpenOCD for Windows natively with either MinGW/MSYS or -Cygwin. Alternatively, one can cross-compile it using MinGW on a *nix +You can build OpenOCD for Windows natively with either MinGW-w64/MSYS +or Cygwin (plain MinGW might work with --disable-werror but is not +recommended as it doesn't provide enough C99 compatibility). +Alternatively, one can cross-compile it using MinGW-w64 on a *nix host. See README for the generic instructions. +Native MinGW-w64/MSYS compilation +----------------------------- + +As MSYS doesn't come with pkg-config pre-installed, you need to add it +manually. The easiest way to do that is to download pkg-config-lite +from: + + http://sourceforge.net/projects/pkgconfiglite/ + +Then simply unzip the archive to the root directory of your MinGW-w64 +installation. + USB adapters ------------ You usually need to have WinUSB.sys (or libusbK.sys) driver installed for a USB-based adapter. Some vendor software (e.g. for ST-LINKv2) does it on its own. For the other cases the easiest way to assign -WinUSB to a device is to use the Zadig installer: +WinUSB to a device is to use the latest Zadig installer: - http://sourceforge.net/projects/libwdi/files/zadig/ + http://zadig.akeo.ie For the old drivers that use libusb-0.1 API you might need to link against libusb-win32 headers and install the corresponding driver with