Compiling dwm and missing libraries
2012-11-13During the last weekend I did a fresh install of Debian to my netbook, using the netinstall image. For this particular machine, dwm is my WM of choice. However, compiling the latest dwm I got from the suckless site didn't compile straight away.
With the first try I got the compiling errors
dwm.c:33:28: fatal error: X11/cursorfont.h: No such file or directory
compilation terminated.
make: *** [dwm.o] Error 1
and
dwm.c:40:37: fatal error: X11/extensions/Xinerama.h: No such file or directory
compilation terminated.
make: *** [dwm.o] Error 1
In the dwm README it says:
Requirements: In order to build dwm you need the Xlib header files.
so that's where the rub is. The particular packages you need in Debian are libx11-dev and libxinerama-dev, install them with
$ sudo apt-get install libx11-dev libxinerama-dev
and you're set.