[Rd] MacOS X 10.4 build problem
Bill Northcott
w.northcott at unsw.edu.au
Mon May 2 14:12:14 CEST 2005
I have attempted to build the release R 2.1 on MacOS X 10.4 Tiger
using gcc 4.0
The build is dying thus:
building package 'graphics'
mkdir ../../../library/graphics
mkdir ../../../library/graphics/R
mkdir ../../../library/graphics/demo
mkdir ../../../library/graphics/po
mkdir ../../../library/graphics/man
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library '/Users/billn/Public/R/R-2.1.0/
build/library/grDevices/libs/grDevices.so':
dlopen(/Users/billn/Public/R/R-2.1.0/build/library/grDevices/libs/
grDevices.so, 6): Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/ImageIO
Expected in: /usr/local/lib/libJPEG.dylib
I don't really understand the error message.
grDevices.so exists:
[PBG4-BN:~] billn% otool -L /Users/billn/Public/R/R-2.1.0/build/
library/grDevices/libs/grDevices.so
/Users/billn/Public/R/R-2.1.0/build/library/grDevices/libs/grDevices.so:
/System/Library/Frameworks/AppKit.framework/Versions/C/
AppKit (compatibility version 45.0.0, current version 824.0.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)
but the reference to /usr/local/lib/libJPEG.dylib baffles me. The
library that is installed is called libjpeg.62.0.0.dylib and
symlinked as libjpeg.62.dylib and libjpeg.dylib.
Presumably __cg_jpeg_resync_to_restart is a symbol defined in
CoreGraphics, but why is it looking in the non-existent libJPEG ???
Bill Northcott
More information about the R-devel
mailing list