rcompilationx11xquartz

Compiling R under OSX with X11 Support


I am trying to compile the development version of R under OSX, but I cannot find the correct way to link to the X11 libraries. I think they are included in XQuartz, but linking to /opt/X11/lib or /opt/X11/include/X11 using ./configure --x-libraries still generates an error that the headers cannot be found.

What is the correct way to link to the X11 headers with a default XQuartz install?


Solution

  • The X-specific options are both required ./configure --x-libraries=/opt/X11/lib/ --x-includes=/opt/X11/include worked fine.