Build guide for Windows#
Requirements#
Windows Server 2025
Prepare build environment#
Install MSYS2
Download the latest installer from https://www.msys2.org/
Install npcap
Download the latest installer from https://npcap.com/#download
Run MSYS2 UCRT64
Note: All the following commands should be executed in UCRT64 environment.
Install tools
pacman -S git pactoys unzip
pacboy -S dlfcn:p gcc:p gtest:p json-c:p libpcap:p meson:p mman-win32:p
Install npcap SDK
wget https://npcap.com/dist/npcap-sdk-1.16.zipunzip -d npcap-sdk-1.16 ./npcap-sdk-1.16.zip
cp -r ./npcap-sdk-1.16/lib/x64/. "${MSYSTEM_PREFIX}/lib"
Build DPDK#
Clone the MTL repository
git clone https://github.com/OpenVisualCloud/Media-Transport-Library.git
cd ./Media-Transport-Library
MTL_PATH="$PWD"
Clone the DPDK repository
Note: The DPDK repository should be located directly in the MTL repository.
git clone -b v25.11 https://github.com/DPDK/dpdk.git
Apply the MTL patches for DPDK
cd "${MTL_PATH}/dpdk"
git am "$MTL_PATH"/patches/dpdk/25.11/*.patch
git apply "$MTL_PATH"/patches/dpdk/25.11/windows/*.patch
Build DPDK
meson setup -Dmax_lcores=256 build
meson compile -C build
Create a copy of the
sched.hfileNote: DPDK installation overwrites the
sched.hfile and cause MTL build problemscp "${MSYSTEM_PREFIX}/include/sched.h" "${MTL_PATH}/sched.h.bak"
meson install -C build
Restore the copy
cp "${MTL_PATH}/sched.h.bak" "${MSYSTEM_PREFIX}/include/sched.h"
Build MTL#
Run the build script
cd "$MTL_PATH"
./build.sh debugonly