Changes between Version 19 and Version 20 of libwdi/install
- Timestamp:
- 09/01/10 14:54:04 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
libwdi/install
v19 v20 30 30 * getopt, to compile the zadic sample 31 31 32 == Configuration ==32 == Configuration & Compilation == 33 33 34 34 Provided that you have one of the environments highlighted above and retrieved the source (either from a tarball or the git repository), you need to configure the building of libwdi as follows: 35 35 36 36 * '''MinGW or cygwin''':[[BR]] 37 If downloaded from git, from a shell prompt, run {{{./autogen.sh}}}. This is required to create the configure and Makefile scripts. You might want to edit autogen.sh to set the configure options[[BR]]38 Run {{{configure --help}}} to select your options, or refer to the list below:37 * (Optional) If downloaded from git, from a shell prompt, run {{{./autogen.sh}}}. This is required to create the configure and Makefile scripts. You can feed the same options to autogen.sh as the ones you feed to configure[[BR]] 38 * Run {{{configure --help}}} to select your options, or refer to the list below: 39 39 * {{{--enable-shared}}}: build shared libraries (default y) 40 40 * {{{--enable-static}}}: build static libraries (default y) … … 49 49 * {{{--with-libusb0="<dir>"}}}: embed libusb0 driver files from the following location 50 50 * {{{--with-userdir="<dir>"}}}: embed user defined driver files from the following location[[BR]] 51 Notes:51 Notes: 52 52 1. '''At least one of --with-ddkdir, --with-libusb0, --with-userdir must be specified when running configure'''. 53 53 1. configure will check the ddk and libusb0 directories for the relevant driver files, and prevent completion if they are not found. 54 * Run '{{{make}}}' 55 * The resulting library and examples can be retrieved in the {{{.libs}}} directory 54 56 55 * '''DDK or MSVC''':[[BR]]56 Edit the file msvc/config.h to set/modify your options, or refer to the list below:57 * '''DDK or Visual Studio''':[[BR]] 58 * '''Common''' Edit the file msvc/config.h to set/modify your options, or refer to the list below: 57 59 * {{{#define DDK_DIR "<dir>"}}}: embed WinUSB driver files from the following DDK location 58 60 * {{{#define LIBUSB0_DIR "<dir>"}}}: embed libusb0 driver files from the following location … … 64 66 * {{{#define INCLUDE_DEBUG_LOGGING}}}: enable switchable debug logging 65 67 * {{{#define WDF_VER}}}: define the version of the WDF CoInstaller for WinUSB. If you are using the current version, this should be set to "01009"[[BR]] 66 Notes:68 Notes: 67 69 1. '''Make sure you edit msvc/config.h and set at least one of DDK_DIR, LIBUSB0_DIR or USER_DIR to a valid directory'''. 68 70 1. As DDK_DIR is automatically set when building from the DDK, if you want to prevent the embedding of the WinUSB files, you need to edit libwdi/embedder_files.h 69 70 == Compilation ==71 72 Once you have configured libwdi according to your needs:73 * '''MinGW or cygwin''':74 * Run '{{{make}}}'75 * The resulting library and examples can be retrieved in the {{{.libs}}} directory76 71 * '''Visual Studio''': 77 72 * Select your target (!Release/Debug, Win32/x64) and select 'Build'