Skip to the content.

Compilation and Installation instructions


Prerequisites

MMT-DPI builds on Linux only, with GCC 11 or newer and GNU Make. It is continuously built and tested on Ubuntu 22.04 / 24.04 / 26.04, Debian 12 / 13, Rocky Linux 9 / 10 and CentOS Stream 9 / 10 with the GCC and Clang versions those distributions ship (GCC 11–15, Clang 14+); an older GCC stops the build with a message naming the compiler it found (rules/arch-linux.mk).

To build the SDK you need a C compiler, make and git; to compile the example programs, which read packet captures, you also need the libpcap headers. One command installs all of them:

Debian, Ubuntu:

sudo apt-get install -y build-essential gcc g++ make git libpcap-dev

Fedora, Rocky Linux, AlmaLinux, CentOS Stream (on Rocky Linux, AlmaLinux and CentOS Stream libpcap-devel is in the CRB repository: add --enablerepo=crb after dnf):

sudo dnf install -y gcc gcc-c++ make git libpcap-devel

openSUSE:

sudo zypper install -y gcc gcc-c++ make git libpcap-devel

Arch Linux (best-effort):

sudo pacman -S --needed base-devel git libpcap

Two optional extras:

The one-command source installer of the Quick Start installs the build packages itself; this list is for building from a checkout. If a step below fails, the Troubleshooting page has the fix for each first-run error.

Get source code

git clone https://github.com/Montimage/mmt-dpi.git
cd mmt-dpi

Linux

Compile and install/uninstall

Assume that we are in mmt-dpi directory:

cd sdk
make
sudo make install

To uninstall run sudo make uninstall (pass the same MMT_BASE as the install). A root install registers the libraries with the dynamic loader; make install never compiles, so run make first.

Building MMT-DPI for ARM (arm64)

Examples

In this example, we are going to use libpcap to capture packets from a given NIC, so the libpcap headers of the prerequisites must be installed.

You can test mmt-dpi library with some examples in src/examples to see how it works.

cd src/examples
gcc -o extract_all extract_all.c -I /opt/mmt/dpi/include -L /opt/mmt/dpi/lib -lmmt_core -ldl -lpcap
./extract_all -i eth0

Note: macOS and Windows are not supported — only Linux is (see Prerequisites). The make rules the old macOS/Windows builds relied on (rules/arch-osx.mk, rules/arch-win32.mk, rules/arch-win64.mk, rules/common-windows.mk) were removed in #228, so ARCH=osx|win32|win64 fails at the include arch-$(ARCH).mk line; the unsupported-platform instruction blocks that once stood here were deleted in #249.