This should compile all libraries, unit-tests and examples.Run mingw32-make.exe all from PcapPlusPlus main directory.No further actions are performedĪfter running the config script, you’re can safely build the code: Path to WinPcap Developer Pack (WpdPack) OR Npcap SDKĭisplay the help message and exit. MinGW home directory (the folder that includes bin, lib and include directories) Here are the available switches: MINGW_COMPILER Files created (or modified ): mk \platform.mk, mk \PcapPlusPlus.mk
![mingw get mingw get](https://opensource.com/sites/default/files/uploads/mingw-packages.jpg)
You can use the -help switch to query these params:Ĭ: \PcapPlusPlus>configure-windows-mingw.bat mingw-w64 -mingw-home C: \i686-8.1.0-posix-dwarf-rt_v6-rev0 -msys-home C: \msys64 -pcap-sdk C: \WpdPack In params mode you need to provide these paths as script params. Please specify WinPcap/Npcap SDK path: C:\Npcap-SDK Please specify MSYS2 installed path: C: \msys64
#MINGW GET INSTALL#
If MSYS2 are not installed, please download and install it from: MSYS2 is required for compiling PcapPlusPlus. Mingw-w64 can be downloaded from: /projects/mingw-w64/ If mingw-w64 is not installed, please download and install it Please specify mingw32 or mingw-w64: mingw-w64 Here is another example of running the script for MinGW-w64: Files created (or modified): mk\platform.mk, mk\PcapPlusPlus.mk Please specify WinPcap/Npcap SDK path: C:\WpdPack WinPcap or Npcap SDK is required for compiling PcapPlusPlus.įor downloading WinPcap SDK (developer 's pack) please go to Mingw32 can be downloaded from: Please specify mingw32 installed path ( for example: C: \MinGW or C: \i686-8.1.0-posix-dwarf-rt_v6-rev0 ): C: \MinGW If mingw32 is not installed, please download and install it Please specify mingw32 or mingw-w64: mingw32 The type you want to use (can be either "mingw32" or "mingw-w64" ) MinGW32 or MinGW-w64 are required for compiling PcapPlusPlus.
#MINGW GET WINDOWS#
PcapPlusPlus Windows configuration script Npcap SDK can be downloaded from here: Ĭ: \PcapPlusPlus>configure-windows-mingw.bat.WinPcap developer’s pack can be downloaded from here:.
#MINGW GET PLUS#
![mingw get mingw get](https://www.ics.uci.edu/~pattis/common/handouts/mingweclipse/images/4installed.jpg)
Add the following folders to your PATH environment variable:.Follow the instruction in the installation wizard.PcapPlusPlus doesn’t support MinGW-w64 64-bit (x86_64) Make sure to choose the i686 (32-bit) and POSIX threads (and not win32 threads) options.Make sure the installation path doesn’t contain spaces (otherwise PcapPlusPlus compilation may fail).Download and run mingw-w64 installer from here:.
![mingw get mingw get](https://www.cse.iitd.ac.in/~mittal/mingw_pictures/4.png)
In order to compile PcapPlusPlus on Windows using MinGW-w64 you need the following components: Prerequisites for building with MinGW-w64 Xcopy /Y C: \pthreads \lib \* C: \MinGW \lib