[R-SIG-Mac] compile problem on OS 10.4, R-2.1.0

Simon Urbanek simon.urbanek at r-project.org
Thu May 5 15:18:18 CEST 2005


Bill,

On May 5, 2005, at 8:57 AM, Bill Northcott wrote:

> On 03/05/2005, at 8:00 PM, Jan de Leeuw wrote:
>
>> Using ImageIO is trivial. Just mask /usr/local during configure/  
>> build. Starting with Tiger,  nothing in there is needed any more.

It's not quite true - the jpeg symbols in ImageIO start with __cg_ so  
they have to be remapped in order to get used. Moreove Apple didn't  
include the headers as they use it internally only. That's why I said  
it's not rivial (albeit possible ;)).

> Sorry, if I am being thick.  I don't understand that.
>
> As far as I can see the R config system adds '-L /usr/local lib' to  
> the front of every link command regardless.

FWIW you can prevent it from doing so by using LDFLAGS= in configure  
- I mean really empty LDFLAGS such as in:
../R/configure LDFLAGS= --with-aqua ...
The same applies to CPPFLAGS
As a side note: R looks for fink and if found, its path is used  
instead of /usr/local

>   Additional capabilities:   JPEG, iconv, MBCS, NLS
>  [...]
> During the actual build '-ljpeg' only appears on the link line for  
> R-X11.so, but the finished bundle has no links to a libjpeg:

Chances are that you have a static libjpeg.a somewhere - that's the  
setup I use. If you can't find it, please send me your config.log -  
I'd be quite curious where it gets pulled from.

Cheers,
Simon



More information about the R-SIG-Mac mailing list