Missing Libraries While Compiling DWM in Debian 8 Jessie

While compiling dwm – dynamic window manager in Debian 8 “jessie”, I got the following error:

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

The catch here is libx11-dev and libxinerama-dev packages are needed to compile dwm and that’s the workaround for the error messages. Therefore installing these packages using the following command fixed the issue:

apt-get install libx11-dev libxinerama-dev
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s