- Windows 10 or Windows 11
- Visual Studio 2022 with "Desktop development with C++" workload
- CMake (included with Visual Studio)
Open "Developer Command Prompt for VS 2022" or "x64 Native Tools Command Prompt":
cd DPI-Engine---Deep-Packet-Inspection-System
mkdir build
cd build
cmake ..
cmake --build . --parallelThe executables will be in build/Debug/ or build/Release/.
cd build\Debug
dpi_engine.exe ..\..\test_dpi.pcap output.pcap- Install MSYS2 from https://www.msys2.org/
- Run in MSYS2 MINGW64 terminal:
pacman -Syu pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
- Add
C:\msys64\mingw64\binto your PATH - Build with CMake as shown above
wsl --installThen follow the Linux build instructions.
| Problem | Solution |
|---|---|
'cmake' is not recognized |
Install CMake or use Developer Command Prompt |
'g++' is not recognized |
Install MinGW-w64 or use Visual Studio compiler |
undefined reference to std::thread |
Link with Threads::Threads (CMake handles this) |