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 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
#Install mingw w64 compiler 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. PcapPlusPlus Windows configuration script
#Install mingw w64 compiler plus
WinPcap developer’s pack OR Npcap SDK - containing the wpcap library PcapPlusPlus is linking with plus relevant h files.The MSYS2 usr\bin folder, for example: C:\msys32\usr\bin.It should be under \mingw32\bin, for example: C:\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin The MinGW-w64 folder that contains g++.exe, mingw32-make, etc.Add the following folders to your PATH environment variable:.
![install mingw-w64 compiler install mingw-w64 compiler](https://visualgdb.com/w/wp-content/uploads/2014/02/01-newprj-2.png)
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:.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