diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-08-08 20:38:17 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-08-08 20:38:17 -0700 |
commit | dfcccf43766e22aec8793b0a3f963d5ec5a52b80 (patch) | |
tree | eaf56a52a7f9d557463f78047628b6c33b71b3c9 /Readme.Win32 | |
parent | 846e943f2bb08e28ae78ca7f2e627d089f073ba1 (diff) | |
download | tcpdump-dfcccf43766e22aec8793b0a3f963d5ec5a52b80.tar.gz |
Update to current reality.
[skip ci]
Diffstat (limited to 'Readme.Win32')
-rw-r--r-- | Readme.Win32 | 66 |
1 files changed, 44 insertions, 22 deletions
diff --git a/Readme.Win32 b/Readme.Win32 index ed98d9a2..c9df7c14 100644 --- a/Readme.Win32 +++ b/Readme.Win32 @@ -1,24 +1,46 @@ To build tcpdump under Windows, you need: -- version 6 (or higher) of Microsoft Visual Studio or the Cygnus gnu -C compiler. -- The November 2001 (or later) edition of Microsoft Platform -Software Development Kit (SDK), that contains some necessary includes -for IPv6 support. You can download it from http://www.microsoft.com/sdk -- the WinPcap source code, that includes libpcap for win32. Download it -from http://winpcap.polito.it or download libpcap sources from -https://www.tcpdump.org and follow the instructions in the README.Win32 -file. - -First, extract tcpdump and WinPcap in the same folder, and build WinPcap. - -The Visual Studio project and the cygwin makefile are in the Win32\prj -folder. - -From Visual Studio, open windump.dsw and build the program. The release -version of the WinDump.exe executable file will be created in the -windump\win32\prj\release directory . The debug version will be generated -in windump\win32\prj\debug. - -From cygnus, go to windump\win32\prj\ and type "make". WinDump.exe will be -created in the same directory. +- Microsoft Visual Studio 2015 or later +- the WinPcap or Npcap SDK, which includes libpcap for win32. The + WinPcap SDK can be doneloaded from + + https://www.winpcap.org/devel.htm + + and the Npcap SDK can be downloaded from + + http://www.npcap.org +- CMake, which can be downloadd from + + https://cmake.org + +First, make a build directory, either as a subdirectory of the tcpdump +source directory or as a separate directory. + +Second, change to the build directory, and run CMake with the following +arguments: + + -DCMAKE_PREFIX_PATH={pathname of the WinPcap/Npcap SDK} + + -G {generator} + + the pathname of the tcpdump source directory relative to the build + directory (".." if the build directory is a subdirectory of the + tcpdump source directory). + +"{generator}" would be the string "Visual Studio N YYYY", where "N" is +the version of Visual Studio and "YYYY" is the year number for that +version; if you are building a 64-bit version of tcpdump, YYYY must be +followed by a space and "Win64". For example, to build a 32-bit version +of tcpdump with Visual Studio 2015, "{generator}" would be "Visual +Studio 14 2015" and to build a 64-bit version of tcpdump with Visual +Studio 2017, "{generator}" would be "Visual Studio 15 2017 Win64". + +Third, from the build directory, run the command + + msbuild /m /nologo /p:Configuration={configuration} tcpdump.sln + +where {configuration} can be "Release", "Debug", or "RelWithDebInfo", or +build tcpdump from the Visual Studio application using the solution file +in question. + +(XXX - rules for building with MinGW should be added.) |