Kenneth Knoblauch wrote:
Hi again, Duncan,

One more piece of information that seems relevant.  I said that
it rgl compiled by which I meant that it got to the end of
the compilation and left an rgl package in my library directory,
but looking back through the compilation, I found the following
error which does seem to be pertinent, if that might help...

mkdir -p AGL
mv AGL/* .
MAKINGAGL=TRUE /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB -o aglrgl.so *.cpp *.c
mv: rename AGL/* to ./*: No such file or directory
make: [aglrgl.so] Error 1 (ignored)

That's not a problem -- the build script builds 2 versions of some files, and the first time through they don't exist, so you get that error, which is ignored.

The problem is with the Freetype library, which is being detected at build time but which is not available at run time. All I can say is that it works for me, I don't know why it doesn't work for you. (I'm on OS X 10.4.11, you're probably on 10.5?) You can try to configure rgl without Freetype by using --disable-ftgl as a configure option, i.e.

R CMD INSTALL --configure-args=--disable-ftgl ...

but I don't know how to get it to work.

I've copied this to R-sig-mac; maybe someone there can suggest a fix.

Duncan Murdoch
Thank you.

best,

Ken


----- Forwarded message from [EMAIL PROTECTED] -----
     Date: Wed, 22 Oct 2008 10:06:21 +0200
     From: Kenneth Knoblauch <[EMAIL PROTECTED]>
Reply-To: Kenneth Knoblauch <[EMAIL PROTECTED]>
  Subject: rgl 0.81 in R 2.8 on Mac OS X
       To: Duncan Murdoch <[EMAIL PROTECTED]>

Hi Duncan,

I was able to install rgl with no problems from source
on R 2.8 but get an error when I try to load it:

library(rgl)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
    unable to load shared library
'/Users/knoblauch/Library/R/2.8/library/rgl/libs/i386/aglrgl.so':

dlopen(/Users/knoblauch/Library/R/2.8/library/rgl/libs/i386/aglrgl.so,
6): Symbol not found: _FT_Attach_File
    Referenced from:
/Users/knoblauch/Library/R/2.8/library/rgl/libs/i386/aglrgl.so
    Expected in: dynamic lookup

Error : .onLoad failed in 'loadNamespace' for 'rgl'
Error: package/namespace load failed for 'rgl'

The shared library is there:

[Macintosh-6:rgl/libs/i386] knoblauch% pwd
/Users/knoblauch/Library/R/2.8/library/rgl/libs/i386
[Macintosh-6:rgl/libs/i386] knoblauch% ls
aglrgl.so*  rgl.so*

Here is some further information:

sessionInfo()
R version 2.8.0 (2008-10-20)
i386-apple-darwin8.11.1

locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_2.8.0

Any ideas?  Please don't slay the messenger.  Hope that all is well
otherwise.

Thanks.

best,

Ken



_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to