Dunst requires these libraries to compile.
gdk-pixbuf-2.0glib-2.0gio-2.0pangocairo (provided by pango + cairo)libnotify (optional, for dunstify)wayland-client (optional, for wayland)wayland-cursor (optional, for wayland)x11 (optional, for xorg)xinerama (optional, for xorg)xext (optional, for xorg)xrandr (optional, for xorg)xscrnsaver (optional, for xorg)Additionally, gdk-pixbuf has librsvg as an optional runtime dependency (for loading svg files).
NOTE: dunstctl uses busctl for displaying rules and history. This command is usually provided by systemd.
In systems without systemd this can be installed with elogind or basu.
IMPORTANT: To work correctly dunst needs a font. Also, without a font the test suite will fail in strange ways (see #1404). For maintainers, it is recommended to add a test/soft dependency on a virtual font package.
In general, on Debian and Debian-based distros (and many other binary based distros) you’ll need also the *-dev packages.
apt install libdbus-1-dev libx11-dev libxinerama-dev libxrandr-dev libxss-dev libglib2.0-dev \
libpango1.0-dev libgtk-3-dev libxdg-basedir-dev libgdk-pixbuf-2.0-dev librsvg-2.0
apt install libnotify-dev