[R-SIG-Mac] library not found for -lX11

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Nov 29 14:26:56 CET 2012


On 29/11/2012 13:23, Jakson Alves de Aquino wrote:
> On Thu, Nov 29, 2012 at 10:05 AM, Prof Brian Ripley
> <ripley at stats.ox.ac.uk> wrote:
>> But those paths should not be used unconditionally (as you have).  They are
>> not right for most x86_64 Linux, Solaris, ... and they might not even be
>> right on Mac OS X (depending on the X installation).
>
> Sorry, but I don't known how to find the correct path at compile time.

Use a configure script: see 'Writing R Extensions' (and see how R itself 
does it).

>
>> And PKG_CPPFLAGS was correct: that means flags for cpp, the C pre-processor,
>> not for C++ (which is macro PKG_CXXFLAGS).  See 'Writing R Extensions'.
>
> Thanks for the information. I'll fix it.
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-SIG-Mac mailing list