]> The Tcpdump Group git mirrors - tcpdump/blob - Readme.Win32
OpenFlow: Have a function for each message type.
[tcpdump] / Readme.Win32
1 To build tcpdump under Windows, you need:
2
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
6
7 https://www.winpcap.org/devel.htm
8
9 and the Npcap SDK can be downloaded from
10
11 https://nmap.org/npcap/
12 - CMake, which can be downloadd from
13
14 https://cmake.org
15
16 First, make a build directory, either as a subdirectory of the tcpdump
17 source directory or as a separate directory.
18
19 Second, change to the build directory, and run CMake with the following
20 arguments:
21
22 -DCMAKE_PREFIX_PATH={pathname of the WinPcap/Npcap SDK}
23
24 -G {generator}
25
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).
29
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".
37
38 Third, from the build directory, run the command
39
40 msbuild /m /nologo /p:Configuration={configuration} tcpdump.sln
41
42 where {configuration} can be "Release", "Debug", or "RelWithDebInfo", or
43 build tcpdump from the Visual Studio application using the solution file
44 in question.
45
46 (XXX - rules for building with MinGW should be added.)