1 To build tcpdump under Windows, you need:
3 - Microsoft Visual Studio 2015 or later
4 - the WinPcap or Npcap SDK, which includes libpcap for win32. The
5 WinPcap SDK can be doneloaded from
7 https://www.winpcap.org/devel.htm
9 and the Npcap SDK can be downloaded from
11 https://nmap.org/npcap/
12 - CMake, which can be downloadd from
14 https://cmake.org
16 First, make a build directory, either as a subdirectory of the tcpdump
17 source directory or as a separate directory.
19 Second, change to the build directory, and run CMake with the following
22 -DCMAKE_PREFIX_PATH={pathname of the WinPcap/Npcap SDK}
26 the pathname of the tcpdump source directory relative to the build
27 directory (".." if the build directory is a subdirectory of the
28 tcpdump source directory).
30 "{generator}" would be the string "Visual Studio N YYYY", where "N" is
31 the version of Visual Studio and "YYYY" is the year number for that
32 version; if you are building a 64-bit version of tcpdump, YYYY must be
33 followed by a space and "Win64". For example, to build a 32-bit version
34 of tcpdump with Visual Studio 2015, "{generator}" would be "Visual
35 Studio 14 2015" and to build a 64-bit version of tcpdump with Visual
36 Studio 2017, "{generator}" would be "Visual Studio 15 2017 Win64".
38 Third, from the build directory, run the command
40 msbuild /m /nologo /p:Configuration={configuration} tcpdump.sln
42 where {configuration} can be "Release", "Debug", or "RelWithDebInfo", or
43 build tcpdump from the Visual Studio application using the solution file
46 (XXX - rules for building with MinGW should be added.)