@@ -122,7 +122,7 @@ Debug build.
122
122
In the CMakeSettings.json tab, change cmakeCommandArgs to include
123
123
124
124
```
125
- -DPacket_ROOT ={path-to-sdk}
125
+ -DPCAP_ROOT ={path-to-sdk}
126
126
```
127
127
128
128
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
147
147
Debug build.
148
148
149
149
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
151
151
the directory containing the Npcap or WinPcap SDK or use the "Browse..."
152
152
button to browse for that directory.
153
153
@@ -160,6 +160,40 @@ you can build with Build > "Build All".
160
160
Building from the command line
161
161
------------------------------
162
162
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
+
163
197
Start the appropriate Native Tools command line prompt.
164
198
165
199
Change to the directory into which you want to build tcpdump, possibly
@@ -169,19 +203,14 @@ of the tcpdump source directory.
169
203
Run the command
170
204
171
205
```
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}
173
207
```
174
208
175
209
` {path-to-sdk} ` is the path of the directory containing the Npcap or
176
210
WinPcap SDK.
177
211
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.
185
214
186
215
` {path-to-tcpdump-source} ` is the pathname of the top-level source
187
216
directory for tcpdump.
0 commit comments