forked from the-tcpdump-group/tcpdump
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Readme.Win32
46 lines (31 loc) · 1.58 KB
/
Readme.Win32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
To build tcpdump under Windows, you need:
- 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
https://nmap.org/npcap/
- 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.)