I get this error when trying to make muPdf on OS X Yosemite
fatal error: 'X11/Xlib.h' file not found
I trying this answer, without any effect...
The solution is simple. Just install XQuartz