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

Bill Northcott w.northcott at unsw.edu.au
Thu May 5 14:57:29 CEST 2005


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.
>

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.  So it will always be  
searched for a library before any other location.

If I have no libjpeg in /usr/local/lib, the configure runs OK and says:

"R is now configured for powerpc-apple-darwin8.0.0

   Source directory:          ..
   Installation directory:    /Library/Frameworks

   C compiler:                gcc  -g -O2
   C++ compiler:              g++  -g -O2
   Fortran compiler:          gfortran-4.0  -g -O2

   Interfaces supported:      X11, aqua
   External libraries:        readline, BLAS(generic), LAPACK(in blas)
   Additional capabilities:   JPEG, iconv, MBCS, NLS
   Options enabled:           framework, R profiling

   Recommended packages:      yes

configure: WARNING: you cannot build DVI versions of the R manuals
configure: WARNING: you cannot build PDF versions of the R manuals"

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:

[PBG4-BN:R/R-2.1.0/build] billn% otool -L /Users/billn/Public/R/ 
R-2.1.0/build/modules/R_X11.so
/Users/billn/Public/R/R-2.1.0/build/modules/R_X11.so:
         /usr/X11R6/lib/libSM.6.dylib (compatibility version 6.0.0,  
current version 6.0.0)
         /usr/X11R6/lib/libICE.6.dylib (compatibility version 6.3.0,  
current version 6.3.0)
         /usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0,  
current version 6.2.0)
         libR.dylib (compatibility version 2.1.0, current version 2.1.0)
         /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current  
version 92.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,  
current version 88.0.0)

In what way is ImageIO being used, and why was something in /usr/ 
local/lib needed before?

Bill Northcott



More information about the R-SIG-Mac mailing list