Skip to content

Commit 8ee8453

Browse files
committed
doc: fix RADME.Win32.md issues. [skip ci]
This fixes #1158. (cherry picked from commit 2e689a6)
1 parent 208717a commit 8ee8453

File tree

1 file changed

+39
-10
lines changed

1 file changed

+39
-10
lines changed

doc/README.Win32.md

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Debug build.
122122
In the CMakeSettings.json tab, change cmakeCommandArgs to include
123123

124124
```
125-
-DPacket_ROOT={path-to-sdk}
125+
-DPCAP_ROOT={path-to-sdk}
126126
```
127127

128128
where `{path-to-sdk}` is the path of the directory containing the Npcap or
@@ -147,7 +147,7 @@ Choose which configuration type to build, if you don't want the default
147147
Debug build.
148148

149149
Scroll down to "Cmake variables and cache", scroll through the list
150-
looking for the entry for Packet_ROOT, and either type in the path of
150+
looking for the entry for PCAP_ROOT, and either type in the path of
151151
the directory containing the Npcap or WinPcap SDK or use the "Browse..."
152152
button to browse for that directory.
153153

@@ -160,6 +160,40 @@ you can build with Build > "Build All".
160160
Building from the command line
161161
------------------------------
162162

163+
### Visual Studio 2017 ###
164+
165+
Start the appropriate Native Tools command line prompt.
166+
167+
Change to the directory into which you want to build tcpdump, possibly
168+
after creating it first. One choice is to create it as a subdirectory
169+
of the tcpdump source directory.
170+
171+
Run the command
172+
173+
```
174+
cmake "-DPCAP_ROOT={path-to-sdk}" -G {generator} {path-to-tcpdump-source}
175+
```
176+
177+
`{path-to-sdk}` is the path of the directory containing the Npcap or
178+
WinPcap SDK.
179+
180+
`{generator}` is the string "Visual Studio 15 2017" to build a 32-bit
181+
version of tcpdump or the string "Visual Studio 15 2017 Win64" to build
182+
a 64-bit version of tcpdump.
183+
184+
`{path-to-tcpdump-source}` is the pathname of the top-level source
185+
directory for tcpdump.
186+
187+
Run the command
188+
189+
```
190+
msbuild /m /nologo /p:Configuration={configuration} tcpdump.sln
191+
```
192+
193+
where `{configuration}` can be "Release", "Debug", or "RelWithDebInfo".
194+
195+
### Visual Studio 2019 ###
196+
163197
Start the appropriate Native Tools command line prompt.
164198

165199
Change to the directory into which you want to build tcpdump, possibly
@@ -169,19 +203,14 @@ of the tcpdump source directory.
169203
Run the command
170204

171205
```
172-
cmake "-DPacket_ROOT={path-to-sdk}" -G {generator} {path-to-tcpdump-source}
206+
cmake "-DPCAP_ROOT={path-to-sdk}" -G "Visual Studio 16 2019" {platform} {path-to-tcpdump-source}
173207
```
174208

175209
`{path-to-sdk}` is the path of the directory containing the Npcap or
176210
WinPcap SDK.
177211

178-
`{generator}` is the string "Visual Studio N YYYY", where `N` is the
179-
version of Visual Studio and `YYYY` is the year number for that version;
180-
if you are building a 64-bit version of tcpdump, `YYYY` must be followed
181-
by a space and "Win64". For example, to build a 32-bit version of
182-
tcpdump with Visual Studio 2017, `{generator}` would be "Visual Studio
183-
15 2017" and to build a 64-bit version of tcpdump with Visual Studio
184-
2017, `{generator}` would be "Visual Studio 15 2017 Win64".
212+
`{platform}` is `-A Win32` to build a 32-bit version of tcpdump or `-A
213+
x64` to build a 64-bit version of tcpdump.
185214

186215
`{path-to-tcpdump-source}` is the pathname of the top-level source
187216
directory for tcpdump.

0 commit comments

Comments
 (0)