Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.31 KB

File metadata and controls

55 lines (40 loc) · 1.31 KB

Windows Setup Guide

Prerequisites

  • Windows 10 or Windows 11
  • Visual Studio 2022 with "Desktop development with C++" workload
  • CMake (included with Visual Studio)

Build (Recommended — CMake)

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 . --parallel

The executables will be in build/Debug/ or build/Release/.

Run

cd build\Debug
dpi_engine.exe ..\..\test_dpi.pcap output.pcap

Alternative: MinGW-w64 (GCC for Windows)

  1. Install MSYS2 from https://www.msys2.org/
  2. Run in MSYS2 MINGW64 terminal:
    pacman -Syu
    pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
  3. Add C:\msys64\mingw64\bin to your PATH
  4. Build with CMake as shown above

Alternative: WSL (Windows Subsystem for Linux)

wsl --install

Then follow the Linux build instructions.

Troubleshooting

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)