Search code examples
androidmacososx-mavericksmupdf

Error in making/building mupdf on Mac OS X


I simply using the make command to make/build the mupdf on Mac OS X Mavericks, from its source.

But I get this error:

fatal error: 'X11/Xlib.h' file not found

However X11 is installed on my Mac, and has an entry in the PATH environment variable as well.

Can anyone please help on how to get rid of this error and make/build MuPDF?


Solution

  • Do you have MacPorts installed? If not, do so.

    Then run:

    sudo port -pf install xorg-libX11
    

    This should install (amongst other files) /opt/local/include/X11/Xlib.h.